/* ==========================================
   SWars — Полный стиль (Minecraft-шрифт + каменная рамка)
   ========================================== */

/* === ПОДКЛЮЧЕНИЕ МАЙНКРАФТ ШРИФТА === */
@font-face {
    font-family: 'Minecraft';
    src: url('./assets/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* === БАЗОВЫЕ НАСТРОЙКИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Minecraft', 'Courier New', monospace;
    background-color: #1a1410;
    color: #e8eaf2;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('./assets/dark_dirt_texture.jpg');
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
}

/* === КАСТОМНЫЙ СКРОЛЛ === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1018; }
::-webkit-scrollbar-thumb { background: #8B6914; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a07818; }

/* === ГЛАВНАЯ СТРАНИЦА === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('./assets/bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.70);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #8B6914;
    background: rgba(139, 105, 20, 0.15);
    color: #ffd700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Minecraft', monospace;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 16px;
    font-family: 'Minecraft', monospace;
    text-shadow: 3px 3px 0 #000;
}

.highlight {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
    font-family: 'Minecraft', monospace;
}

/* === БЛОК С IP === */
.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #8B6914;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 32px;
}

.hero-ip code {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Minecraft', monospace;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.copy-btn {
    background: rgba(139, 105, 20, 0.3);
    border: 2px solid #8B6914;
    color: #ffd700;
    padding: 6px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'Minecraft', monospace;
}

.copy-btn:hover {
    background: rgba(139, 105, 20, 0.5);
}

/* === КНОПКИ === */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 5px;
    background: #8B6914;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Minecraft', monospace;
    border: 2px solid #6B4F12;
    text-shadow: 1px 1px 0 #000;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #a07818;
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 5px;
    border: 2px solid #8B6914;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Minecraft', monospace;
    text-shadow: 1px 1px 0 #000;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: rgba(139, 105, 20, 0.2);
    border-color: #a07818;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === РЕЖИМЫ === */
.modes {
    padding: 80px 0;
    background: rgba(13, 16, 24, 0.92);
    backdrop-filter: blur(4px);
    border-top: 2px solid #1e2330;
    border-bottom: 2px solid #1e2330;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffd700;
    border: 2px solid #8B6914;
    padding: 4px 16px;
    border-radius: 5px;
    margin-bottom: 12px;
    font-family: 'Minecraft', monospace;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-family: 'Minecraft', monospace;
    text-shadow: 2px 2px 0 #000;
}

.section-header p {
    color: #8b8fa8;
    font-size: 1.1rem;
    font-family: 'Minecraft', monospace;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ====== КАРТОЧКА РЕЖИМА (С КАМЕННОЙ РАМКОЙ) ====== */
.mode-card {
    background: rgba(20, 18, 16, 0.92);
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    border: 6px solid transparent;
    border-image: url('./assets/stone_border.jpg') 30 stretch;
    border-image-slice: 30;
    border-radius: 0px;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.6),
        0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.6),
        0 0 40px rgba(139,105,20,0.3);
    border-image: url('./assets/stone_border.jpg') 30 stretch;
    border-image-slice: 30;
}

.mode-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0f;
    border-bottom: 4px solid #5a4a3a;
}

.mode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mode-card:hover .mode-image {
    transform: scale(1.05);
}

.mode-content {
    padding: 20px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mode-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: 'Minecraft', monospace;
    color: #ffd700;
    text-shadow: 2px 2px 0 #000;
}

.mode-content p {
    color: #c8c8c8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: 'Minecraft', monospace;
    flex: 1;
}

/* === СТАТУСЫ === */
.status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Minecraft', monospace;
    text-align: center;
    align-self: flex-start;
}

.status.online {
    color: #7cfc00;
    background: rgba(124, 252, 0, 0.12);
    border: 1px solid #7cfc00;
}

.status.dev {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.12);
    border: 1px solid #ffd93d;
}

.status.closed {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid #ff4444;
}

.status.soon {
    color: #888;
    background: rgba(136, 136, 136, 0.12);
    border: 1px solid #888;
}

/* === СОТСЕТИ === */
.social {
    padding: 80px 0;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(4px);
    border-top: 2px solid #1e2330;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.social-card {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: #e8eaf2;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.social-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #8B6914;
}

.social-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.6rem;
}

.social-name {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Minecraft', monospace;
}

.social-desc {
    font-size: 0.8rem;
    color: #8b8fa8;
    font-family: 'Minecraft', monospace;
}

/* === МАГАЗИН === */
.shop {
    padding: 80px 0;
    background: rgba(13, 16, 24, 0.92);
    backdrop-filter: blur(4px);
    text-align: center;
    border-top: 2px solid #1e2330;
}

.shop-content h2 {
    font-family: 'Minecraft', monospace;
    text-shadow: 2px 2px 0 #000;
}

.shop-content p {
    color: #8b8fa8;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
    font-family: 'Minecraft', monospace;
}

/* === КНОПКА МУЗЫКИ === */
.music-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border: 2px solid #8B6914;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.music-btn:hover {
    background: rgba(139, 105, 20, 0.3);
    transform: scale(1.05);
}

/* === ПОДВАЛ === */
footer {
    padding: 40px 0;
    border-top: 2px solid #1e2330;
    background: rgba(10, 10, 15, 0.9);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Minecraft', monospace;
    color: #ffd700;
    text-shadow: 1px 1px 0 #000;
}

.footer-copy {
    color: #4a4f66;
    font-size: 0.9rem;
    font-family: 'Minecraft', monospace;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #4a4f66;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Minecraft', monospace;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-ip {
        flex-direction: column;
        padding: 16px;
    }
    .modes-grid {
        grid-template-columns: 1fr;
    }
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-ip {
        flex-direction: column;
        padding: 12px;
    }
    .hero-ip code {
        font-size: 1rem;
    }
}