:root {
    --font-base: 16px;
    --font-scale: 1;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    
    /* Default Theme: Dark Mode Sky Blue */
    --bg-color: #1a202c;
    --text-color: #e2e8f0;
    --primary-color: #3182ce;
    --secondary-color: #2b6cb0;
    --accent-color: #63b3ed;
    --nav-bg: #2d3748;
    --panel-bg: #2d3748;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --link-color: #63b3ed; /* Light Blue for contrast on dark */
    --header-text: #fff;
}

/* Theme Classes will override variables */
.theme-light-standard {
    --bg-color: #f7fafc;
    --text-color: #2d3748;
    --primary-color: #3182ce;
    --secondary-color: #2b6cb0;
    --accent-color: #4299e1;
    --nav-bg: #ffffff;
    --panel-bg: #edf2f7;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --link-color: #2b6cb0;
    --header-text: #1a202c;
}
/* More themes can be added similarly by JS toggling classes on body */

html {
    font-size: calc(var(--font-base) * var(--font-scale));
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Gabriela', serif;
    color: var(--header-text);
    margin-bottom: 0.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header / Titlebar */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.banner-img {
    width: 100%;
    max-width: 1600px;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.banner-img:hover {
    transform: scale(1.01);
}

.title-text-header {
    background: var(--nav-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Description */
.description-area {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Control Bar */
.control-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: var(--nav-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    align-items: center;
}

.control-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.control-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

/* Local Menu Dropdown */
.local-menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--panel-bg);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1000;
    border-radius: var(--border-radius);
    overflow: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.dropdown-content a, .dropdown-content span {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-header {
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: default;
}

.show {
    display: block;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Content Area */
main {
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: justify;
}

/* Bible References */
.bible-ref b {
    color: var(--link-color);
}

/* Footer */
footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Global Menu Injection Container */
#global-menu-container {
    margin-bottom: 1rem;
    display: none; /* Toggled by JS */
}

/* Themes */
/* Define 8 themes here (4 dark, 4 light) */

/* Dark 1 (Default: Sky Blue - defined in :root) */

/* Dark 2: Purple */
.theme-dark-purple {
    --bg-color: #2d1b4e;
    --text-color: #e9d8fd;
    --primary-color: #805ad5;
    --secondary-color: #6b46c1;
    --accent-color: #d6bcfa;
    --nav-bg: #44337a;
    --panel-bg: #44337a;
    --link-color: #d6bcfa;
}

/* Dark 3: Green */
.theme-dark-green {
    --bg-color: #1c4532;
    --text-color: #c6f6d5;
    --primary-color: #38a169;
    --secondary-color: #2f855a;
    --accent-color: #68d391;
    --nav-bg: #22543d;
    --panel-bg: #276749;
    --link-color: #68d391;
}

/* Dark 4: Slate/Orange */
.theme-dark-slate {
    --bg-color: #2d3748;
    --text-color: #edf2f7;
    --primary-color: #dd6b20;
    --secondary-color: #c05621;
    --accent-color: #f6ad55;
    --nav-bg: #4a5568;
    --panel-bg: #4a5568;
    --link-color: #f6ad55;
}

/* Light 1: Standard (Blue) - defined above */

/* Light 2: Green nature */
.theme-light-green {
    --bg-color: #f0fff4;
    --text-color: #22543d;
    --primary-color: #48bb78;
    --secondary-color: #38a169;
    --accent-color: #2f855a;
    --nav-bg: #ffffff;
    --panel-bg: #c6f6d5;
    --link-color: #276749;
    --header-text: #1c4532;
}

/* Light 3: Warm/Orange */
.theme-light-warm {
    --bg-color: #fffaf0;
    --text-color: #7b341e;
    --primary-color: #ed8936;
    --secondary-color: #dd6b20;
    --accent-color: #c05621;
    --nav-bg: #ffffff;
    --panel-bg: #feebc8;
    --link-color: #9c4221;
    --header-text: #7b341e;
}

/* Light 4: Purple */
.theme-light-purple {
    --bg-color: #faf5ff;
    --text-color: #553c9a;
    --primary-color: #9f7aea;
    --secondary-color: #805ad5;
    --accent-color: #6b46c1;
    --nav-bg: #ffffff;
    --panel-bg: #e9d8fd;
    --link-color: #553c9a;
    --header-text: #44337a;
}
