/* ===========================================
   ezTimelapse Website Styles
   Support & Privacy Policy Pages
   =========================================== */

/* CSS Variables */
:root {
    --primary-color: #007AFF;
    --primary-dark: #0056b3;
    --secondary-color: #5856D6;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================================
   Navigation
   =========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 24px;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.12);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
}

/* ===========================================
   Main Content & Sections
   =========================================== */

.main-content {
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

.section {
    display: none;
    padding: 60px 0 80px;
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ===========================================
   Home Section
   =========================================== */

.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.app-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Features Grid */
.features {
    margin-bottom: 80px;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 32px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===========================================
   Support Section
   =========================================== */

.support-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.support-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.support-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-card > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-card,
.feedback-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.email-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.support-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.support-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.support-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.support-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================================
   Privacy Section
   =========================================== */

.privacy-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-highlight {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.08) 100%);
    padding: 32px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.privacy-highlight h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-highlight p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-section-content {
    margin-bottom: 32px;
}

.privacy-section-content:last-child {
    margin-bottom: 0;
}

.privacy-section-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-section-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.privacy-section-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.privacy-section-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-section-content ul li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.privacy-section-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-section-content a:hover {
    text-decoration: underline;
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

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

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .app-icon {
        font-size: 4rem;
    }

    .section {
        padding: 40px 0 60px;
    }

    .section h1 {
        font-size: 2rem;
    }

    .features h2,
    .how-it-works h2 {
        font-size: 1.6rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .how-it-works {
        padding: 40px 24px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step {
        flex: none;
        max-width: 280px;
    }

    .support-card,
    .privacy-content {
        padding: 24px;
    }

    .privacy-highlight {
        padding: 24px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ===========================================
   Animations
   =========================================== */

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

.section.active {
    animation: fadeIn 0.4s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .download-btn,
    .email-link,
    .footer {
        display: none;
    }

    .section {
        display: block !important;
        page-break-before: always;
    }

    .main-content {
        padding-top: 0;
    }
}
