/* ===========================================
   DAILY STREAK PAGE STYLES
   Standalone streak page: /earn/streaks/
   =========================================== */

/* ===== PAGE LAYOUT ===== */
.streak-page {
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.streak-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(247, 147, 26, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(247, 147, 26, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.04) 0%, transparent 30%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.streak-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

.streak-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.2);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.streak-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    color: var(--text-primary, #fff);
    position: relative;
    z-index: 1;
}

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

.streak-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #9ca3af);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== LIVE STREAK CARD (logged-in) ===== */
.streak-live-section {
    max-width: 520px;
    margin: 2rem auto 0;
    position: relative;
    z-index: 1;
}

.daily-streak-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
}

.streak-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.streak-flame {
    color: #f7931a;
    flex-shrink: 0;
}

.streak-flame svg {
    width: 20px;
    height: 20px;
    stroke: #f7931a;
}

.streak-flame.active {
    animation: flamePulse 1.5s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.streak-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.streak-count {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.streak-status {
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-check-in {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-check-in:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.btn-check-in:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #6b7280;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-check-in svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.streak-calendar {
    display: flex;
    gap: 6px;
}

.streak-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.streak-day.completed {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.streak-day.current {
    background: rgba(247, 147, 26, 0.15);
    border-color: rgba(247, 147, 26, 0.4);
}

.streak-day.milestone {
    border-color: rgba(247, 147, 26, 0.2);
}

.streak-day.milestone.completed {
    border-color: rgba(247, 147, 26, 0.5);
    background: rgba(247, 147, 26, 0.2);
}

.day-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 600;
}

.streak-day.completed .day-label {
    color: #22c55e;
}

.streak-day.current .day-label {
    color: #f7931a;
}

.day-reward {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
}

.streak-day.completed .day-reward {
    color: #22c55e;
}

.streak-day.current .day-reward {
    color: #f7931a;
}

.streak-note {
    font-size: 0.7rem;
    color: #4b5563;
    margin: 8px 0 0;
    text-align: center;
}

.streak-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.streak-countdown-claimed {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #6b7280;
}

.streak-countdown-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.streak-countdown-urgent {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    animation: streakUrgentPulse 2s ease-in-out infinite;
}

@keyframes streakUrgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.streak-countdown-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.streak-countdown-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== CONTENT SECTIONS ===== */
.streak-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.streak-section {
    margin-bottom: 2.5rem;
}

.streak-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 1rem;
}

/* How it works steps */
.streak-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.streak-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

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

.streak-step-text {
    color: var(--text-secondary, #9ca3af);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-top: 3px;
}

.streak-step-text strong {
    color: var(--text-primary, #fff);
}

/* Reward table */
.streak-reward-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.streak-reward-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.streak-reward-table td {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-secondary, #9ca3af);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.streak-reward-table tr:last-child td {
    border-bottom: none;
}

.streak-reward-table .highlight-row td {
    background: rgba(247, 147, 26, 0.06);
    color: #f7931a;
    font-weight: 600;
}

.streak-reward-table .reward-sats {
    color: #22c55e;
    font-weight: 600;
}

.streak-weekly-total {
    margin-top: 0.75rem;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
    text-align: center;
}

/* Milestone badges */
.streak-milestones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.streak-milestone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-secondary, #9ca3af);
}

.streak-milestone svg {
    width: 14px;
    height: 14px;
    stroke: #f7931a;
}

.streak-milestone strong {
    color: var(--text-primary, #fff);
}

/* Cross-promo section */
.streak-cross-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.promo-card:hover {
    border-color: rgba(247, 147, 26, 0.25);
    transform: translateY(-2px);
}

.promo-card svg {
    width: 32px;
    height: 32px;
    stroke: #f7931a;
}

.promo-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.promo-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary, #9ca3af);
    line-height: 1.4;
}

/* CTA section */
.streak-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.06) 0%, rgba(255, 215, 0, 0.04) 100%);
}

.streak-cta h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
}

.streak-cta p {
    color: var(--text-secondary, #9ca3af);
    margin-bottom: 1.25rem;
}

/* Guest marketing hero enhancements */
.streak-hero-schedule {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.streak-hero-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 44px;
}

.streak-hero-day.hero-milestone {
    border-color: rgba(247, 147, 26, 0.3);
    background: rgba(247, 147, 26, 0.08);
}

.streak-hero-day .day-label {
    font-size: 0.68rem;
    color: #6b7280;
    font-weight: 600;
}

.streak-hero-day.hero-milestone .day-label {
    color: #f7931a;
}

.streak-hero-day .day-reward {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
}

.streak-hero-day.hero-milestone .day-reward {
    color: #f7931a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .streak-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .streak-cross-promo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .streak-calendar {
        gap: 3px;
    }

    .streak-day {
        padding: 6px 2px;
    }

    .day-label {
        font-size: 0.6rem;
    }

    .day-reward {
        font-size: 0.65rem;
    }

    .streak-hero-schedule {
        gap: 3px;
    }

    .streak-hero-day {
        padding: 6px 6px;
        min-width: 38px;
    }
}
