/**
 * Daily Devotionals - Final Polish 5.2
 * - Fixed Player Overlap
 * - CSS for 3 Recent Items
 */

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

:root {
    --dd-bg: #F5F5F7;
    --dd-text: #1D1D1F;
    --dd-muted: #86868B;
    --dd-accent: #0066CC;
    --dd-card-bg: #FFFFFF;
    --width-content: 900px;
    --width-title: 1100px;
}

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

/* Main Container */
.dd-hero-wrap {
    width: 100%;
    background: linear-gradient(to bottom, #F5F5F7 0%, #FFFFFF 100%);
    padding: 80px 20px 120px 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    color: var(--dd-text);
}

.dd-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Banner */
.dd-hero-img-container { margin-bottom: 50px; display: flex; justify-content: center; }
.dd-hero-banner-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.15);
    display: block;
}

/* Tabs */
.dd-switcher-container { display: flex; justify-content: center; margin-bottom: 60px; }
.dd-switcher-bg { background: #E5E5EA; padding: 5px; border-radius: 100px; display: flex; gap: 5px; }
.dd-switch-btn { background: transparent; border: none; padding: 14px 35px; font-size: 16px; font-weight: 700; color: #666; border-radius: 100px; cursor: pointer; transition: all 0.3s ease; }
.dd-switch-btn.active { background: #fff; color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dd-view-pane { display: none; animation: ddFadeIn 0.4s ease; }
.dd-view-pane.active { display: block; }
@keyframes ddFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Devotional Header */
.dd-hero-header { text-align: center; margin-bottom: 60px; max-width: var(--width-content); margin-left: auto; margin-right: auto; }
.dd-hero-title { font-family: 'DM Sans', sans-serif; font-size: 64px; line-height: 1.05; font-weight: 900; color: #000; margin: 0 0 15px 0; letter-spacing: -2px; }
.dd-hero-meta { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 15px; font-weight: 600; color: var(--dd-muted); margin-bottom: 30px; }
.dd-date-pill { background: #fff; padding: 8px 18px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; gap: 8px; }
.dd-author-chip { display: flex; align-items: center; gap: 10px; background: #fff; padding: 6px 16px 6px 6px; border-radius: 100px; border: 1px solid rgba(0,0,0,0.1); cursor: pointer; transition: all 0.2s ease; }
.dd-author-chip:hover { border-color: var(--dd-accent); transform: scale(1.02); }
.dd-author-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.dd-author-name { font-weight: 700; color: #000; }

/* LIGHTER GREY Verse Card - with space for player */
.dd-key-verse-card { background: #F2F2F7; color: #333; padding: 60px 50px; border-radius: 24px; text-align: center; margin-bottom: 80px; position: relative; max-width: var(--width-content); margin-left: auto; margin-right: auto; border: 1px solid rgba(0,0,0,0.05); }
.dd-key-verse-text {
    font-family: 'Instrument Serif', serif;
    font-size: 40px;
    line-height: 1.4;
    color: #111;
    margin-bottom: 0;
    font-style: italic;
    position: relative;
    z-index: 2;
    padding-right: 40px; /* Space for the player */
}
.dd-ref-inline { display: block; font-family: 'DM Sans', sans-serif; font-size: 24px; font-weight: 800; color: #000; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-style: normal; }

/* Adjusted Player Position */
.dd-circular-player {
    position: absolute;
    top: 30px; /* Moved down slightly */
    right: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
}
.dd-circular-player:hover { border-color: var(--dd-accent); transform: scale(1.05); }
.dd-ring-svg { transform: rotate(-90deg); position: absolute; top: -2px; left: -2px; width: 60px; height: 60px; }
.dd-ring-bg { fill: none; stroke: #eee; stroke-width: 4; }
.dd-ring-fg { fill: none; stroke: var(--dd-accent); stroke-width: 4; stroke-dasharray: 1000; }

/* Body Content */
.dd-hero-body { max-width: var(--width-content); margin: 0 auto; font-size: 22px; line-height: 1.8; color: #333; }
.dd-hero-content p { margin-bottom: 35px; }

/* Application */
.dd-hero-prayer { margin: 60px 0 0 0; padding-top: 40px; border-top: 1px solid #eee; }
.dd-prayer-label { display: flex; align-items: center; font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; color: #000; margin-bottom: 25px; }
.dd-hero-prayer p { margin: 0; font-size: 26px; font-style: italic; color: #333; font-family: 'Instrument Serif', serif; line-height: 1.5; }

/* Additional Readings */
.dd-extra-readings-section { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.1); }
.dd-read-heading { font-size: 14px; font-weight: 800; color: #999; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.dd-extra-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.dd-extra-btn { background: #fff; border: 1px solid #ddd; padding: 10px 20px; border-radius: 8px; font-weight: 700; color: #666; cursor: pointer; transition: all 0.2s; font-size: 15px; }
.dd-extra-btn:hover { border-color: #999; color: #333; }
.dd-extra-btn.active { background: #000; color: #fff; border-color: #000; }
.dd-extra-pane { display: none; animation: ddFadeIn 0.3s ease; }
.dd-extra-pane.active { display: block; }
.dd-extra-verse-ref { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--dd-accent); margin-bottom: 15px; }
.dd-extra-verse-text { font-family: 'Instrument Serif', serif; font-size: 24px; line-height: 1.6; color: #333; font-style: italic; }

/* Scripture Tab */
.dd-scripture-container { max-width: 800px; margin: 0 auto; text-align: left; }
.dd-scripture-header { text-align: center; margin-bottom: 60px; }
.dd-scripture-main-title { font-family: 'DM Sans', sans-serif; font-weight: 900; font-size: 48px; margin: 0 0 10px 0; color: #000; letter-spacing: -1px; }
.dd-ref-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.dd-ref-btn { background: #fff; border: 1px solid #ddd; padding: 12px 24px; border-radius: 8px; font-weight: 700; color: #666; cursor: pointer; font-size: 16px; transition: all 0.2s; }
.dd-ref-btn.active { background: #000; color: #fff; border-color: #000; }
.dd-ref-pane { display: none; }
.dd-ref-pane.active { display: block; }
.dd-verse-ref-heading { font-family: 'DM Sans', sans-serif; font-size: 32px; font-weight: 800; margin: 0 0 30px 0; text-align: center; color: #000; letter-spacing: -1px; }
.dd-verse-body-text { font-size: 24px; line-height: 1.7; color: #222; font-family: 'Instrument Serif', serif; }
.dd-verse-line { margin-bottom: 16px; display: block; }
.dd-verse-num { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 16px; color: var(--dd-accent); margin-right: 8px; vertical-align: baseline; }

/* Modals */
.dd-modal { z-index: 2147483647 !important; display: none; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.dd-modal.active { display: flex !important; opacity: 1; }
.dd-modal-content { background-color: #fefefe; padding: 60px; border-radius: 24px; width: 90%; max-width: 600px; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; max-height: 90vh; overflow-y: auto; }
.dd-modal-close { position: absolute; top: 20px; right: 30px; font-size: 30px; cursor: pointer; }
.dd-modal-author-pic { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Extras */
@keyframes ddPulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.dd-pulse-anim { animation: ddPulse 2.5s infinite ease-in-out; }
.dd-donate-banner { background: #fff; border: 1px solid #eee; padding: 40px; border-radius: 24px; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-top: 60px; }
.dd-db-main { font-size: 26px; font-weight: 800; color: var(--dd-accent); display: flex; align-items: center; gap: 10px; justify-content: center; }

/* RECENT GRID */
.dd-page-extras { width: 100%; max-width: 1200px; margin: 100px auto 0; padding-top: 60px; border-top: 1px solid rgba(0,0,0,0.06); }
.dd-recent-title { text-align: center; font-size: 36px; font-family: 'DM Sans', sans-serif; font-weight: 800; margin-bottom: 50px; color: #000; letter-spacing: -1px; }
.dd-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.dd-recent-item { background: #fff; border-radius: 20px; padding: 30px; text-decoration: none; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 180px; }
.dd-recent-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.0); }
.dd-recent-date {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    background: #f0f0f5;
    padding: 6px 12px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 15px;
}
.dd-recent-name { font-size: 22px; font-weight: 800; color: #1D1D1F; line-height: 1.3; font-family: 'DM Sans', sans-serif; }

@media (max-width: 900px) {
    .dd-hero-title { font-size: 42px; }
    .dd-key-verse-text { font-size: 28px; }
    .dd-recent-grid { grid-template-columns: 1fr; }
}

/**
 * Daily Devotionals - Final Polish 5.3
 * - Author Socials
 * - Stripped Verse Numbers in Additional Readings
 */

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

/* ... (Keep Main CSS from previous step, adding the Author Socials below) ... */

/* Author Socials (Modern) */
.dd-author-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dd-soc-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f7;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dd-soc-link:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Ensure Modal Content is centered properly */
.dd-modal-author-bio { font-size: 16px; line-height: 1.6; color: #555; }

/* ... (Rest of CSS same as previous) ... */
