/* Стили, вдохновленные minecraft.net */
:root {
    --minecraft-green: #2B9B3C;
    --minecraft-yellow: #E0A43A;
    --minecraft-black: #212121;
    --minecraft-white: #FFFFFF;
    --background-color: #F2F2F2;
    --card-background: #FFFFFF;
    --text-color: #212121;
    --link-color: #2B9B3C;
}

body {
    font-family: 'Minecraft-Style', 'Minecraft', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(to bottom, var(--minecraft-green), #237C31);
    color: var(--minecraft-white);
    text-align: center;
    padding: 2em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    margin: 0.5em 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

section {
    margin: 2em auto;
    padding: 2em;
    max-width: 900px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

section h2 {
    color: var(--minecraft-green);
    border-bottom: 3px solid var(--minecraft-yellow);
    padding-bottom: 0.5em;
    margin-top: 0;
    font-size: 1.8em;
    font-weight: normal;
}

ul, ol {
    padding-left: 1.5em;
}

li {
    margin: 0.5em 0;
}

strong {
    color: var(--minecraft-green);
    font-weight: normal;
}

.news-item {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: var(--link-color);
    margin-top: 0;
    font-size: 1.4em;
    transition: color 0.3s ease;
}

.news-item:hover h3 {
    color: var(--minecraft-yellow);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.news-date {
    color: #888;
    font-size: 0.9em;
    white-space: nowrap;
    margin-left: 1rem;
}

.news-item img {
    margin: 1em 0;
    border-radius: 8px;
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-excerpt {
    color: inherit;
    opacity: 0.8;
    margin: 1em 0;
}

.read-more {
    display: inline-block;
    color: var(--minecraft-yellow);
    font-weight: bold;
    margin-top: 1em;
    transition: transform 0.3s ease;
}

.news-item:hover .read-more {
    transform: translateX(5px);
}

.news-item small {
    color: #666;
    font-style: italic;
}

/* Полная страница новости */
.news-full {
    max-width: 900px;
    margin: 100px auto 2em;
    padding: 2em;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-full-content {
    color: var(--text-color);
}

.news-full-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5em;
}

.news-full h1 {
    color: var(--accent-green);
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.news-full h2 {
    color: var(--minecraft-yellow);
    margin-top: 1.5em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5em;
}

.news-full p {
    line-height: 1.8;
    margin: 1em 0;
}

.news-full ul,
.news-full ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.news-full li {
    margin: 0.5em 0;
    line-height: 1.6;
}

.news-full-text {
    margin-top: 1.5em;
}

.btn-back {
    display: inline-block;
    margin-top: 2em;
    background-color: var(--minecraft-green);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #237C31;
    transform: translateX(-5px);
}

/* Секция Скачать */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.store-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-badge,
.apk-badge {
    height: 50px;
    width: auto;
    border-radius: 8px;
    display: block;
}

#how-to-connect ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

#how-to-connect li {
    position: relative;
    padding: 0.8em 0 0.8em 3.5em;
    border-left: 3px solid var(--minecraft-green);
    margin: 1em 0;
}

#how-to-connect li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -1.6em;
    top: 0.5em;
    width: 2.5em;
    height: 2.5em;
    background-color: var(--minecraft-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 1.2em;
}

footer {
    text-align: center;
    padding: 1.5em 0;
    background-color: var(--minecraft-black);
    color: var(--minecraft-white);
    margin-top: 3em;
    font-size: 0.9em;
}

footer .disclaimer {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 1em;
    line-height: 1.5;
}

/* Кнопки для будущего использования */
.btn {
    display: inline-block;
    background-color: var(--minecraft-green);
    color: var(--minecraft-white);
    padding: 0.8em 1.5em;
    text-decoration: none;
    border-radius: 8px;
    font-weight: normal;
    margin: 0.5em 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #237C31;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-yellow {
    background-color: var(--minecraft-yellow);
}

.btn-yellow:hover {
    background-color: #C99433;
}