/* TL Launcher - Стиль Майнкрафт */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-grass: #7CBD3B;
    --color-dirt: #8B6549;
    --color-stone: #7F7F7F;
    --color-wood: #9C7F4F;
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-bg: #f5f5f5;
    --color-accent: #4CAF50;
    --color-accent-dark: #45a049;
    --font-pixel: 'Courier New', monospace;
}

/* Пиксельный фон */
#minecraftCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.blocks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(180deg, #87CEEB 0%, #4A90E2 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
}

/* Навигационная панель */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(74, 144, 226, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--color-grass);
    z-index: 1000;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.creeper-face {
    width: 40px;
    height: 40px;
    background: #0F8A0F;
    padding: 4px;
    border: 2px solid #000;
    image-rendering: pixelated;
}

.pixel-row {
    display: flex;
    height: 10px;
}

.pixel-row .p {
    width: 10px;
    height: 10px;
    background: #0F8A0F;
}

.pixel-row .p.dark {
    background: #000;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.nav-menu a:hover {
    transform: translateY(-2px);
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Главный блок */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-icon {
    font-size: 100px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.pixel-text {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.3),
                 8px 8px 0 rgba(0,0,0,0.1);
    margin-bottom: 24px;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    max-width: 700px;
    margin: 0 auto 48px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}

.stat-box {
    background: rgba(255,255,255,0.95);
    padding: 24px 32px;
    border-radius: 8px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.btn-minecraft {
    display: inline-block;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: var(--color-grass);
    border: 3px solid #000;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-minecraft:hover {
    background: #8FD957;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.btn-minecraft:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* Секции */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 48px;
    color: white;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.about-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.9);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.about-section .section-title {
    color: var(--color-text);
    text-shadow: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.large-text {
    font-size: 1.2rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item .feature-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--color-text-light);
    margin: 0;
}

/* Экран Майнкрафт */
.minecraft-screen {
    display: flex;
    justify-content: center;
}

.mc-window {
    width: 400px;
    background: #C6C6C6;
    border: 4px solid #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
}

.mc-toolbar {
    background: #8B8B8B;
    padding: 8px;
    display: flex;
    gap: 8px;
}

.mc-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F56;
}

.mc-btn:nth-child(2) {
    background: #FFBD2E;
}

.mc-btn:nth-child(3) {
    background: #27C93F;
}

.mc-world {
    height: 300px;
    background: linear-gradient(180deg, #87CEEB 0%, var(--color-grass) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    position: relative;
}

.block {
    width: 50px;
    height: 50px;
    border: 2px solid #000;
    image-rendering: pixelated;
}

.block.grass {
    background: linear-gradient(180deg, var(--color-grass) 0%, var(--color-grass) 60%, var(--color-dirt) 60%);
}

.block.dirt {
    background: var(--color-dirt);
}

.block.stone {
    background: var(--color-stone);
}

.block.wood {
    background: var(--color-wood);
}

.steve {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    animation: walk 2s infinite;
}

@keyframes walk {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Возможности */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255,255,255,0.95);
    padding: 32px;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card .card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-light);
    margin: 0;
}

/* Версии */
.versions-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.9);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.versions-section .section-title {
    color: var(--color-text);
    text-shadow: none;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.version-card {
    background: white;
    padding: 24px;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s;
}

.version-card:hover {
    transform: translateY(-4px);
}

.version-card.featured {
    border-color: var(--color-grass);
    box-shadow: 4px 4px 0 var(--color-grass);
}

.version-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--color-grass);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid #000;
}

.version-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.version-name {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.version-features {
    list-style: none;
    color: var(--color-text-light);
}

.version-features li {
    padding: 4px 0;
}

/* Загрузка */
.download-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 48px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.download-card {
    background: rgba(255,255,255,0.95);
    padding: 32px;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    position: relative;
}

.download-card.main {
    /* Убрано выделение главного блока */
}

.platform-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--color-grass);
    color: white;
    padding: 6px 16px;
    font-weight: 700;
    border: 2px solid #000;
}

.platform-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 16px;
}

.download-card h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.download-card > p {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

.download-info span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.sys-req {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-left: 4px solid var(--color-grass);
}

.sys-req h4 {
    margin-bottom: 12px;
}

.sys-req ul {
    list-style: none;
    color: var(--color-text-light);
}

.sys-req li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.sys-req li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--color-grass);
}

.download-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--color-grass);
    border: 3px solid #000;
    text-decoration: none;
    text-align: center;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    transition: all 0.2s;
    margin-bottom: 12px;
}

.download-btn:hover {
    background: #8FD957;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.download-btn.secondary {
    background: #2196F3;
}

.download-btn.secondary:hover {
    background: #42A5F5;
}

.official-link {
    display: block;
    text-align: center;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Частые вопросы */
.faq-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.9);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.faq-section .section-title {
    color: var(--color-text);
    text-shadow: none;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: white;
    padding: 24px;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--color-text-light);
    margin: 0;
}

/* Подвал */
.footer {
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 48px 24px;
    text-align: center;
    margin-top: 80px;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-note {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pixel-text {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .mc-window {
        width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
}

