/*
Theme Name: Sermon Focus
Description: A clean, SEO-friendly WordPress theme designed specifically for sermon websites. Features responsive design, optimized performance, and perfect integration with the Auto Sermon Generator plugin.
Version: 1.0
Author: Custom Theme
Text Domain: sermon-focus
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #3498db;
}

.site-description {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.main-navigation {
    flex: 0 0 auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
}

.menu-primary-container ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.menu-primary-container a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu-primary-container a:hover {
    color: #3498db;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Sermon Grid */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Sermon Card */
.sermon-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sermon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sermon-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.sermon-content {
    padding: 1.5rem;
}

.sermon-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.sermon-title a {
    text-decoration: none;
    color: inherit;
}

.sermon-title a:hover {
    color: #3498db;
}

.sermon-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sermon-excerpt {
    color: #555;
    line-height: 1.6;
}

/* Single Sermon Page */
.single-sermon {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Featured Image Styling */
.sermon-featured-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.sermon-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-featured-image:hover img {
    transform: scale(1.02);
}

/* Entry Header Styling */
.entry-header {
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    border-bottom: 1px solid #e9ecef;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.3;
    font-weight: 700;
}

.entry-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.entry-meta .author {
    font-weight: 500;
    color: #3498db;
}

/* Content Area */
.entry-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.entry-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.entry-content blockquote p {
    margin: 0;
}

/* Entry Footer */
.entry-footer {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.back-to-sermons {
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background: #2980b9;
    color: white;
}

.single-sermon-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.single-sermon-content {
    padding: 2rem;
}

.single-sermon-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.single-sermon-meta {
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sermon-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.sermon-text h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.sermon-text h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.sermon-text blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.sermon-text blockquote p {
    margin: 0;
}

/* Ad Spots */
.ad-spot {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

.ad-spot-top {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.ad-spot-bottom {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-navigation {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #34495e;
}

.footer-menu-container ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-menu-container a {
    color: #bdc3c7;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-menu-container a:hover {
    color: #3498db;
}

.site-info {
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

.site-info p {
    margin: 0.5rem 0;
}

/* Mid-Content Advertisement */
.mid-content-ad {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.ad-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.ad-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder p {
    margin: 0;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .site-branding {
        flex: 1;
        text-align: left;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-primary-container {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        z-index: 999;
    }
    
    .menu-primary-container.active {
        display: block;
    }
    
    .menu-primary-container ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0.5rem 0;
        list-style: none;
    }
    
    .menu-primary-container li {
        margin: 0;
    }
    
    .menu-primary-container a {
        display: block;
        padding: 0.75rem 1rem;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.3s ease;
    }
    
    .menu-primary-container a:hover {
        background-color: #f8f9fa;
    }
    
    .menu-primary-container li:last-child a {
        border-bottom: none;
    }
    
    .sermons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile Featured Image */
    .sermon-featured-image {
        height: 200px;
        border-radius: 0;
    }
    
    .entry-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content {
        padding: 1rem;
    }
    
    .single-sermon-content {
        padding: 1rem;
    }
    
    .single-sermon-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-menu-container ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mid-content-ad {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }
    
    .ad-placeholder {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .single-sermon-title {
        font-size: 1.5rem;
    }
    
    .sermon-text {
        font-size: 1rem;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .ad-spot {
        display: none;
    }
    
    .single-sermon {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}