/*
Theme Name: Prayer Viewer
Description: A WordPress theme designed for displaying and navigating through prayers with slide-by-slide functionality.
Version: 1.0
Author: Prayer Viewer Theme
Text Domain: prayer-viewer
*/

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title:hover,
.site-title a:hover {
    color: #ecf0f1;
}

.site-description {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
}

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

/* Prayer List Styles - Basic styles moved to Category Page Styles section */

/* Fix prayer title visibility in prayer viewer header */
.prayer-header .prayer-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.prayer-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.read-prayer-btn {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

.read-prayer-btn:hover {
    background-color: #2980b9;
}

/* Prayer Viewer Styles */
.prayer-viewer {
    max-width: 800px;
    margin: 4rem auto 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.prayer-header {
    background-color: #34495e;
    color: white;
    padding: 0.5rem 2rem;
    text-align: center;
}

.prayer-content {
    padding: 2rem;
}

.prayer-slides-container {
    position: relative;
    min-height: 300px;
}

.prayer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.65rem;
    line-height: 1.8;
    text-align: center;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, font-size 0.3s ease;
}

/* Font size control classes */
.prayer-slide.font-small {
    font-size: 1.1rem;
}

.prayer-slide.font-medium {
    font-size: 1.65rem;
}

.prayer-slide.font-large {
    font-size: 2.2rem;
}

.prayer-slide.font-extra-large {
    font-size: 2.75rem;
}

.prayer-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Controls */
.prayer-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #ecf0f1;
    border-top: 1px solid #bdc3c7;
}

.nav-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.nav-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}



/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .prayer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .prayer-viewer {
        margin: 3rem 15px 0;
    }

    .prayer-slide {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .prayer-content {
        padding: 1rem;
    }

    .prayer-header {
        padding: 0.5rem 1rem;
    }
    
    .prayer-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .prayer-navigation .nav-prayer {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        z-index: 1001;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(44, 62, 80, 0.98);
        z-index: 1000;
        transition: right 0.4s ease;
        padding: 2rem 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
    }
    
    .main-navigation li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
        display: block !important;
    }
    
    .main-navigation a {
        display: block !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        color: white !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 1.3rem;
        transition: background-color 0.3s ease;
    }
    
    .main-navigation a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .prayer-viewer {
        margin: 2.5rem auto 0;
    }

    .prayer-header {
        padding: 0.5rem 1rem;
    }
    
    .prayer-content {
        padding: 1rem;
    }
}

/* Home Page Styles */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255,255,255,0.4), 0 0 80px rgba(255,255,255,0.2);
    border: 4px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Search Section */
.home-search {
    background: #f8f9fa;
    padding: 1.5rem 0;
    text-align: center;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.home-search-form {
    margin-top: 1rem;
}

.search-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.home-search .search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.home-search .search-submit {
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.home-search .search-submit:hover {
    background: #2980b9;
}

.search-icon {
    font-size: 1.1rem;
}

/* Categories Section */
.home-categories {
    padding: 2rem 0;
    background: white;
}

.categories-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.categories-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Category Link Boxes */
.category-link-box {
    display: inline-block;
    margin: 10px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #2c3e50;
    width: 300px;
    height: 60px;
}

.category-link-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.category-box-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.category-icon-area {
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-link-box:hover .category-icon-area {
    background: white;
    color: #3498db;
}

.category-name-area {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.category-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Legacy Category Cards - Keep for backward compatibility */
.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: auto;
}

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

.category-link {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.category-icon {
    margin-bottom: 0.5rem;
}

.category-icon .icon {
    font-size: 3rem;
    display: block;
}

.category-name {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.category-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.category-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #3498db;
    font-weight: 500;
}

.category-count .count {
    font-size: 1.2rem;
    font-weight: 600;
}

.no-categories {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

.view-all-prayers-btn,
.view-all-btn,
.view-more-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 1rem;
}

.view-all-prayers-btn:hover,
.view-all-btn:hover,
.view-more-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.categories-footer {
    text-align: center;
}

/* Recent Prayers Section */
.home-recent {
    background: #f8f9fa;
    padding: 4rem 0;
}

.recent-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 400;
}

.recent-prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-recent .prayer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.home-recent .prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.home-recent .prayer-thumbnail {
    overflow: hidden;
}

.home-recent .prayer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.home-recent .prayer-card:hover .prayer-image {
    transform: scale(1.05);
}

.home-recent .prayer-card-content {
    padding: 1.5rem;
}

.home-recent .prayer-title {
    margin-bottom: 1rem;
}

.home-recent .prayer-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}

.home-recent .prayer-title a:hover {
    color: #3498db;
}

.home-recent .prayer-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.home-recent .prayer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.prayer-category {
    background: #e8f4fd;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.home-recent .read-prayer-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.home-recent .read-prayer-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.recent-footer {
    text-align: center;
}

.no-recent-prayers {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .home-search .search-field {
        border-radius: 12px 12px 0 0;
    }
    
    .home-search .search-submit {
        border-radius: 0 0 12px 12px;
        justify-content: center;
    }
    
    .categories-title,
    .recent-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recent-prayers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .home-recent .prayer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 3rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-image img {
        width: 180px;
        height: 180px;
    }
    
    .search-wrapper {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 150px;
        height: 150px;
    }
    
    .category-link {
        padding: 0.4rem;
    }
    
    .home-recent .prayer-card-content {
        padding: 1rem;
    }
}

/* Category Page Styles */
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.archive-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.2;
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.category-stats {
    margin-top: 1.5rem;
}

.prayer-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Prayer Filters */
.prayer-filters {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-filter {
    flex: 1;
    min-width: 300px;
}

.prayer-search-form {
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e9ecef;
}

.prayer-search-form .search-field {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.prayer-search-form .search-submit {
    padding: 0.9rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.prayer-search-form .search-submit:hover {
    background-color: #2980b9;
}

.sort-filter select {
    padding: 0.9rem 1.2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-filter select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.category-navigation {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.all-prayers-link,
.home-link {
    padding: 0.7rem 1.2rem;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.all-prayers-link:hover,
.home-link:hover {
    background: #e9ecef;
    color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Prayer Count Display */
.prayer-count {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.prayer-count p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

/* Enhanced Prayer Grid */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prayer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.prayer-thumbnail {
    overflow: hidden;
    position: relative;
}

.prayer-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.prayer-card:hover .prayer-image {
    transform: scale(1.05);
}

.prayer-card-content {
    padding: 1.8rem;
}

.prayer-title {
    margin-bottom: 1rem;
}

.prayer-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s;
}

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

.prayer-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.prayer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.slide-count {
    background-color: #e8f4fd;
    color: #2c3e50;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.prayer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.read-prayer-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.read-prayer-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.favorite-btn {
    background: none;
    border: 2px solid #e9ecef;
    color: #666;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    transform: scale(1.1);
}

.favorite-btn.favorited {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* No Prayers State */
.no-prayers {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.no-prayers-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-prayers-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.view-category-prayers,
.browse-categories {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.view-category-prayers:hover,
.browse-categories:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Related Categories Section */
.related-categories {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.related-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 500;
}

.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.related-category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.related-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.related-category-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.related-category-link:hover {
    color: #3498db;
}

.related-category-link .category-icon {
    font-size: 1.4rem;
    opacity: 0.8;
}

.related-category-link .category-name {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.related-category-link .category-count {
    background: #e8f4fd;
    color: #2c3e50;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.prayer-pagination {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.prayer-pagination .page-numbers {
    padding: 0.7rem 1rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    font-weight: 500;
}

.prayer-pagination .page-numbers:hover,
.prayer-pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
}

/* Category Page Mobile Responsiveness */
@media (max-width: 768px) {
    .archive-header {
        padding: 2rem 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .archive-title {
        font-size: 2.2rem;
    }
    
    .archive-description {
        font-size: 1.1rem;
    }
    
    .prayer-filters {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .search-filter {
        min-width: auto;
    }
    
    .prayer-search-form .search-field {
        padding: 0.8rem 1rem;
    }
    
    .prayer-search-form .search-submit {
        padding: 0.8rem 1.2rem;
    }
    
    .sort-filter select {
        padding: 0.8rem 1rem;
        min-width: auto;
        width: 100%;
    }
    
    .category-navigation {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .all-prayers-link,
    .home-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .prayer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .prayer-card-content {
        padding: 1.5rem;
    }
    
    .prayer-title a {
        font-size: 1.2rem;
    }
    
    .prayer-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .read-prayer-btn {
        width: 100%;
    }
    
    .favorite-btn {
        align-self: center;
    }
    
    .related-categories {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
    
    .related-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .related-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-category-link {
        padding: 1rem;
    }
    
    .prayer-count-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .prayer-pagination .page-numbers {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .archive-header {
        padding: 1.5rem 1rem;
    }
    
    .archive-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    .prayer-filters {
        padding: 1rem;
    }
    
    .prayer-card-content {
        padding: 1.2rem;
    }
    
    .prayer-title a {
        font-size: 1.1rem;
    }
    
    .prayer-excerpt {
        font-size: 0.9rem;
    }
    
    .prayer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-categories {
        padding: 1.5rem 1rem;
    }
    
    .related-title {
        font-size: 1.3rem;
    }
    
    .related-category-link {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .related-category-link .category-name {
        font-size: 0.95rem;
    }
    
    .prayer-count-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Related Prayers Styles */
.prayer-related {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prayer-related .related-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.related-prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.related-prayer-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

.related-prayer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-prayer-thumbnail {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.related-prayer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-prayer-card:hover .related-prayer-image {
    transform: scale(1.05);
}

.related-prayer-content {
    padding: 1rem;
}

.related-prayer-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-prayer-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-prayer-title a:hover {
    color: #007cba;
}

.related-prayer-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.related-prayer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e1e5e9;
}

.related-prayer-category {
    background: #007cba;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-prayer-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-prayer-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.no-related-prayers {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-related-prayers p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.browse-all-prayers {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.browse-all-prayers:hover {
    background: #005a87;
    color: white;
}

/* Responsive adjustments for related prayers */
@media (max-width: 768px) {
    .related-prayers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .prayer-related {
        padding: 1rem;
    }
    
    .related-prayer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Social Sharing Styles */
.prayer-sharing {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.sharing-title {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sharing-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: white;
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #e08429 0%,#d55d32 25%,#c91d39 50%,#b91d5c 75%,#a9147e 100%);
    color: white;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.whatsapp:hover {
    background-color: #20c157;
    color: white;
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.twitter:hover {
    background-color: #333333;
    color: white;
}

@media (max-width: 768px) {
    .prayer-sharing {
        padding: 1.5rem 1rem;
    }
    
    .sharing-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
}

/* Add any additional custom styles here */