/* ==========================================================================
   Splittty Unified Theme - CSS for all HTML pages
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #F2F2F6; /* backgroundColor from utils.dart */
    min-height: 100vh;
}

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

.nav-bar {
    background-color: #FFFFFF;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #FF8D01; /* themeColorNegative */
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.container-wide {
    max-width: 1200px;
    padding: 2rem;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #E2E8F0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.625rem;
}

.last-updated {
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ==========================================================================
   Hero Section (Landing Page)
   ========================================================================== */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #64748B;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #FF8D01;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #E67D01;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 141, 1, 0.3);
}

.btn-secondary {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Features Section (Landing Page)
   ========================================================================== */

.features {
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #F8F8F8;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #E2E8F0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1rem;
    color: #64748B;
    line-height: 1.6;
}

/* ==========================================================================
   How It Works Section (Landing Page)
   ========================================================================== */

.how-it-works {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background-color: #F8F8F8;
    border-radius: 12px;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #FF8D01;
    color: #FFFFFF;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.step p {
    color: #64748B;
}

/* ==========================================================================
   Content Styles (Privacy & Support Pages)
   ========================================================================== */

.content {
    margin-bottom: 2.5rem;
}

.intro {
    margin-bottom: 2rem;
}

.intro h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

section {
    margin-bottom: 2rem;
}

section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 0.75rem;
    padding-left: 0.625rem;
    border-left: 4px solid #FF8D01;
}

section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4A5568;
    text-align: justify;
}

/* ==========================================================================
   Support Page Styles
   ========================================================================== */

.support-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E2E8F0;
}

.contact-card {
    background: linear-gradient(135deg, #FF8D01 0%, #E67D01 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 141, 1, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 141, 1, 0.3);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.email-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.email-link:hover {
    text-decoration: underline;
}

.issues-list {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 1.25rem;
    list-style: none;
}

.issues-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E0E0E0;
    color: #555555;
    font-size: 0.95rem;
}

.issues-list li:last-child {
    border-bottom: none;
}

.issues-list li::before {
    content: "•";
    color: #FF8D01;
    font-weight: bold;
    margin-right: 0.625rem;
    font-size: 1.2rem;
}

.app-info {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.app-info p {
    color: #64748B;
    margin-bottom: 0.5rem;
}

.app-info strong {
    color: #FF8D01;
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

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

.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #FF8D01;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .hero p {
        font-size: 1.1rem;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

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

    .steps {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

    .intro h2 {
        font-size: 1.3rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    .nav-bar {
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background-color: #FFFFFF;
    }

    .nav-bar {
        display: none;
    }

    .container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .header {
        border-bottom: 1px solid #CCCCCC;
    }

    .footer {
        border-top: 1px solid #CCCCCC;
    }

    .btn {
        display: none;
    }
}
