/* ========================================
   FASTING TRACKER — Page-Specific Styles
   ======================================== */

/* ---- Landing Page ---- */
.landing {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-xl) var(--space-md);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.landing-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.landing-orb--1 {
    width: 300px;
    height: 300px;
    background: var(--blue-600);
    top: -80px;
    right: -60px;
    animation: orbFloat 8s ease-in-out infinite;
}

.landing-orb--2 {
    width: 200px;
    height: 200px;
    background: var(--blue-800);
    bottom: 10%;
    left: -40px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.landing-orb--3 {
    width: 250px;
    height: 250px;
    background: var(--accent-dark);
    bottom: -60px;
    right: 20%;
    opacity: 0.15;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.landing-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
    animation: fadeUp 0.8s var(--ease-out);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-logo {
    margin-bottom: var(--space-lg);
}

.landing-logo svg {
    margin: 0 auto;
    animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.landing-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.landing-title--accent {
    color: var(--blue-400);
}

.landing-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.landing-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

.landing-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.landing-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--blue-400);
}

/* ---- Auth Pages ---- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: var(--space-xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    animation: fadeUp 0.5s var(--ease-out);
}

.auth-header {
    margin-bottom: var(--space-xl);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    transition: all 0.2s;
}

.auth-back:hover {
    background: var(--surface-overlay);
    color: var(--text-secondary);
}

.auth-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.auth-form {
    margin-bottom: var(--space-lg);
}

.auth-form .btn {
    margin-top: var(--space-sm);
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    font-weight: 600;
    color: var(--blue-400);
}

/* ---- Dashboard ---- */
.dashboard {
    padding-top: var(--space-sm);
    animation: fadeUp 0.4s var(--ease-out);
}

/* ---- History Page ---- */
.history-page {
    padding-top: var(--space-sm);
    animation: fadeUp 0.3s var(--ease-out);
}

.history-header {
    padding: var(--space-md) 0;
}

.history-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

/* ---- Settings Page ---- */
.settings-page {
    padding-top: var(--space-sm);
    animation: fadeUp 0.3s var(--ease-out);
}

.settings-header {
    padding: var(--space-md) 0;
}

.settings-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.settings-section {
    margin-bottom: var(--space-xl);
}

.settings-section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.settings-info-card {
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.settings-info-row + .settings-info-row {
    border-top: 1px solid var(--border-light);
}

.settings-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-info-value {
    font-weight: 500;
    color: var(--text-primary);
}

.settings-form .btn {
    margin-top: var(--space-sm);
}

/* ---- Responsive Tablet ---- */
@media (min-width: 640px) {
    .landing-content {
        max-width: 520px;
    }

    .landing-title {
        font-size: 48px;
    }

    .landing-actions {
        flex-direction: row;
        justify-content: center;
    }

    .landing-orb--1 {
        width: 400px;
        height: 400px;
    }

    .landing-orb--2 {
        width: 280px;
        height: 280px;
    }

    .landing-orb--3 {
        width: 320px;
        height: 320px;
    }

    .auth-card {
        background: var(--surface-raised);
        padding: var(--space-xl);
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
}

/* ---- Responsive Desktop ---- */
@media (min-width: 960px) {
    .landing-content {
        max-width: 640px;
    }

    .landing-logo svg {
        width: 80px;
        height: 80px;
    }

    .landing-title {
        font-size: 60px;
    }

    .landing-subtitle {
        font-size: 18px;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-actions {
        gap: var(--space-md);
    }

    .landing-features {
        gap: var(--space-2xl);
    }

    .landing-feature {
        font-size: 14px;
    }

    .landing-feature-icon {
        width: 52px;
        height: 52px;
    }

    .landing-orb--1 {
        width: 500px;
        height: 500px;
        top: -120px;
        right: -80px;
    }

    .landing-orb--2 {
        width: 360px;
        height: 360px;
        left: -80px;
    }

    .landing-orb--3 {
        width: 420px;
        height: 420px;
        bottom: -100px;
    }
}
