/* ============================================
   OUDIFY — Home Page Styles
   ============================================ */

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-6);
    position: relative;
    overflow: hidden;
}

/* Ottoman geometric pattern overlay */
.hero__pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23d4a574' stroke-width='0.5'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z' fill='none' stroke='%23d4a574' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Ambient glow behind hero content */
.hero__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(212, 165, 116, 0.08) 0%,
            rgba(212, 165, 116, 0.02) 40%,
            transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.hero__title span {
    color: var(--accent-primary);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

/* --- Features Section --- */
.features {
    padding: var(--space-16) 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* --- Section Heading --- */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-heading__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.section-heading__subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

/* --- Footer --- */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ─── Personalized Dashboard ─── */
.dashboard {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4) var(--space-12);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.dashboard__greeting {
    text-align: center;
    padding: var(--space-4) 0;
}

.dashboard__hello {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dashboard__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.dashboard__stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.dashboard__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2);
    text-align: center;
}

.dashboard__stat-ring {
    position: relative;
    width: 64px;
    height: 64px;
}

.dashboard__stat-ring .daily-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dashboard__stat-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.dashboard__streak-flame {
    font-size: 2rem;
    line-height: 1;
}

.dashboard__stat-value {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.dashboard__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.dashboard__continue {
    width: 100%;
    text-align: center;
    font-size: var(--text-base) !important;
}

/* Dashboard Cards */
.dashboard-card {
    padding: var(--space-4) var(--space-5);
}

.dashboard-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.dashboard-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard-card__label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-card__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-card__badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.15));
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-card__btn {
    width: 100%;
}

.dashboard-card__btn:disabled {
    opacity: 0.7;
    color: #4ade80 !important;
}

/* Decay items */
.decay-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.decay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.decay-item__name {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.decay-item__pct {
    font-size: var(--text-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-3xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .hero {
        min-height: 60vh;
        padding: var(--space-12) var(--space-4);
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero__actions .btn {
        width: 100%;
    }
}