/*
Theme Name: Scripture
Theme URI: https://example.com/scripture
Author: Custom Theme
Author URI: https://example.com
Description: A clean, elegant WordPress theme centered around the Bible. Features a serene design with deep blues, soft golds, and classical typography inspired by scripture. Perfect for churches, ministries, Bible study blogs, and Christian content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scripture
Tags: bible, christian, church, blog, two-columns, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS Variables
======================================== */
:root {
  --primary: #1a365d;       /* Deep navy blue */
  --primary-light: #2c5282;
  --accent: #c9a227;        /* Soft gold */
  --accent-light: #e8d48b;
  --bg: #f8f5f0;            /* Warm off-white (parchment feel) */
  --bg-alt: #ffffff;
  --text: #2d3748;
  --text-light: #4a5568;
  --border: #e2e8f0;
  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ========================================
   Reset & Base
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.75em;
  font-weight: 600;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Layout
======================================== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  display: flex;
  gap: 40px;
  padding: 40px 0 60px;
  flex: 1;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* ========================================
   Header
======================================== */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.site-title a {
  color: #fff;
}

.site-title a:hover {
  color: var(--accent-light);
}

.site-description {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 300;
  margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--accent-light);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ========================================
   Hero / Verse of the Day
======================================== */
.verse-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4365 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.verse-banner::before {
  content: '✝';
  position: absolute;
  font-size: 180px;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.verse-text {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.5;
  position: relative;
}

.verse-ref {
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ========================================
   Posts / Cards
======================================== */
.post {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post:hover .post-thumbnail img {
  transform: scale(1.04);
}

.post-content {
  padding: 28px;
}

.post-title {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--primary);
}

.post-title a:hover {
  color: var(--accent);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-summary {
  color: var(--text-light);
  margin-bottom: 18px;
}

.read-more {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.read-more:hover {
  background: var(--accent);
}

/* Single post */
.single .post {
  box-shadow: none;
  background: transparent;
}

.single .post-content {
  padding: 0;
}

.single .entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single .entry-content p {
  margin-bottom: 1.4em;
}

.single .entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary);
}

/* ========================================
   Sidebar
======================================== */
.widget {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
  border-bottom: none;
}

/* Bible Verse Widget */
.verse-widget {
  background: linear-gradient(145deg, var(--primary), #2a4365);
  color: #fff;
}

.verse-widget .widget-title {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.verse-widget .verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.verse-widget .ref {
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: right;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
}

.footer-text {
  font-size: 0.9rem;
}

.footer-text a {
  color: var(--accent-light);
}

/* ========================================
   Pagination
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-alt);
  border-radius: 4px;
  color: var(--primary);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px) {
  .site-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-navigation a {
    display: block;
    padding: 12px 0;
  }

  .verse-text {
    font-size: 1.25rem;
  }

  h1 { font-size: 1.9rem; }
  .post-title { font-size: 1.35rem; }
}

/* ========================================
   Utility
======================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
