/*
Theme Name: Biblos
Theme URI: https://example.com/bible-scroll
Author: Biblos
Author URI: https://example.com
Description: Optional companion theme for Biblos. The Biblos plugin provides its own full-screen app shell, so this theme is not required.
Version: 1.1.1
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bible-scroll-theme
Tags: minimal, mobile, responsive, reading, bible, full-width, custom-colors
*/

/* Base reset — deliberately light so the Bible Scroll plugin owns the reader UI */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}
img { max-width: 100%; height: auto; }
a { color: #2563eb; }

/* Layout containers */
.bst-site { display: flex; flex-direction: column; min-height: 100vh; }
.bst-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-bottom: 1px solid #e5e7eb; background: #fff;
    position: sticky; top: 0; z-index: 50;
}
.bst-site-title { font-size: 18px; font-weight: 700; margin: 0; }
.bst-site-title a { color: inherit; text-decoration: none; }
.bst-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.bst-nav a { text-decoration: none; color: inherit; font-size: 15px; }
.bst-nav a:hover { color: #2563eb; }
.bst-main { flex: 1; width: 100%; }
.bst-content { max-width: 760px; margin: 0 auto; padding: 32px 20px; }
.bst-footer {
    padding: 24px 20px; text-align: center; font-size: 14px; color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* Reader page template: full-bleed, no chrome competing with the app */
.bst-reader-template .bst-header { padding: 8px 16px; }
.bst-reader-template .bst-main { display: flex; flex-direction: column; }
.bst-reader-wrap { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 57px); }
.bst-reader-wrap .bible-scroll-app { flex: 1; border: none; border-radius: 0; height: 100vh !important; }

/* Let the plugin's app breathe on small screens */
@media (max-width: 600px) {
    .bst-content { padding: 20px 12px; }
    .bst-nav { display: none; }
}

/* Dark mode follows the OS; the plugin handles its own theme toggle */
@media (prefers-color-scheme: dark) {
    body { background: #0f172a; color: #e2e8f0; }
    .bst-header { background: #0f172a; border-color: #1e293b; }
    .bst-footer { border-color: #1e293b; color: #94a3b8; }
    a { color: #60a5fa; }
}
