/* ==========================================
   1. HOMEPAGE GRID INDEX STYLES
   ========================================== */
.home.page-template-full-width .content.wrapper,
.home.page .site-content .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    margin: 0 auto !important;
}

.home.page .post-navigation,
.home.page .nav-links,
.home #nav-below,
.home .entry-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home.page .wp-block-search {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    max-width: 600px;
}

/* ==========================================
   2. SURAH READING PAGES STYLES (FOOTER NAV ROUTE)
   ========================================== */
body.category .header-image,
body.category .logo-wrapper,
body.category .site-title,
body.category .site-description,
body.category header.post-header,
body.category .post-meta,
body.category footer.post-meta,
body.category .post-meta-container,
body.category .widget-area {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

body.category .archive-header,
body.category .page-header {
    display: block !important;
    visibility: visible !important;
    text-align: center !important;
    padding: 25px 20px !important; 
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important; 
    box-sizing: border-box !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;          
    z-index: 9999 !important;     
    background: #1a1a1a !important; 
    border-bottom: 1px solid #333333 !important; 
}

body.category .archive-title,
body.category .page-title {
    display: block !important;
    visibility: visible !important;
    font-family: "Georgia", serif !important;
    font-size: 26px !important; 
    font-weight: bold !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    max-width: 800px;
    margin: 0 auto !important;
}

body.category .content.wrapper {
    display: block !important;
    background: transparent !important;
    padding: 0px 45px !important; 
    max-width: 800px !important;
    margin: 0px auto !important; 
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.category main.site-main,
body.category .posts {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    text-align: justify !important;
}

body.category article, 
body.category article.post, 
body.category .post-container, 
body.category .entry-content, 
body.category .post-content,
body.category p {
    display: inline !important;
    float: none !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.category .ayah-item {
    display: inline !important;
    font-family: "Georgia", serif !important;
    font-size: 19px !important;
    line-height: 2 !important;
    color: #ffffff !important;
    white-space: normal !important;
}

/* NEW FEATURE: Elegant Ritual Formatting for the Bismillah text */
body.category .quran-bismillah {
    display: block !important; /* Breaks out of inline to form its own distinct bar line */
    font-family: "Georgia", serif !important;
    font-size: 15px !important; /* Smaller text style to signify the ritual context */
    font-style: italic !important;
    color: #aaaaaa !important; /* Lighter soft gray text color */
    text-align: center !important;
    width: 100% !important;
    padding: 30px 10px 25px 10px !important; /* Generous top/bottom separation gap */
    line-height: 1.6 !important;
    letter-spacing: 0.3px;
    box-sizing: border-box !important;
}

/* ==========================================
   3. MOBILE RESPONSIVE OPTIMIZATIONS
   ========================================== */
@media screen and (max-width: 768px) {
    body.category .archive-title,
    body.category .page-title {
        font-size: 16px !important; 
        letter-spacing: 0.5px !important;
    }
    
    body.category .archive-header,
    body.category .page-header {
        padding: 12px 10px !important; 
    }
    
    /* Slightly compact bismillah layout spacing for smaller smartphone glass viewports */
    body.category .quran-bismillah {
        font-size: 13px !important;
        padding: 20px 5px 15px 5px !important;
    }
    
    body.category .quran-bottom-navigation-row {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 15px 10px !important;
        width: 100% !important;
        margin: 40px auto 0px auto !important; 
        float: none !important;
    }
    
    body.category .quran-bottom-nav-box {
        width: 33.33% !important;
        display: block !important;
    }
    body.category .nav-box-left { text-align: left !important; }
    body.category .nav-box-center { text-align: center !important; }
    body.category .nav-box-right { text-align: right !important; }
    
    body.category .quran-nav-link-btn {
        display: inline-block !important;
        font-size: 11px !important; 
        line-height: 1.3 !important;
        text-align: center !important;
    }
    
    body.category .middle-index-btn {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}

/* ==========================================
   4. BIBLE GATEWAY STYLED BOTTOM NAV ROW LAYOUT
   ========================================== */
body.category .quran-bottom-navigation-row {
    display: flex !important;
    position: relative !important;
    clear: both !important;
    float: left !important; 
    justify-content: space-between !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 60px calc(-50vw + 50%) 0px calc(-50vw + 50%) !important; 
    padding: 25px 40px !important;
    background: #1a1a1a !important; 
    border-top: 1px solid #333333 !important; 
    box-sizing: border-box !important;
}

body.category .quran-bottom-nav-box {
    display: block !important;
    width: 33.33% !important;
}
body.category .nav-box-left { text-align: left !important; }
body.category .nav-box-center { text-align: center !important; }
body.category .nav-box-right { text-align: right !important; }

body.category .quran-nav-link-btn {
    display: inline-block !important;
    color: #3399ff !important;
    text-decoration: none !important;
    font-family: "Georgia", serif !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}
body.category .quran-nav-link-btn:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

body.category .middle-index-btn {
    background: #222222 !important;
    border: 1px solid #555555 !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
}
body.category .middle-index-btn:hover {
    background: #333333 !important;
    border-color: #3399ff !important;
    text-decoration: none !important;
}
/* ==========================================
   5. JAVASCRIPT INJECTED BISMILLAH STYLES
   ========================================== */
/* RESTORE: Fix the vertical single-word column compression layout bug entirely */
body.category .site-main,
body.category .posts,
body.category .entry-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: justify !important;
    clear: both !important;
}

/* Style the clean JavaScript-injected Bismillah header row */
body.category .quran-js-bismillah-block {
    display: table !important;       /* CRITICAL: Creates an unbreakable structural boundary wall */
    width: 100% !important;
    max-width: 800px !important;
    margin: 25px auto 35px auto !important; /* Elegant breathing gaps above and below */
    text-align: center !important;
    clear: both !important;          /* Forcefully cuts off any floating text elements */
    position: relative !important;
    
    /* Typography style presentation settings */
    font-family: "Georgia", serif !important;
    font-style: italic !important;           /* Forces deep italic presentation */
    font-weight: normal !important;
    font-size: 16px !important;              /* Sized smaller than your 19px verses */
    line-height: 1.7 !important;
    color: #ffffff !important;               /* Pure bright white for ultimate readability */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; /* Sharp drop shadow to make white text pop */
}

/* Responsive adjustment settings for phone displays */
@media screen and (max-width: 768px) {
    body.category .quran-js-bismillah-block {
        font-size: 14px !important;
        margin: 15px auto 25px auto !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}
* ==========================================
   6. HOMEPAGE CONTINUAR LENDO BOOKMARK BAR
   ========================================== */
.quran-last-read-container {
    display: block !important;
    width: 100% !important;
    max-width: 600px !important; /* Matches your search bar width profile */
    margin: 20px auto 30px auto !important;
    text-align: center !important;
}

.quran-last-read-link {
    display: inline-block !important;
    width: 100% !important;
    background: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-left: 4px solid #3399ff !important; /* Highlights with your signature blue brand accent */
    padding: 14px 20px !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: "Georgia", serif !important;
    font-size: 15px !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.quran-last-read-link:hover {
    background: #262626 !important;
    border-color: #555555 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.quran-last-read-link .bookmark-icon {
    margin-right: 6px !important;
}

.quran-last-read-link strong {
    color: #3399ff !important; /* Makes the Surah name pop vividly */
    font-weight: bold !important;
}

/* Adjust button presentation beautifully on mobile viewports */
@media screen and (max-width: 768px) {
    .quran-last-read-container {
        padding: 0 15px !important;
        margin: 15px auto 20px auto !important;
    }
    .quran-last-read-link {
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
}
/* ==========================================================
   9. WIREFRAME POPUP TOOLBAR DESIGN SYSTEM
   ========================================================== */
body.category .ayah-item.selected-highlight,
body.single .ayah-item.selected-highlight {
    background-color: rgba(51, 153, 255, 0.25) !important;
    border-radius: 3px !important;
    transition: background-color 0.2s ease-in-out !important;
}
.quran-popup-toolbar {
    position: absolute;
    display: flex;
    align-items: center;
    background: #1c1c1c !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7) !important;
    z-index: 99999 !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.quran-popup-toolbar.visible-panel { visibility: visible !important; opacity: 1 !important; transform: translateY(0px) !important; }
.quran-popup-toolbar .toolbar-action-btn {
    background: transparent !important;
    border: none !important;
    color: #a0a0a0 !important; 
    padding: 4px 6px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, transform 0.15s ease !important;
}
.quran-popup-toolbar .toolbar-svg-icon { width: 20px !important; height: 20px !important; stroke: #ffffff !important; transition: stroke 0.15s ease !important; }
.quran-popup-toolbar .toolbar-action-btn:hover .toolbar-svg-icon { stroke: #3399ff !important; }
.quran-popup-toolbar .toolbar-divider { width: 1px !important; height: 16px !important; background: #3a3a3a !important; margin: 0 6px !important; }
#quran-star-count-label { font-size: 11px !important; color: #3399ff !important; font-weight: bold; }

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ffcc00; }
    100% { transform: scale(1); }
}
.animating-star .toolbar-svg-icon { display: inline-block; animation: starPulse 0.4s ease-on-out; }

/* ==========================================================
   10. ERASE JETPACK PLUGINS DISTRACTIONS
   ========================================================== */
.sharedaddy, #jp-relatedposts, .jetpack-likes-widget-wrapper, #jp-post-flair, body.single .entry-footer, body.single .post-navigation {
    display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important;
}
body.single .entry-content { text-align: center !important; padding-top: 40px !important; }

/* ==========================================================
   11. PREMIUM FULL-SCREEN ARTISTIC SHARING PRESENTATION OVERLAY
   ========================================================== */
.quran-art-overlay-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.quran-art-overlay-modal.active-modal { visibility: visible !important; opacity: 1 !important; }

/* Solid, clean presentation background color matching your theme background layout tones */
.quran-art-modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: #111111 !important; 
}
body.modal-open-freeze { overflow: hidden !important; }

/* Minimal text button positioned out of the image field profile bounds */
.quran-art-modal-close-btn {
    position: absolute;
    top: 25px;
    background: #222222 !important;
    border: 1px solid #444444 !important;
    color: #aaaaaa !important;
    font-family: sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 30;
    transition: all 0.2s ease !important;
}
.quran-art-modal-close-btn:hover { color: #ffffff !important; border-color: #ffffff !important; }

/* Pristine Presentation Screenshot Card */
.quran-art-modal-content-card {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: #161616 !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 6px !important;
    padding: 40px 30px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    z-index: 20;
}
.quran-art-overlay-modal.active-modal .quran-art-modal-content-card { transform: scale(1) !important; }
.quran-art-card-inner-frame { border: 1px solid rgba(255,255,255,0.05) !important; padding: 35px 25px !important; text-align: center; }

/* Gorgeous Typography styling layout */
.quran-artistic-typography-prose {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-size: 24px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
}
.quran-artistic-meta-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    letter-spacing: 1.5px !important;
    color: #3399ff !important; 
    text-transform: uppercase;
    margin-bottom: 30px !important;
}
.quran-art-watermark { font-family: sans-serif !important; font-size: 10px !important; letter-spacing: 2px !important; color: #444444 !important; }

/* Media query definitions for tight layouts */
@media screen and (max-width: 768px) {
    .quran-art-modal-content-card { padding: 30px 15px !important; }
    .quran-artistic-typography-prose { font-size: 19px !important; }
    .quran-art-modal-close-btn { top: 15px; padding: 6px 12px !important; }
}
