/**
 * Bible ES Generator Plugin Styles
 * Custom styling for category pages and single posts
 */

/* Category Header Styles */
.beg-category-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.beg-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.beg-category-title {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Posts Grid */
.beg-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.beg-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beg-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.beg-post-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.beg-post-content {
    padding: 25px;
}

.beg-post-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.beg-post-title a {
    color: #333;
    text-decoration: none;
}

.beg-post-title a:hover {
    color: #0073aa;
}

.beg-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.beg-post-meta {
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.beg-post-meta a {
    color: #0073aa;
    text-decoration: none;
}

.beg-post-meta a:hover {
    text-decoration: underline;
}

/* Single Post Styles */
.beg-single-header {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.beg-single-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.beg-single-title {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.2;
}

.beg-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.beg-summary {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.beg-verses-section {
    margin-bottom: 40px;
}

.beg-verses-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.beg-verse-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.beg-verse-reference {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.beg-verse-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.beg-copyright {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #e9ecef;
}

.beg-post-meta {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.beg-post-meta a {
    color: #0073aa;
    text-decoration: none;
}

.beg-post-meta a:hover {
    text-decoration: underline;
}

/* Home Page Category Styling */
.beg-home-categories {
    margin: 40px 0;
    padding: 0 20px;
}

.beg-home-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.beg-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.beg-category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.beg-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.beg-category-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.beg-category-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.beg-category-card-content {
    padding: 25px;
    text-align: center;
}

.beg-category-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.beg-category-card-count {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .beg-category-header, .beg-single-header {
        height: 300px;
    }
    
    .beg-category-title, .beg-single-title {
        font-size: 2rem;
    }
    
    .beg-posts-grid, .beg-categories-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .beg-verse-item {
        padding: 20px;
    }
    
    .beg-verse-text {
        font-size: 1rem;
    }
    
    .beg-home-categories h2 {
        font-size: 2rem;
    }
}

/* Sample Content Styling */
.beg-sample-verse {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

.beg-sample-reference {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    color: #34495e;
}

/* Widget Styling */
.beg-widget-categories {
    margin: 0;
    padding: 0;
}

.beg-widget-category {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beg-widget-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.beg-widget-category a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.beg-widget-category-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.beg-widget-category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.beg-widget-category-content {
    padding: 15px;
    text-align: center;
}

.beg-widget-category-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.beg-widget-post-count {
    color: #666;
    font-size: 0.85rem;
}
