/* Road to Emmaus Website Styles */
/* Glassmorphic dark theme matching the iOS app */

:root {
    /* Colors from the app */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --warm-glow: #d4a056;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-gold: #eab308;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-verse: #d4a574;
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Home page - fit everything in viewport */
.home-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.home-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient glow effects */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.3) 0%, transparent 70%);
}

.ambient-glow-2 {
    bottom: 10%;
    left: -15%;
    width: 40vw;
    height: 40vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 86, 0.15) 0%, transparent 70%);
}

main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.hero-tagline {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    color: var(--text-verse);
    font-weight: 500;
    max-width: 400px;
}

/* Inline screenshots */
.screenshots-inline {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-badge img {
    height: 44px;
    width: auto;
}

/* Phone Frame - Small version for home page */
.phone-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 24px;
    padding: 6px;
    box-shadow:
        0 15px 30px -8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-frame-small {
    width: 140px;
    height: 280px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

/* Mock UI Elements */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.mock-streak {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 600;
    color: var(--accent-orange);
}

.mock-progress-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 7px;
    color: var(--text-secondary);
}

.mock-back {
    font-size: 8px;
    color: var(--text-secondary);
}

.mock-title-header {
    font-size: 9px;
    font-weight: 600;
}

.mock-settings {
    font-size: 10px;
}

.mock-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.mock-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 6px;
    color: var(--text-secondary);
}

.mock-emoji {
    font-size: 20px;
    margin: 4px 0;
}

.mock-title {
    font-size: 9px;
    font-weight: 600;
}

.mock-instruction {
    font-size: 7px;
    color: var(--text-secondary);
}

.mock-content-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 6px;
    color: var(--text-secondary);
}

.mock-verse {
    font-size: 6px;
    font-style: italic;
    color: var(--text-verse);
    margin-top: 2px;
}

.mock-button {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
}

.mock-button-green {
    background: var(--accent-green);
    color: white;
}

/* Progress Screen Mock Elements */
.mock-level-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mock-level-name {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
}

.mock-level-desc {
    font-size: 6px;
    color: var(--text-secondary);
}

.mock-streak-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mock-streak-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.mock-streak-icon {
    font-size: 10px;
}

.mock-streak-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-orange);
}

.mock-streak-num.mock-gold {
    color: var(--accent-gold);
}

.mock-streak-label {
    font-size: 6px;
    color: var(--text-muted);
}

.mock-streak-divider {
    width: 1px;
    height: 24px;
    background: var(--card-border);
}

.mock-week-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mock-week-title {
    font-size: 8px;
    font-weight: 600;
}

.mock-week-days {
    display: flex;
    gap: 4px;
}

.mock-day {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
}

.mock-day-done {
    background: var(--accent-green);
    color: white;
}

/* Home Footer - compact */
.home-footer {
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Regular Footer for legal pages */
footer:not(.home-footer) {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 3rem;
}

footer:not(.home-footer) .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

footer:not(.home-footer) .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer:not(.home-footer) .footer-links a:hover {
    color: var(--text-primary);
}

footer:not(.home-footer) .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hero {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .screenshots-inline {
        gap: 0.75rem;
    }

    .phone-frame-small {
        width: 120px;
        height: 240px;
    }

    .phone-screen {
        padding: 8px 5px;
        gap: 5px;
        border-radius: 16px;
    }

    .phone-frame {
        border-radius: 20px;
        padding: 5px;
    }

    .app-store-badge img {
        height: 40px;
    }

    .home-footer {
        padding: 0.5rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .copyright {
        font-size: 0.7rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) {
    .hero {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .phone-frame-small {
        width: 100px;
        height: 200px;
    }

    .screenshots-inline {
        gap: 1rem;
    }

    .app-store-badge img {
        height: 36px;
    }

    .home-footer {
        padding: 0.4rem 1rem;
    }
}

/* Tablet and larger */
@media (min-width: 768px) {
    .hero {
        gap: 1.25rem;
    }

    .phone-frame-small {
        width: 160px;
        height: 320px;
    }

    .screenshots-inline {
        gap: 2rem;
    }
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-page h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-page h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--warm-glow);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .legal-page {
        padding: 2rem 1rem;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .legal-page h2 {
        font-size: 1rem;
    }

    .legal-page p, .legal-page li {
        font-size: 0.9rem;
    }
}
