/* ===== ГЛОБАЛЬНЫЕ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f1218;
    color: #eef3f8;
    padding: 0 20px;
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0 50px;
}

/* ===== ШАПКА ===== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 20px;
    border-bottom: 1px solid #2a3745;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #f0f6ff;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.logo i {
    color: #ff6b35;
    font-size: 28px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #1a2430;
    border: 1px solid #2a3745;
    border-radius: 30px;
    padding: 0 6px 0 16px;
    transition: all 0.3s;
    min-width: 280px;
    max-width: 420px;
    flex: 1;
}
.search-wrapper:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.search-icon {
    color: #4a5a6e;
    font-size: 14px;
}
.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #eef3f8;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}
.search-input::placeholder {
    color: #4a5a6e;
}
.search-btn {
    background: #ff6b35;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.search-btn:hover {
    background: #e85a2a;
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    color: #9aabbf;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.nav-link:hover {
    color: #eef3f8;
    background: #1a2430;
}
.nav-link i {
    font-size: 15px;
}
.nav-link.premium {
    color: #ffd700;
}
.nav-link.premium:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}
.nav-link.help {
    color: #6a7a8e;
}
.nav-link.help:hover {
    color: #9aabbf;
}
.nav-link.login-btn {
    background: #ff6b35;
    color: #fff;
    padding: 8px 20px;
}
.nav-link.login-btn:hover {
    background: #e85a2a;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
}

/* ===== ГЕРОЙ ===== */
.hero {
    text-align: center;
    padding: 50px 0 35px;
    animation: fadeUp 0.9s ease both;
}
.hero h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.highlight {
    color: #ff6b35;
    background: none;
    padding: 0 6px;
    position: relative;
}
.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff6b35;
    border-radius: 4px;
    opacity: 0.3;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 45px;
    font-size: 18px;
    color: #b8c4d4;
    flex-wrap: wrap;
}
.hero-stats i {
    margin-right: 10px;
    color: #ff6b35;
}

/* ===== СЕКЦИИ ===== */
.section {
    margin-top: 48px;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-title i {
    color: #ff6b35;
    font-size: 24px;
}

/* ===== СЕТКА ИГР ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

/* ===== КАРТОЧКА ИГРЫ ===== */
.game-card {
    background: #1a2430;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #2a3745;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: cardPop 0.5s ease both;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: #ff6b35;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}
.game-card .game-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f1822;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.game-card .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.game-card:hover .game-image img {
    transform: scale(1.05);
}
.game-card .game-image .placeholder-icon {
    font-size: 52px;
    color: #3d5068;
    opacity: 0.6;
}
.game-card .game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-transform: uppercase;
}
.game-card .game-info {
    padding: 16px 18px 18px;
}
.game-card .game-name {
    font-weight: 700;
    font-size: 16px;
    color: #eef3f8;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-card .game-accounts {
    font-size: 13px;
    color: #9aabbf;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.game-card .game-accounts i {
    color: #ff6b35;
    font-size: 13px;
}
.game-card .accounts-count {
    font-weight: 700;
    color: #f0f6ff;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.92) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== ПОДВАЛ ===== */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1e2a38;
    text-align: center;
    font-size: 15px;
    color: #5a6a7e;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .logo {
        justify-content: center;
        font-size: 24px;
    }
    .search-wrapper {
        min-width: 100%;
        max-width: 100%;
    }
    .header-right {
        justify-content: center;
        gap: 4px;
    }
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    .nav-link.login-btn {
        padding: 6px 16px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero-stats {
        gap: 20px;
        font-size: 16px;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-wrap: wrap;
    }
    .nav-link {
        font-size: 12px;
        padding: 4px 10px;
    }
    .nav-link i {
        font-size: 12px;
    }
    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .game-card .game-info {
        padding: 12px 14px 14px;
    }
    .game-card .game-name {
        font-size: 14px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 22px;
    }
}