/**
 * Bot4Games - головна сторінка.
 * Лише доповнює style.css панелі: ті самі кольори, картки й кнопки.
 */

.header-btn {
    padding: 8px 18px;
    font-size: 14px;
}

/* === Перший екран: градієнт сторінки входу === */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 64px 0 72px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    max-width: 34em;
    opacity: 0.92;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn-main {
    background: white;
    color: #5568d3;
    font-weight: 600;
}

.hero-btn-main:hover {
    background: #f0f2ff;
    transform: translateY(-1px);
}

.hero-btn-alt {
    background: transparent;
    color: white;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.hero-btn-alt:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Картки акаунтів з кабінету як ілюстрація */
.hero-preview {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 14px;
}

.preview-caption {
    color: #666;
    font-size: 14px;
}

.preview-card:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
}

.preview-card .account-status {
    margin: 2px 0;
}

/* === Секції === */
.home {
    display: grid;
    gap: 30px;
}

.home-section h3 {
    color: #333;
    font-size: 17px;
    margin-bottom: 4px;
}

.home-section p {
    color: #666;
    font-size: 15px;
}

/* Що робить бот */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px 28px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature .account-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 10px;
}

.features-note {
    margin-top: 24px;
}

/* Домени гри: рядок «плашок», кожна — повна адреса (її і шукають у пошуку) */
.domain-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.domain-list li {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

/* Як почати: це справді послідовність кроків */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.step {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 22px 20px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

/* Вартість */
.price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 40px;
    align-items: center;
}

.price h2 {
    color: #333;
    font-size: 22px;
    margin-bottom: 8px;
}

.price-value {
    color: #333;
    font-size: 24px;
}

.price-value b {
    font-size: 64px;
    line-height: 1;
    color: #667eea;
    margin-right: 6px;
}

.home-section .price-unit {
    color: #999;
    font-size: 14px;
}

.price-rules {
    list-style: none;
    display: grid;
    gap: 12px;
}

.price-rules li {
    color: #555;
    font-size: 15px;
    padding-left: 22px;
    position: relative;
}

.price-rules li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

/* Підвал */
.home-footer {
    max-width: 1200px;
    margin: 10px auto 40px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #999;
    font-size: 14px;
}

.home-footer nav {
    display: flex;
    gap: 20px;
}

.home-footer a {
    color: #667eea;
    text-decoration: none;
}

.home-footer a:hover {
    text-decoration: underline;
}

/* Видимий фокус з клавіатури */
.btn:focus-visible,
.home-footer a:focus-visible,
.logo:focus-visible {
    outline: 3px solid #ffd54f;
    outline-offset: 2px;
}

/* === Планшет і телефон === */
@media (max-width: 900px) {
    .hero-inner,
    .price {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero h1 {
        font-size: 34px;
    }
}

/* На головній шапка лишається в один рядок, а картки-приклади горизонтальні
   (мобільні правила панелі складають їх у стовпчик) */
@media (max-width: 768px) {
    .home-page .header-content {
        gap: 12px;
        flex-direction: row;
    }
    .hero-preview .account-card {
        flex-direction: row;
        text-align: left;
    }
    .hero-preview .account-info {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 40px 0 48px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero-lead {
        font-size: 16px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .accounts-section.home-section {
        padding: 22px;
    }
    .price-value b {
        font-size: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* === Список ігор === */
.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;    /* ціна завжди внизу картки */
    gap: 6px 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.game-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.game-card:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.game-info h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 0;
}

.home-section .game-domain {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 6px;
}

.home-section .game-price {
    grid-column: 2;
    color: #333;
    font-size: 15px;
}

.game-price b {
    color: #667eea;
    font-size: 20px;
}

/* Ціни, коли ігор кілька */
.price-table {
    border-collapse: collapse;
    color: #333;
    font-size: 15px;
}

.price-table td {
    padding: 8px 16px 8px 0;
    border-bottom: 1px solid #eee;
}

.price-table b {
    color: #667eea;
    font-size: 18px;
}

/* Шапка головної: перемикач мови і кнопка входу поруч */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Телефон: логотип окремим рядком, під ним перемикач мови і вхід */
@media (max-width: 560px) {
    .home-page .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .home-page .logo {
        font-size: 20px;
        text-align: center;
    }
    .home-page .header-actions {
        justify-content: space-between;
    }
}

/* Подарунок новим користувачам */
.hero-note {
    margin-top: 18px;
    font-size: 15px;
    opacity: 0.95;
}

/* Переваги: без іконок, у дві колонки */
.why-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Часті питання */
/* Текст про саму гру: читабельна колонка, без карток */
.guide {
    display: grid;
    gap: 20px;
    max-width: 760px;
}

.guide h3 {
    font-size: 17px;
    color: #333;
    margin: 0 0 6px;
}

.guide p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 20px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary h3 {
    display: inline;
    font-size: 17px;
    margin: 0;
}

.faq summary::after {
    content: "+";
    color: #667eea;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    margin-top: 12px;
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}

.faq summary:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}

/* Значок «Скоро» */
/* Можливості головної гри: той самий акцент, що й на її картці */
.badge-soon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #fff3cd;
    color: #8a6d3b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.hero .badge-soon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 16px;
}

.games-note {
    margin: -6px 0 18px;
}

/* Хлібна крихта на сторінці гри */
.game-crumb {
    margin-bottom: 14px;
    font-size: 15px;
}

.game-crumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.game-crumb a:hover {
    text-decoration: underline;
}

/* Заголовок розділу гри як посилання */
.home-section h2 a {
    color: inherit;
    text-decoration: none;
}

.home-section h2 a:hover {
    color: #667eea;
}

.price-text {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
