/* TrackGLP1 Website Styles */

:root {
    /* Brand Colors - Matching the app's Strong UI theme */
    --primary-color: #2F6BFF;
    --primary-hover: #1E54E6;
    --secondary-color: #4DA3FF;
    --success-color: #16A34A;
    --warning-color: #F59E0B;
    --danger-color: #DC2626;
    
    /* Neutral Colors */
    --text-primary: #0B1020;
    --text-secondary: #5A6475;
    --text-muted: #8A94A6;
    --background: #FFFFFF;
    --surface: #F7F8FB;
    --border: #E6EAF0;
    --border-dark: #D3D9E3;
    
    /* Dark Mode Colors */
    --dark-bg: #0F1620;
    --dark-surface: #1A2128;
    --dark-text: #F3F6FA;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-xl);
}

h4 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

li {
    margin-bottom: var(--spacing-sm);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary-color);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

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

.features h2 {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: var(--surface);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta h2 {
    margin-top: 0;
}

.cta-buttons {
    margin: var(--spacing-xl) 0;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--dark-text);
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #B5C0CC;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: var(--spacing-sm);
    color: #8994A1;
}

.disclaimer {
    font-size: 0.875rem;
    font-style: italic;
}

/* Legal Content Pages */
.legal-content {
    padding: var(--spacing-xxl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: var(--spacing-sm);
}

.legal-meta {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.legal-content section {
    margin-bottom: var(--spacing-xxl);
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.important-notice {
    background: #FEF2F2;
    border-left: 4px solid var(--danger-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.important-notice strong {
    color: var(--danger-color);
}

/* Support Page */
.support-content {
    padding: var(--spacing-xxl) 0;
}

.support-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.contact-section {
    margin-bottom: var(--spacing-xxl);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-card {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card .btn {
    margin: var(--spacing-md) 0;
}

.response-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

/* FAQ Section */
.faq-section {
    margin-bottom: var(--spacing-xxl);
}

.faq-category {
    margin-bottom: var(--spacing-xxl);
}

.faq-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.faq-item {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.faq-item p,
.faq-item ul,
.faq-item ol {
    color: var(--text-secondary);
}

/* Resource Cards */
.resource-cards,
.feedback-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.resource-card,
.feedback-card {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
}

.resource-card h3,
.feedback-card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

/* Emergency Notice */
.emergency-notice {
    background: #FEF2F2;
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.emergency-notice h2 {
    color: var(--danger-color);
    margin-top: 0;
}

.emergency-notice strong {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        gap: var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .hero-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: avoid;
    }
}