/*
Theme Name: UnhitchedBible.com Theme
Description: Simple, clean WordPress theme for UnhitchedBible.com
Version: 1.0
Author: Aaron Reimann
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   Dark Mode Styles
   ========================================================================== */

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #ffffff;
}

html[data-theme="dark"] * {
    color: #ffffff;
}

html[data-theme="light"] * {
    color: #1f2937;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .site-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

html[data-theme="light"] .site-title {
    color: #1f2937;
}

.site-title:hover {
    color: #66b3ff;
}

html[data-theme="light"] .site-title:hover {
    color: #2563eb;
}

.site-tagline {
    color: #cccccc;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.25rem;
}

html[data-theme="light"] .site-tagline {
    color: #7a7a7a;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

html[data-theme="light"] .main-nav a {
    color: #1f2937;
}

.main-nav a:hover {
    color: #66b3ff;
}

html[data-theme="light"] .main-nav a:hover {
    color: #2563eb;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

html[data-theme="light"] .theme-toggle {
    color: #1f2937;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.content-card {
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .content-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

html[data-theme="light"] .page-title {
    color: #1f2937;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content a {
    color: #66b3ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

html[data-theme="light"] .content a {
    color: #2563eb;
}

.content a:hover {
    color: #ffffff;
}

html[data-theme="light"] .content a:hover {
    color: #1d4ed8;
}

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

.site-footer {
    background-color: #2a2a2a;
    border-top: 1px solid #404040;
    padding: 2rem 0;
    margin-top: auto;
}

html[data-theme="light"] .site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    text-align: center;
}

.disclaimer {
    color: #cccccc;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

html[data-theme="light"] .disclaimer {
    color: #7a7a7a;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

html[data-theme="light"] .footer-nav a {
    color: #7a7a7a;
}

.footer-nav a:hover {
    color: #ffffff;
}

html[data-theme="light"] .footer-nav a:hover {
    color: #1f2937;
}

.copyright {
    color: #cccccc;
    font-size: 0.75rem;
}

html[data-theme="light"] .copyright {
    color: #7a7a7a;
}

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}