/* =========================================================
   HOME PAGE — Specific styles
   ========================================================= */

/* ---------- Hero / Welcome banner ---------- */
.hero {
    margin-top: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.25), transparent 60%),
        linear-gradient(135deg, #0d3a2b 0%, #134635 50%, #0a2e22 100%);
    border: 1px solid var(--border);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 50%, rgba(212, 175, 55, 0.12), transparent 40%),
        repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(212, 175, 55, 0.03) 40px, rgba(212, 175, 55, 0.03) 41px);
    pointer-events: none;
}

.hero__content {
    position: relative;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 280px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero__title .gold {
    background: linear-gradient(to right, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 460px;
}

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

.hero__actions .btn { height: 46px; padding: 0 28px; font-size: 14px; }

.hero__visual {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__chip {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold-dark));
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4), inset 0 -4px 8px rgba(0,0,0,0.3);
    border: 4px dashed var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 900;
    font-size: 16px;
}

.hero__chip--1 { top: 10%; left: 20%; transform: rotate(-15deg); animation: float 4s ease-in-out infinite; }
.hero__chip--2 { top: 50%; left: 50%; width: 110px; height: 110px; font-size: 18px; transform: translate(-50%, -50%) rotate(8deg); animation: float 5s ease-in-out infinite reverse; z-index: 2; }
.hero__chip--3 { bottom: 5%; right: 15%; width: 70px; height: 70px; font-size: 14px; transform: rotate(20deg); animation: float 6s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50%      { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

/* ---------- Quick promos ---------- */
.promos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.promo-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--gold-soft), transparent 70%);
    transition: transform var(--transition);
}

.promo-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.promo-card:hover::after { transform: scale(1.4); }

.promo-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-soft);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 22px;
    flex-shrink: 0;
}

.promo-card__body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-card__body p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---------- Sports filters ---------- */
.sports-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.sports-filters::-webkit-scrollbar { display: none; }

.sport-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition);
}

.sport-chip:hover { border-color: var(--gold); }

.sport-chip.is-active {
    background: var(--gold);
    color: var(--text-dark);
}

.sport-chip i { color: var(--gold); }
.sport-chip.is-active i { color: var(--text-dark); }

/* ---------- Match cards (live) ---------- */
.matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 14px;
}

.match {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all var(--transition);
    position: relative;
}

.match:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.match__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.match__league {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--live);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.team__name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team__logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid var(--border);
}

.team__score {
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 14px;
}

.odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.odd {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
}

.odd:hover {
    background: var(--bg-hover);
    border-color: var(--gold);
}

.odd.is-up { animation: oddUp 0.6s ease; }
@keyframes oddUp {
    0%   { background: rgba(76, 175, 80, 0.3); }
    100% { background: var(--bg-tertiary); }
}

.odd__label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.odd__value {
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 14px;
}

/* ---------- Casino games ---------- */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    aspect-ratio: 4 / 5;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.game-card__art {
    height: 70%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--gold);
    position: relative;
    overflow: hidden;
}

.game-card__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.4) 100%);
}

.game-card__body {
    padding: 10px 12px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-card__provider {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.game-card__hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gold);
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 2;
}

/* ---------- App download ---------- */
.app-banner {
    margin-top: 28px;
    background: linear-gradient(90deg, var(--bg-secondary), var(--bg-card));
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.app-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-soft), transparent 70%);
}

.app-banner__text h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.app-banner__text h3 .gold {
    color: var(--gold-bright);
}

.app-banner__text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.app-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.app-btn:hover {
    background: var(--gold);
    color: var(--text-dark);
    border-color: var(--gold);
}

.app-btn i { font-size: 22px; }

.app-btn small { display: block; font-size: 10px; opacity: 0.8; }
.app-btn strong { font-size: 14px; }

/* ---------- FAQ accordion ---------- */
.faq {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item__head {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background var(--transition);
}

.faq-item__head:hover { background: var(--bg-tertiary); }

.faq-item__head i {
    color: var(--gold);
    transition: transform var(--transition);
}

.faq-item.is-open .faq-item__head i {
    transform: rotate(180deg);
}

.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__body {
    max-height: 400px;
}

.faq-item__body p {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {
    .hero__title { font-size: 30px; }
    .hero__content { padding: 36px 28px; }
    .matches { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .hero {
        margin-top: 12px;
    }
    .hero__content {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 16px;
        min-height: auto;
    }
    .hero__badge { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
    .hero__title { font-size: 24px; line-height: 1.15; }
    .hero__subtitle { font-size: 13px; margin-bottom: 16px; }
    .hero__actions .btn { height: 42px; padding: 0 18px; font-size: 12px; flex: 1; }
    .hero__visual { height: 140px; order: -1; }
    .hero__chip {
        width: 70px;
        height: 70px;
        font-size: 12px;
    }
    .hero__chip--2 {
        width: 90px;
        height: 90px;
        font-size: 14px;
    }
    .hero__chip--3 {
        width: 56px;
        height: 56px;
        font-size: 11px;
    }

    /* Promo cards single col friendly */
    .promos { grid-template-columns: 1fr 1fr; gap: 10px; }
    .promo-card { padding: 14px 12px; gap: 10px; }
    .promo-card__icon { width: 40px; height: 40px; font-size: 18px; }
    .promo-card__body h3 { font-size: 12px; }
    .promo-card__body p { font-size: 11px; }

    /* Match cards 1 col */
    .matches { grid-template-columns: 1fr; }

    /* Casino home grid */
    .casino-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Sport chips smaller */
    .sport-chip { padding: 6px 10px; font-size: 11px; }

    /* App banner */
    .app-banner { padding: 18px; gap: 14px; flex-direction: column; align-items: flex-start; }
    .app-banner__text h3 { font-size: 17px; }
    .app-banner__text p { font-size: 12px; }
    .app-banner__buttons { width: 100%; }
    .app-banner__buttons .app-btn { flex: 1; padding: 8px 12px; }

    /* FAQ */
    .faq-item__head { padding: 14px; font-size: 12px; }
    .faq-item__body p { padding: 0 14px 14px; font-size: 12px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 420px) {
    .hero__title { font-size: 20px; }
    .hero__visual { height: 120px; }
    .hero__chip { width: 60px; height: 60px; font-size: 11px; }
    .hero__chip--2 { width: 76px; height: 76px; font-size: 12px; }
    .hero__chip--3 { width: 48px; height: 48px; font-size: 10px; }

    .promos { grid-template-columns: 1fr; }
    .casino-grid { grid-template-columns: repeat(2, 1fr); }
    .game-card { aspect-ratio: 3 / 4; }
    .game-card__art { font-size: 44px; }
}
