/**
 * Daily Devotionals - Final Layout 4.36
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,100..1000&display=swap');

:root {
    --dd-bg: #F5F5F7;
    --dd-text: #1D1D1F;
    --dd-muted: #86868B;
    --dd-accent: #0066CC;
    --dd-card-bg: #FFFFFF;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    
    --width-content: 900px;
    --width-title: 1100px;
}

body.dd-full-width-enabled { overflow-x: hidden !important; }

/* Main Container */
.dd-hero-wrap {
    width: 100%;
    background-color: var(--dd-bg);
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    border-radius: 0;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--dd-text);
    box-sizing: border-box;
}

.dd-hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    position: relative;
    max-width: var(--width-title);
}

.dd-hero-header { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.dd-hero-badge {
    background: #333336;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 16px; 
    font-weight: 800;
    padding: 10px 30px; 
    border-radius: 100px;
    letter-spacing: 0.12em;
    margin-bottom: 30px;
    display: inline-block;
}

.dd-hero-title {
    max-width: var(--width-title);
    width: 100%;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 16px;
    text-align: center;
    color: var(--dd-text);
    text-wrap: balance; 
}

.dd-hero-meta {
    font-size: 21px;
    font-weight: 500;
    color: var(--dd-muted);
    margin-bottom: 60px;
    text-align: center;
}

/* KEY VERSE CARD */
.dd-key-verse-card {
    background: var(--dd-card-bg);
    max-width: var(--width-content);
    width: 100%;
    padding: 40px 60px 40px;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    margin: 0 auto 40px; 
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: visible; 
}

/* UPDATED: LABEL LARGER & BOLDER */
.dd-key-verse-label {
    display: block;
    font-size: 21px; /* Increased from 13px (+60%) */
    font-weight: 900; /* Increased from 800 */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--dd-muted);
    margin-bottom: 20px;
}

.dd-key-verse-ref {
    display: inline;
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: inherit; 
    color: #000;
    margin-right: 8px;
    letter-spacing: -0.02em;
}

/* UPDATED: TEXT ORIGINAL SIZE (30px) */
.dd-key-verse-text {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 30px; /* Kept strictly at Original Size */
    font-weight: 400;
    line-height: 1.35;
    margin: 0 !important;
    color: var(--dd-text);
}

/* FLOATING PLAYER */
.dd-circular-player {
    position: absolute; top: -40px; left: 0;
    width: 110px; height: 110px;
    cursor: pointer; z-index: 50;
    display: flex; justify-content: center; align-items: center;
    background: transparent !important; border: none !important;
    transition: transform 0.2s ease;
}
.dd-circular-player:hover { transform: scale(1.05); }
.dd-play-inner-circle { position: absolute; width: 90px; height: 90px; background-color: #0071e3 !important; border-radius: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; box-shadow: none !important; }
.dd-c-icon { font-size: 32px; color: #FFFFFF !important; background: transparent !important; border: none !important; line-height: 1; display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.dd-c-icon .fa-pause { padding-left: 0; }
.dd-ring-svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); width: 110px; height: 110px; z-index: 2; pointer-events: none; }
.dd-ring-bg { fill: none; stroke: rgba(0, 0, 0, 0.05); stroke-width: 5; }
.dd-ring-fg { fill: none; stroke: #1D1D1F; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; }

/* BODY & FOOTER */
.dd-hero-body { max-width: var(--width-content); width: 100%; text-align: left; font-size: 22px; line-height: 1.8; margin: 0 auto 40px; }
.dd-hero-prayer { margin-top: 60px; padding: 40px 50px; background: rgba(255,255,255,0.6); border-radius: 24px; border: 1px solid rgba(0,0,0,0.03); }
.dd-prayer-label { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; color: var(--dd-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.dd-hero-footer { width: 100%; max-width: var(--width-content); border-top: 1px solid #D2D2D7; padding-top: 40px; text-align: center; margin-bottom: 0; }
.dd-footer-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--dd-muted); margin-bottom: 30px; }

/* PILLS */
.dd-pill { 
    background: #FFFFFF; 
    padding: 12px 30px; 
    border-radius: 100px; 
    display: inline-block; 
    text-decoration: none; 
    color: var(--dd-text); 
    font-weight: 700; 
    font-size: 15px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); 
    margin: 6px; 
    transition: all 0.2s ease; 
    border: none; 
    cursor: pointer; 
}
.dd-pill:hover { 
    transform: translateY(-2px); 
    background-color: var(--dd-accent); 
    color: #FFFFFF; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

/* EXTRAS */
.dd-page-extras { max-width: var(--width-content); width: 100%; margin: 0 auto; text-align: center; border-top: 1px solid #D2D2D7; padding-top: 60px; margin-top: 60px; }
.dd-recent-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--dd-muted); margin-bottom: 30px; }
.dd-recent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 60px; }
.dd-recent-item { background: #fff; padding: 20px; border-radius: 16px; text-decoration: none; color: var(--dd-text); box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.2s; display: flex; flex-direction: column; gap: 8px; }
.dd-recent-item:hover { transform: translateY(-3px); }
.dd-recent-date { font-size: 12px; color: var(--dd-muted); font-weight: 700; text-transform: uppercase; }
.dd-recent-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.dd-tomorrow-section { background: rgba(0,0,0,0.03); padding: 30px; border-radius: 16px; display: inline-block; width: 100%; }
.dd-tomorrow-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dd-muted); margin-bottom: 8px; }
.dd-tomorrow-title { font-size: 20px; font-weight: 700; color: var(--dd-text); font-family: var(--font-display); }

/* MISC */
.single-devotional .entry-title, .single-devotional .post-title, .single-devotional .page-title { display: none !important; }
@media (max-width: 1200px) {
    .dd-hero-title { font-size: 2.5rem; padding: 0 20px; }
    .dd-hero-body, .dd-key-verse-card { padding: 40px 30px; max-width: 100%; }
    .dd-circular-player { position: relative; top: 0; left: 0; margin: 0 auto 30px; }
}

/* =========================================
   MODAL POPUP (Wider & Styled)
   ========================================= */
.dd-modal {
    display: none;
    position: fixed; z-index: 99999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.3s ease;
}
.dd-modal.active { display: flex; justify-content: center; align-items: center; opacity: 1; }
.dd-modal-content {
    background-color: #fefefe;
    padding: 60px;
    border-radius: 24px;
    width: 90%; max-width: 1000px; /* WIDER */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
}
.dd-modal.active .dd-modal-content { transform: scale(1); }
.dd-modal-close {
    color: #aaa; position: absolute; top: 20px; right: 30px;
    font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1;
}
.dd-modal-close:hover { color: #000; }
#dd-modal-ref {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin: 0 0 30px; color: #1D1D1F;
}
#dd-modal-text {
    font-family: 'Instrument Serif', serif;
    font-size: 32px; line-height: 1.5;
    color: #1D1D1F; margin: 0;
}
.dd-verse-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dd-accent);
    vertical-align: top;
    margin-right: 4px;
}

/* Nav Buttons inside Modal */
.dd-nav-btn {
    background: #f0f0f1;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    color: #333;
    transition: background 0.2s;
}
.dd-nav-btn:hover { background: #e0e0e1; }