/* Base styles from your styles.css */
body { font-family: 'Inter', sans-serif; }
* { transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out; }

/* CSS Custom Properties for Safe Area Insets */
:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
}

/* Browser compatibility fixes */
@supports not (height: 100dvh) {
    body {
        min-height: 100vh !important;
    }
}

/* Ensure content doesn't overlap with header */
.mobile-about-container {
    margin-top: 0.5rem !important;
}

/* Mobile Navigation Styles */
.mobile-nav { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    height: calc(3.5rem + var(--sab));
    min-height: calc(3.5rem + var(--sab));
    max-height: calc(3.5rem + var(--sab));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-bottom: 0; /* safe area handled by child absolute positioning */
}
.dark .mobile-nav { 
    background: rgba(17, 24, 39, 0.95); 
    border-top-color: #374151; 
}
.mobile-nav-tabs { 
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--sab);
    height: 3.5rem;
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    padding-top: 0; 
    padding-bottom: 0;
}
.mobile-nav-tab { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 0.375rem; 
    border-radius: 0.5rem; 
    transition: all 0.2s ease; 
    color: #6b7280; 
    text-decoration: none; 
    min-width: 3.5rem;
}
.mobile-nav-tab.active { 
    color: #2563eb; 
    background-color: rgba(37, 99, 235, 0.1); 
}
.dark .mobile-nav-tab.active { 
    color: #60a5fa; 
    background-color: rgba(96, 165, 250, 0.1); 
}
.mobile-nav-tab:hover { 
    background-color: rgba(0, 0, 0, 0.05); 
}
.dark .mobile-nav-tab:hover { 
    background-color: rgba(255, 255, 255, 0.05); 
}
.mobile-nav-icon { 
    width: 1.25rem; 
    height: 1.25rem; 
    margin-bottom: 0.125rem; 
}
.mobile-nav-label { 
    font-size: 0.625rem; 
    font-weight: 500; 
    text-align: center; 
}

/* Mobile Header Styles */
.mobile-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1002; /* Higher than language switcher */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.375rem 1rem; 
    padding-top: calc(0.375rem + var(--sat));
    height: calc(3rem + var(--sat));
    min-height: calc(3rem + var(--sat));
    max-height: calc(3rem + var(--sat));
    /* Ensure header doesn't interfere with pull-to-refresh */
    pointer-events: none;
}
.mobile-header-content {
    pointer-events: auto;
}
.dark .mobile-header { 
    background: rgba(17, 24, 39, 0.95); 
    border-bottom-color: #374151; 
}
.mobile-header-content { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem; 
    height: 100%;
}
.mobile-logo { 
    width: 1.75rem; 
    height: 1.75rem; 
}
.mobile-app-name { 
    font-size: 1rem; 
    font-weight: 700; 
    color: #111827; 
}
.dark .mobile-app-name { 
    color: #fff; 
}

@media (max-width: 768px) {
    body { 
        justify-content: flex-start !important; 
        padding-top: calc(3.5rem + var(--sat)) !important; 
        padding-bottom: calc(3.5rem + var(--sab)) !important; 
        min-height: 100vh !important;
        min-height: 100dvh !important; /* Dynamic viewport height */
        overflow-y: auto !important;
    }
    main { 
        margin-top: 1rem !important; 
        min-height: calc(100vh - 7rem - var(--sat) - var(--sab)) !important;
        min-height: calc(100dvh - 7rem - var(--sat) - var(--sab)) !important;
        overflow: visible !important;
    }
    .desktop-header { display: none !important; }
    
    /* Ensure mobile header and nav don't take too much space */
    .mobile-header {
        height: calc(3rem + var(--sat)) !important;
        min-height: calc(3rem + var(--sat)) !important;
        max-height: calc(3rem + var(--sat)) !important;
    }
    .mobile-nav {
        height: calc(3.5rem + var(--sab)) !important;
        min-height: calc(3.5rem + var(--sab)) !important;
        max-height: calc(3.5rem + var(--sab)) !important;
    }
    
    /* Reduce padding and margins for better space utilization */
    .p-4 {
        padding: 0.75rem !important;
    }
    .px-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .py-6 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}
@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
    .mobile-header { display: none !important; }
    .mobile-more-dropdown { display: none !important; }
}

/* Mobile More Dropdown Styles */
.mobile-more-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-more-dropdown.active {
    display: flex;
    opacity: 1;
}

.mobile-more-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-more-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(3.5rem + var(--sab));
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 60vh;
    overflow: hidden;
}

.dark .mobile-more-content {
    background: #1f2937;
    border-top: 1px solid #374151;
}

.mobile-more-dropdown.active .mobile-more-content {
    transform: translateY(0);
}

.mobile-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .mobile-more-header {
    border-bottom-color: #374151;
}

.mobile-more-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.dark .mobile-more-title {
    color: #f9fafb;
}

.mobile-more-close {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-more-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.dark .mobile-more-close:hover {
    background: #374151;
    color: #d1d5db;
}

.mobile-more-options {
    padding: 0.5rem;
}

.mobile-more-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    margin: 0.25rem 0;
}

.dark .mobile-more-option {
    color: #d1d5db;
}

.mobile-more-option:hover {
    background: #f3f4f6;
    color: #111827;
}

.dark .mobile-more-option:hover {
    background: #374151;
    color: #f9fafb;
}

.mobile-more-option.active {
    background: #dbeafe;
    color: #1e40af;
}

.dark .mobile-more-option.active {
    background: #1e3a8a;
    color: #93c5fd;
}

.mobile-more-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.mobile-more-option span {
    font-size: 1rem;
    font-weight: 500;
}

/* Pre-generated TailwindCSS */
:root { 
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
}
*, ::before, ::after { 
    box-sizing: border-box; 
    border-width: 0; 
    border-style: solid; 
    border-color: #e5e7eb;
}
::before, ::after { --tw-content: ''; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-feature-settings: normal; font-variation-settings: normal; }
body { margin: 0; line-height: inherit; }
h1, h2, p { margin: 0; }
/* svg { display: block; vertical-align: middle; } */
button { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; text-transform: none; background-color: transparent; background-image: none; cursor: pointer; }
.dark { color-scheme: dark; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.absolute { position: absolute; } .relative { position: relative; }
.top-4 { top: 1rem; } .left-4 { left: 1rem; } .right-4 { right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.flex { display: flex; } .hidden { display: none; }
.h-10 { height: 2.5rem; } .h-full { height: 100%; }
.w-10 { width: 2.5rem; } .w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-right: 0; margin-left: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; } .border-l-4 { border-left-width: 4px; }
.border-gray-200 { border-color: #e5e7eb; } .dark .dark\:border-gray-700 { border-color: #374151; }
.border-yellow-500 { border-color: #eab308; }
.bg-gray-100 { background-color: #f3f4f6; } .dark .dark\:bg-gray-900 { background-color: #111827; }
.bg-white { background-color: #fff; } .dark .dark\:bg-gray-800 { background-color: #1f2937; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-yellow-100 { background-color: #fef9c3; } .dark .dark\:bg-yellow-900\/30 { background-color: rgb(113 63 18 / 0.3); }
.bg-blue-600 { background-color: #2563eb; }
.p-4 { padding: 1rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-center { text-align: center; } .text-left { text-align: left; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; } .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; } .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.text-gray-800 { color: #1f2937; } .dark .dark\:text-gray-200 { color: #e5e7eb; }
.text-gray-900 { color: #111827; } .dark .dark\:text-white { color: #fff; }
.text-gray-500 { color: #6b7280; } .dark .dark\:text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.text-blue-600 { color: #2563eb; } .dark .dark\:text-blue-400 { color: #60a5fa; }
.text-yellow-800 { color: #854d0e; } .dark .dark\:text-yellow-200 { color: #fef08a; }
.text-white { color: #fff; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.object-contain { object-fit: contain; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; } .hover\:underline:hover { text-decoration-line: underline; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\:ring-opacity-75:focus { --tw-ring-opacity: 0.75; }

/* Privacy Policy Content Styling */
.privacy-content h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.dark .privacy-content h2 {
    color: #f9fafb;
    border-bottom-color: #374151;
}

.privacy-content h3 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.dark .privacy-content h3 {
    color: #d1d5db;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.dark .privacy-content p {
    color: #9ca3af;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #4b5563;
}

.dark .privacy-content li {
    color: #9ca3af;
}

.privacy-content strong {
    color: #1f2937;
    font-weight: 600;
}

.dark .privacy-content strong {
    color: #f9fafb;
}

.privacy-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.dark .privacy-content a {
    color: #60a5fa;
}

.privacy-content a:hover {
    color: #1d4ed8;
}

.dark .privacy-content a:hover {
    color: #93c5fd;
}

.contact-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.dark .contact-info {
    background-color: #1e293b;
    border-color: #334155;
}

.last-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.dark .last-updated {
    border-top-color: #374151;
    color: #9ca3af;
}

/* Theme Toggle Styles */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.peer:focus ~ .peer-focus\:outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.peer:checked ~ .peer-checked\:after\:translate-x-full::after { --tw-translate-x: 100%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.peer:checked ~ .peer-checked\:after\:border-white::after { border-color: #fff; }
.peer:checked ~ .peer-checked\:bg-blue-600 { background-color: #2563eb; }
.after\:absolute::after { content: var(--tw-content); position: absolute; }
.after\:left-\[2px\]::after { left: 2px; } .after\:top-\[2px\]::after { top: 2px; } .after\:h-5::after { height: 1.25rem; }
.after\:w-5::after { width: 1.25rem; } .after\:rounded-full::after { border-radius: 9999px; }
.after\:border::after { border-width: 1px; } .after\:border-gray-300::after { border-color: #d1d5db; }
.after\:bg-white::after { background-color: #fff; } .after\:transition-all::after { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}
