/**
 * Cemetery Top Header - Stylesheet
 * Elegant dark theme tailored for cemetery / memorial websites.
 */

.cemetery-top-header-wrapper {
    --cth-bg: #11161d;
    --cth-border: rgba(212, 175, 55, 0.18);
    --cth-verse-color: #e5cb85;
    --cth-verse-glow: rgba(229, 203, 133, 0.25);
    --cth-text-color: #cbd5e1;
    --cth-highlight-color: #f1f5f9;
    --cth-icon-color: #d4af37;
    --cth-divider-color: rgba(255, 255, 255, 0.12);
    --cth-badge-bg: rgba(255, 255, 255, 0.05);

    width: 100%;
    background: var(--cth-bg);
    border-bottom: 1px solid var(--cth-border);
    direction: rtl;
    text-align: right;
    font-family: inherit, system-ui, -apple-system, "Segoe UI", Roboto, "Vazirmatn", "IRANSans", Tahoma, sans-serif;
    position: relative;
    z-index: 99;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.cemetery-top-header-wrapper,
.cemetery-top-header-wrapper * {
    box-sizing: border-box;
}

.cemetery-top-header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Right Section: Date & Khoy Prayer Times */
.cth-right-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cth-item-block {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cth-text-color);
    font-size: 13px;
    line-height: 1.6;
}

.cth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cth-icon-color);
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.cth-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.cth-label {
    color: var(--cth-text-color);
    font-weight: 500;
    opacity: 0.88;
}

.cth-value {
    color: var(--cth-highlight-color);
    font-weight: 600;
}

/* Vertical Divider */
.cth-divider {
    width: 1px;
    height: 18px;
    background-color: var(--cth-divider-color);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Prayer Times Badges */
.cth-prayer-times-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cth-prayer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--cth-badge-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 12px;
    color: var(--cth-text-color);
    transition: all 0.25s ease;
}

.cth-prayer-chip:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.08);
}

.cth-prayer-chip .time-val {
    color: var(--cth-verse-color);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Left / Center Section: Holy Quran Verse */
.cth-left-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cth-quran-verse {
    font-family: "Amiri", "Scheherazade New", "Traditional Arabic", "Quranic", Tahoma, serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--cth-verse-color);
    text-shadow: 0 0 14px var(--cth-verse-glow);
    padding: 2px 8px;
    border-radius: 4px;
    background: radial-gradient(ellipse at center, rgba(229, 203, 133, 0.08) 0%, rgba(229, 203, 133, 0) 75%);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

.cth-quran-verse:hover {
    text-shadow: 0 0 20px rgba(229, 203, 133, 0.45);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .cemetery-top-header-container {
        padding: 8px 16px;
        gap: 12px;
    }
    
    .cth-quran-verse {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .cemetery-top-header-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 14px;
        gap: 10px;
        text-align: center;
    }

    .cth-left-section {
        justify-content: center;
        width: 100%;
        order: 1; /* Quran verse prominent at top on mobile */
    }

    .cth-quran-verse {
        font-size: 15px;
        white-space: normal;
        text-align: center;
        line-height: 1.8;
    }

    .cth-right-section {
        justify-content: center;
        width: 100%;
        order: 2;
        gap: 10px;
    }

    .cth-item-block {
        font-size: 12px;
    }

    .cth-divider {
        display: inline-block;
        height: 14px;
    }

    .cth-prayer-times-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .cth-right-section {
        flex-direction: column;
        gap: 6px;
    }

    .cth-divider {
        display: none;
    }

    .cth-quran-verse {
        font-size: 14.5px;
    }
}
