/* =============================================================
   Verse of the Week — Frontend Styles
   ============================================================= */

/* ---- Wrapper ---- */
.votw-wrapper {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* ---- Heading ---- */
.votw-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a5c52;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.3;
}

/* ---- Date Label ---- */
.votw-date-label {
    display: block;
    text-align: center;
    background: #1a5c52;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 20px;
    border-radius: 50px;
    margin: 0 auto 22px;
    width: fit-content;
    line-height: 1.5;
}

/* ---- Carousel clip ---- */
.votw-carousel-wrap {
    overflow: hidden;
    width: 100%;
}

/* ---- Track ---- */
.votw-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ---- Slide ---- */
.votw-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 40px;
    box-sizing: border-box;
}

/* ---- Slide inner: two equal columns ---- */
.votw-slide-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* =============================================================
   BOTH SIDES — identical structure, equal 50%
   ============================================================= */
.votw-quran-side,
.votw-hadith-side {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;        /* center content horizontally */
    justify-content: flex-start;/* always start from top      */
    text-align: center;
    padding: 24px 28px;
    box-sizing: border-box;
}

/* ---- Divider ---- */
.votw-divider {
    width: 1px;
    background-color: #e0e0e0;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0;
}

/* =============================================================
   PLAY BUTTON WRAP — centered below slide content, above nav
   ============================================================= */
.votw-play-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    margin-top: 4px;
}

.votw-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #1a5c52;
    background: transparent;
    color: #1a5c52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.15s ease, box-shadow 0.2s ease;
}

.votw-play-btn:hover {
    background: #1a5c52;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(26, 92, 82, 0.35);
}

.votw-play-btn.playing {
    background: #1a5c52;
    color: #ffffff;
    animation: votw-pulse 2s ease-in-out infinite;
}

@keyframes votw-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(26,92,82,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(26,92,82,0);   }
}

.votw-play-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* =============================================================
   LABELS — identical on both sides
   ============================================================= */
.votw-quran-label,
.votw-hadith-label {
    font-size: 22px;
    font-weight: 700;
    color: #1a5c52;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

/* =============================================================
   REFERENCE BADGES — identical on both sides
   ============================================================= */
.votw-arabic-ref,
.votw-hadith-ref {
    display: inline-block;
    background: #e4eeec;
    color: #2c2c2c;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

/* =============================================================
   ARABIC TEXT
   ============================================================= */
.votw-arabic-text {
    font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic',
                 'Noto Naskh Arabic', serif;
    font-size: 26px;
    line-height: 2;
    color: #2c2c2c;
    text-align: center;
    direction: rtl;
    margin: 0;
    padding: 0;
    word-spacing: 0.1em;
    width: 100%;
}

/* =============================================================
   ENGLISH TEXT
   ============================================================= */
.votw-hadith-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* =============================================================
   NAVIGATION
   ============================================================= */
.votw-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.votw-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1a5c52;
    background: transparent;
    color: #1a5c52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease,
                opacity 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.votw-nav-btn:hover {
    background: #1a5c52;
    color: #ffffff;
    transform: scale(1.05);
}

.votw-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.votw-nav-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.votw-counter {
    font-size: 13px;
    color: #888;
    min-width: 50px;
    text-align: center;
}

.votw-empty {
    text-align: center;
    color: #999;
    padding: 48px 20px;
    font-size: 15px;
}

/* =============================================================
   BOTTOM FIXED AUDIO PLAYER
   ============================================================= */

:root {
    --votw-player-h:      72px;
    --votw-player-bg:     #0f2623;
    --votw-player-border: rgba(255,255,255,0.07);
    --votw-player-accent: #1a7a6a;
    --votw-player-text:   #ffffff;
    --votw-player-muted:  rgba(255,255,255,0.45);
    --votw-player-track:  rgba(255,255,255,0.15);
    --votw-player-fill:   #2ecc9a;
}

body.votw-player-open {
    padding-bottom: var(--votw-player-h) !important;
}

#votw-bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--votw-player-h);
    background: var(--votw-player-bg);
    z-index: 999999;
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr minmax(120px, 220px);
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    gap: 0;
    border-top: 1px solid var(--votw-player-border);
    box-shadow: 0 -6px 40px rgba(0,0,0,0.55);
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#votw-bottom-player.votw-player-visible {
    transform: translateY(0);
}

/* LEFT */
.votw-bp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.votw-bp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--votw-player-accent), #0a4038);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
    transition: box-shadow 0.3s ease;
}

.votw-bp-avatar.votw-bp-pulsing {
    animation: votw-avatar-pulse 2.5s ease-in-out infinite;
}

@keyframes votw-avatar-pulse {
    0%, 100% { box-shadow: 0 3px 14px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 3px 24px rgba(46,204,154,0.5); }
}

.votw-bp-avatar svg {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.75);
}

.votw-bp-track-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    min-width: 0;
}

.votw-bp-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--votw-player-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.votw-bp-ref {
    font-size: 11px;
    color: var(--votw-player-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CENTER */
.votw-bp-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    min-width: 0;
}

.votw-bp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.votw-bp-btn {
    background: none;
    border: none;
    color: var(--votw-player-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.votw-bp-btn:hover { color: var(--votw-player-text); transform: scale(1.1); }
.votw-bp-btn svg   { display: block; }

.votw-bp-skip {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--votw-player-muted);
    line-height: 1;
    pointer-events: none;
}

.votw-bp-play-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--votw-player-fill);
    color: #0a2e28 !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 14px rgba(46,204,154,0.45);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.votw-bp-play-main:hover {
    transform: scale(1.08);
    background: #3ddba8;
    box-shadow: 0 4px 20px rgba(46,204,154,0.6);
}

.votw-bp-play-main svg { width: 18px; height: 18px; display: block; }

/* Seekbar row */
.votw-bp-seek-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.votw-bp-time {
    font-size: 10px;
    color: var(--votw-player-muted);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: center;
}

.votw-bp-seekbar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 3px;
    background: var(--votw-player-track);
    outline: none;
    cursor: pointer;
    transition: height 0.15s ease;
}

.votw-bp-seekbar:hover { height: 5px; }

.votw-bp-seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--votw-player-fill);
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
    transition: transform 0.15s ease;
}

.votw-bp-seekbar::-webkit-slider-thumb:hover { transform: scale(1.3); }

.votw-bp-seekbar::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--votw-player-fill);
    cursor: pointer;
    border: none;
}

/* RIGHT */
.votw-bp-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.votw-bp-vol-row {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 150px;
    flex: 1;
    justify-content: flex-end;
}

.votw-bp-vol-icon {
    color: var(--votw-player-muted);
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 0;
}

.votw-bp-vol-icon:hover { color: var(--votw-player-text); }

.votw-bp-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 3px;
    border-radius: 3px;
    background: var(--votw-player-track);
    outline: none;
    cursor: pointer;
    transition: height 0.15s;
    flex-shrink: 0;
}

.votw-bp-volume:hover { height: 5px; }

.votw-bp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--votw-player-fill);
    cursor: pointer;
}

.votw-bp-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--votw-player-fill);
    cursor: pointer;
    border: none;
}

.votw-bp-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--votw-player-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.votw-bp-close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--votw-player-text);
}

.votw-bp-close svg { width: 14px; height: 14px; display: block; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .votw-slide {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .votw-slide-inner {
        flex-direction: column;
    }

    .votw-quran-side,
    .votw-hadith-side {
        width: 100%;
        padding: 16px 8px;
    }

    .votw-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        margin: 4px 0;
    }

    .votw-arabic-text { font-size: 22px; }
    .votw-heading     { font-size: 22px; }
    .votw-quran-label,
    .votw-hadith-label { font-size: 18px; }
}

@media (max-width: 640px) {
    #votw-bottom-player {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        height: auto;
        min-height: var(--votw-player-h);
        padding: 10px 14px 8px;
        gap: 6px;
    }

    .votw-bp-left   { grid-column: 1; grid-row: 1; }
    .votw-bp-right  { grid-column: 2; grid-row: 1; }
    .votw-bp-center { grid-column: 1 / -1; grid-row: 2; padding: 0; }
    .votw-bp-vol-row { display: none; }

    body.votw-player-open { padding-bottom: 110px !important; }
}

@media (max-width: 480px) {
    .votw-arabic-text { font-size: 20px; }
    .votw-hadith-text { font-size: 14px; }
}
