/* GoBible Static Pages Styles - Updated to match app theme */
:root {
    /* Light mode colors */
    --bg-primary: #F8F1E7;
    --bg-secondary: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --accent-primary: #8B7355;
    --accent-secondary: #A68B73;
    --border-color: #E0E0E0;
    --link-color: #8B7355;
    --link-hover-bg: #F8F1E7;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    margin: 0 0 40px 0;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.logo-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:hover .logo {
    transform: scale(1.1);
}

.app-name {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

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

.last-updated {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-style: italic;
}

.content {
    line-height: 1.8;
}

h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 5px;
}

h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

ul, ol {
    margin: 16px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--accent-primary);
    margin-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--accent-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tag {
    background-color: var(--accent-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--link-hover-bg);
    text-decoration: none;
}

.section {
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 35px;
}

.important-notice {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.important-notice h4 {
    color: var(--accent-primary);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.important-notice p {
    color: var(--text-primary);
    margin: 0;
}

/* Theme toggle button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--bg-secondary);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .app-name {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Add styles for all links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Dark mode support - Updated to match app dark theme */
[data-theme="dark"] {
    --bg-primary: #1C1C1C;
    --bg-secondary: #2A2A2A;
    --text-primary: #EAEAEA;
    --text-secondary: #B0B0B0;
    --text-tertiary: #808080;
    --accent-primary: #A68B73;
    --accent-secondary: #8B7355;
    --border-color: #404040;
    --link-color: #D4AF37;
    --link-hover-bg: #2A2A2A;
}

/* Ensure all links use theme colors in dark mode */
[data-theme="dark"] a {
    color: var(--link-color) !important;
}

[data-theme="dark"] a:hover {
    color: var(--accent-primary) !important;
}

/* Also support system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #1C1C1C;
        --bg-secondary: #2A2A2A;
        --text-primary: #EAEAEA;
        --text-secondary: #B0B0B0;
        --text-tertiary: #808080;
        --accent-primary: #A68B73;
        --accent-secondary: #8B7355;
        --border-color: #404040;
        --link-color: #D4AF37;
        --link-hover-bg: #2A2A2A;
    }
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    /* Ensure all links use theme colors in system dark mode */
    a {
        color: var(--link-color) !important;
    }
    
    a:hover {
        color: var(--accent-primary) !important;
    }
}