/*
Theme Name: Bible Inspire Theme
Theme URI: https://bibleinspire.com
Author: Elite Web Architect
Author URI: https://bibleinspire.com
Description: A $10,000-quality, ultra-fast, spiritual WordPress theme for Bible Inspire, built for Hostinger with 100% PageSpeed & AEO optimization.
Version: 1.0.0
Text Domain: bible-inspire
*/

/* ==========================================================================
   1. CORE CSS VARIABLES & RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-main: #F4F1EA;
    --bg-surface: #FAF8F5;
    --bg-card: #FFFFFF;
    --text-primary: #2C2C2A;
    --text-muted: #6B6B66;
    --accent-sage: #7A8B7B;
    --accent-sage-light: #E8ECE8;
    --accent-sage-dark: #5A6B5B;
    --accent-earth: #C28E64;
    --accent-earth-hover: #A6754E;
    --border-color: #E2DDD5;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   2. TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw + 1rem, 1.8rem); }

p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-earth);
    color: #FFFFFF !important;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(194, 142, 100, 0.25);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--accent-earth-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 142, 100, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-sage-light);
    color: var(--accent-sage-dark) !important;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--accent-sage);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: var(--accent-sage);
    color: #FFFFFF !important;
}

/* ==========================================================================
   3. SMART HIDE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(244, 241, 234, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.35s ease, background-color 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-sage);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-sage);
    transition: var(--transition-smooth);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Slide-in Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==========================================================================
   4. HERO BANNER & DAILY VERSE PORTAL
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(122, 139, 123, 0.08) 0%, transparent 70%);
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-sage-dark);
    margin-bottom: 1rem;
}

.hero-title {
    margin-bottom: 1.2rem;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.15rem;
}

.daily-verse-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-earth);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 850px;
    margin: 0 auto 3.5rem auto;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.daily-verse-badge {
    position: absolute;
    top: -14px;
    left: 2rem;
    background-color: var(--accent-sage);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
}

.daily-verse-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw + 0.8rem, 1.6rem);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.daily-verse-ref {
    font-weight: 700;
    color: var(--accent-earth);
    font-size: 1rem;
}

/* ==========================================================================
   5. CATEGORY FILTERS & BLOG GRID
   ========================================================================== */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-sage);
    color: #FFFFFF;
    border-color: var(--accent-sage);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-sage-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* ==========================================================================
   6. DEVOTIONAL NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background-color: var(--accent-sage-light);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 5rem;
    border: 1px solid var(--accent-sage);
}

.newsletter-title {
    margin-bottom: 0.75rem;
}

.newsletter-desc {
    max-width: 550px;
    margin: 0 auto 2rem auto;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    outline: none;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-earth);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. MEDIA QUERIES (OMNICHANNEL RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .main-navigation { display: none; }
    .mobile-nav-toggle { display: block; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .daily-verse-card { padding: 2rem 1.25rem; }
}