/**
 * Bonuses & Promotions Page Styles
 * Mobile-first, matches casino design language
 */

/* ===================== */
/* PAGE LAYOUT           */
/* ===================== */
.bonuses-page {
    min-height: calc(100vh - 200px);
    padding: 16px 12px 48px;
}

.bonuses-container {
    max-width: 720px;
    margin: 0 auto;
}

/* ===================== */
/* HERO                  */
/* ===================== */
.bonuses-hero {
    text-align: center;
    padding: 32px 16px 24px;
}

.hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(247, 147, 26, 0.12);
}

.hero-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--btc-orange, #f7931a);
}

.bonuses-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.bonuses-hero p {
    margin: 0;
    color: var(--text-secondary, #888);
    font-size: 0.9rem;
}

/* ===================== */
/* SUMMARY GRID          */
/* ===================== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}

.summary-card {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}

.summary-card.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(247, 147, 26, 0.03));
    border-color: rgba(247, 147, 26, 0.2);
}

.summary-icon {
    margin-bottom: 6px;
}

.summary-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-secondary, #888);
}

.summary-card.highlight .summary-icon svg {
    stroke: var(--btc-orange, #f7931a);
}

.summary-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.summary-card.highlight .summary-value {
    color: var(--btc-orange, #f7931a);
    font-size: 1.1rem;
}

/* ===================== */
/* BONUS SECTIONS        */
/* ===================== */
.bonus-section {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    margin-bottom: 16px;
    position: relative;
}

.bonus-featured {
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 0 30px rgba(247, 147, 26, 0.06);
}

.section-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--btc-orange, #f7931a), #cc7a15);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 0;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

.section-icon.deposit {
    background: rgba(34, 197, 94, 0.12);
}
.section-icon.deposit svg { stroke: #22c55e; }

.section-icon.spin {
    background: rgba(247, 147, 26, 0.12);
}
.section-icon.spin svg { stroke: var(--btc-orange, #f7931a); }

.section-icon.streak {
    background: rgba(239, 68, 68, 0.12);
}
.section-icon.streak svg { stroke: #ef4444; }

.section-icon.referral {
    background: rgba(139, 92, 246, 0.12);
}
.section-icon.referral svg { stroke: #8b5cf6; }

.section-icon.scratch {
    background: rgba(236, 72, 153, 0.12);
}
.section-icon.scratch svg { stroke: #ec4899; }

.section-icon.info {
    background: rgba(59, 130, 246, 0.12);
}
.section-icon.info svg { stroke: #3b82f6; }

.section-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.section-subtitle {
    margin: 4px 0 0;
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
}

.section-body {
    padding: 18px 20px 20px;
}

/* ===================== */
/* DEPOSIT MATCH EXAMPLE */
/* ===================== */
.bonus-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 18px;
}

.example-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.example-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.example-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.example-value.highlight {
    color: #22c55e;
}

.example-value.total {
    color: var(--btc-orange, #f7931a);
    font-size: 1.25rem;
}

.example-arrow {
    color: var(--text-secondary, #666);
    transform: rotate(90deg);
}

/* ===================== */
/* DETAIL ITEMS          */
/* ===================== */
.bonus-details {
    margin-bottom: 18px;
}

.bonus-details.compact {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.82rem;
    color: var(--text-secondary, #888);
    white-space: nowrap;
    flex-shrink: 0;
}

.detail-value {
    font-size: 0.85rem;
    color: var(--text-primary, #ddd);
    text-align: right;
}

/* ===================== */
/* CTA BUTTONS           */
/* ===================== */
.btn-bonus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, var(--btc-orange, #f7931a), #cc7a15);
    color: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
}

.btn-bonus:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.btn-bonus.btn-secondary {
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #fff);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.btn-bonus.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* ===================== */
/* HOW IT WORKS STEPS    */
/* ===================== */
.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.hw-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.hw-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(247, 147, 26, 0.12);
    color: var(--btc-orange, #f7931a);
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hw-text {
    font-size: 0.9rem;
    color: var(--text-primary, #ddd);
}

/* ===================== */
/* STREAK SCHEDULE       */
/* ===================== */
.streak-schedule {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 4px;
    background: var(--bg-tertiary, #222);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    flex: 1;
}

.streak-day.highlight {
    background: rgba(247, 147, 26, 0.1);
    border-color: rgba(247, 147, 26, 0.25);
}

.day-num {
    font-size: 0.7rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
}

.day-num::before {
    content: 'Day ';
}

.day-reward {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.streak-day.highlight .day-reward {
    color: var(--btc-orange, #f7931a);
}

.streak-note {
    font-size: 0.82rem;
    color: var(--text-secondary, #888);
    margin: 0 0 16px;
    text-align: center;
}

/* ===================== */
/* REFERRAL FLOW         */
/* ===================== */
.referral-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.ref-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.ref-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    flex-shrink: 0;
}

.ref-step-icon svg {
    stroke: #8b5cf6;
}

.ref-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary, #ddd);
}

.ref-step p strong {
    color: var(--btc-orange, #f7931a);
}

/* ===================== */
/* SCRATCHCARD           */
/* ===================== */
.scratch-intro {
    font-size: 0.88rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.6;
    margin: 0 0 16px;
}

.prize-tiers {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-tertiary, #222);
}

.tier-match {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    min-width: 80px;
}

.tier-prize {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--btc-orange, #f7931a);
    flex: 1;
}

.tier-rarity {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    text-align: right;
}

/* ===================== */
/* PLAYTHROUGH SECTION   */
/* ===================== */
.bonus-info {
    border-color: rgba(59, 130, 246, 0.2);
}

.playthrough-explainer p {
    font-size: 0.88rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.6;
    margin: 0 0 16px;
}

.playthrough-explainer p strong {
    color: var(--text-primary, #ddd);
}

.pt-example {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.pt-example-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 6px !important;
}

.pt-example p:last-child {
    margin-bottom: 0 !important;
}

.pt-summary {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.pt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-tertiary, #222);
}

.pt-bonus {
    font-size: 0.85rem;
    color: var(--text-primary, #ddd);
}

.pt-rate {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--btc-orange, #f7931a);
}

.pt-notes {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    padding-top: 16px;
}

.pt-notes p {
    font-size: 0.82rem;
    margin: 0 0 10px;
}

.pt-notes p:last-child {
    margin-bottom: 0;
}

/* ===================== */
/* PROVABLY FAIR NOTE    */
/* ===================== */
.fair-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 12px;
    margin-bottom: 24px;
}

.fair-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: #22c55e;
}

.fair-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #aaa);
    line-height: 1.5;
}

.fair-note p strong {
    color: #22c55e;
}

.fair-note a {
    color: #22c55e;
    text-decoration: none;
}

.fair-note a:hover {
    text-decoration: underline;
}

/* ===================== */
/* FOOTER LINKS          */
/* ===================== */
.bonuses-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.footer-link {
    color: var(--text-secondary, #888);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--btc-orange, #f7931a);
}

.footer-sep {
    color: var(--text-secondary, #555);
}

/* ===================== */
/* TABLET+ (640px)       */
/* ===================== */
@media (min-width: 640px) {
    .bonuses-page {
        padding: 24px 20px 60px;
    }

    .bonuses-hero h1 {
        font-size: 28px;
    }

    .summary-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .summary-card.highlight {
        grid-column: auto;
    }

    .bonus-example {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .example-arrow {
        transform: none;
    }

    .streak-day {
        min-width: auto;
    }
}

/* ===================== */
/* DESKTOP (1024px)      */
/* ===================== */
@media (min-width: 1024px) {
    .bonuses-page {
        padding: 32px 20px 60px;
    }

    .bonuses-hero {
        padding: 40px 16px 32px;
    }

    .bonuses-hero h1 {
        font-size: 32px;
    }

    .section-header {
        padding: 24px 24px 0;
    }

    .section-body {
        padding: 20px 24px 24px;
    }
}
