/* ==========================================================================
   إضافة كنيسة الشهيدة دميانة بفاو قبلي - ملف التنسيقات الاحترافي الموحد (Unified Luxury Styles)
   ========================================================================== */

/* 1. بادج التاريخ القبطي والطقس الكنسي في الهيدر */
.coptic-date-badge,
.church-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 169, 107, 0.15);
    border: 1px solid rgba(200, 169, 107, 0.4);
    padding: 4px 12px;
    border-radius: 30px;
    color: #fef08a;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: all 0.25s ease;
}

.coptic-date-badge:hover,
.church-season-badge:hover {
    background: rgba(200, 169, 107, 0.25);
    border-color: #c8a96b;
}

/* 2. شريط اليوم الروحي المتناسق الموحد (Spiritual Ribbon) */
.church-daily-spiritual-ribbon {
    background: #ffffff;
    border: 1.5px solid rgba(200, 169, 107, 0.4);
    border-radius: 14px;
    padding: 20px 25px;
    margin: 20px 0 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.church-daily-spiritual-ribbon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6d2432 0%, #c8a96b 100%);
}

.spiritual-verse-col {
    flex: 1 1 55%;
    min-width: 280px;
}

.spiritual-tag {
    display: inline-block;
    background: rgba(109, 36, 50, 0.08);
    color: #6d2432;
    border: 1px solid rgba(109, 36, 50, 0.2);
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.spiritual-verse-text {
    font-family: 'Amiri', 'Cairo', serif;
    font-size: 18px;
    font-weight: 700;
    color: #170408;
    line-height: 1.6;
    margin: 0 0 6px;
}

.spiritual-verse-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.spiritual-ref {
    color: #c8a96b;
    font-size: 13.5px;
    font-weight: 700;
}

.spiritual-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.spiritual-whatsapp-btn:hover {
    background: #1ebc59;
    transform: translateY(-2px);
}

.spiritual-synaxarium-col {
    flex: 1 1 35%;
    min-width: 260px;
    background: #fbf9f5;
    border: 1px solid rgba(200, 169, 107, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
}

.synaxarium-pill {
    display: inline-block;
    color: #c8a96b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.synaxarium-title-sm {
    color: #6d2432;
    font-size: 14.5px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.4;
}

.synaxarium-desc-sm {
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. بوابة خدمات الرعية التفاعلية (Parish Services Interactive Hub) */
.church-services-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
    direction: rtl;
}

.service-portal-card {
    background: #ffffff;
    border: 1.5px solid rgba(200, 169, 107, 0.3);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-portal-card:hover {
    transform: translateY(-6px);
    border-color: #c8a96b;
    box-shadow: 0 10px 25px rgba(109, 36, 50, 0.12);
}

.service-portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(109, 36, 50, 0.1) 0%, rgba(200, 169, 107, 0.2) 100%);
    border: 1px solid rgba(200, 169, 107, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #6d2432;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.service-portal-card:hover .service-portal-icon {
    background: #6d2432;
    color: #ffffff;
    transform: scale(1.1);
}

.service-portal-title {
    font-size: 17px;
    font-weight: 800;
    color: #170408;
    margin: 0 0 8px;
}

.service-portal-desc {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.service-portal-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #fbf9f5;
    border: 1px solid #c8a96b;
    border-radius: 20px;
    color: #6d2432;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.service-portal-btn:hover {
    background: #6d2432;
    color: #ffffff !important;
}

/* 4. نماذج صلوات المذبح وحجز الكهنة بتصميم متناسق فاخر */
.church-forms-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
    margin: 30px 0;
    direction: rtl;
}

.church-prayer-box,
.church-appointment-box {
    background: #ffffff;
    border: 1.5px solid rgba(200, 169, 107, 0.4);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.church-prayer-box::before,
.church-appointment-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6d2432, #c8a96b);
}

.church-prayer-box h3,
.appointment-header h3 {
    color: #6d2432;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.church-prayer-box p.prayer-intro,
.appointment-header p {
    color: #666666;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* حقول الإدخال النظيفة الموحدة */
.church-prayer-form .form-row,
.form-field {
    margin-bottom: 16px;
}

.church-prayer-form label,
.form-field label {
    display: block;
    color: #170408;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.church-prayer-form input[type="text"],
.church-prayer-form select,
.church-prayer-form textarea,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #dcd3c5;
    background: #fbf9f5;
    color: #170408;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.church-prayer-form input[type="text"]:focus,
.church-prayer-form select:focus,
.church-prayer-form textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #6d2432;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(109, 36, 50, 0.15);
}

.church-submit-prayer-btn,
.church-submit-appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6d2432 0%, #45101b 100%);
    color: #ffffff;
    border: 1px solid #c8a96b;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 36, 50, 0.25);
    font-family: inherit;
    margin-top: 6px;
}

.church-submit-prayer-btn:hover,
.church-submit-appointment-btn:hover {
    background: linear-gradient(135deg, #c8a96b 0%, #aa8014 100%);
    color: #170408;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 169, 107, 0.4);
}

.prayer-success-message,
.appointment-success-message {
    background: #f0fdf4;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #065f46;
    font-size: 14px;
}

/* 5. شبكة العظات والقداسات (Sermons Grid) */
.church-sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin: 20px 0;
    direction: rtl;
}

.church-sermon-card {
    background: #ffffff;
    border: 1px solid rgba(200, 169, 107, 0.35);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.church-sermon-card:hover {
    border-color: #6d2432;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(109, 36, 50, 0.12);
}

.sermon-card-header .sermon-speaker {
    display: inline-block;
    color: #c8a96b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sermon-card-header .sermon-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.sermon-card-header .sermon-title a {
    color: #170408;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sermon-card-header .sermon-title a:hover {
    color: #6d2432;
}

.sermon-audio-player {
    margin-top: 8px;
    background: #fbf9f5;
    border-radius: 30px;
    padding: 4px;
    border: 1px solid #e2d9c8;
}

.sermon-audio-player audio {
    width: 100%;
    height: 36px;
    outline: none;
}

/* 6. معرض الصور والأيقونات (Gallery Grid) */
.church-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 20px 0;
    direction: rtl;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid rgba(200, 169, 107, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #6d2432;
    box-shadow: 0 10px 24px rgba(109, 36, 50, 0.15);
}

.gallery-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.gallery-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(23, 4, 8, 0.92) 0%, rgba(23, 4, 8, 0.4) 65%, transparent 100%);
    padding: 16px 14px 10px;
    color: #ffffff;
}

.gallery-cat-badge {
    background: #6d2432;
    border: 1px solid #c8a96b;
    color: #fef08a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 4px;
}

.gallery-title {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0 0 2px;
    color: #ffffff;
}

.gallery-caption {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
}

/* 7. دليل الزوار والوصول لفاو قبلي */
.church-visitor-guide-box {
    background: #ffffff;
    border: 1.5px solid rgba(200, 169, 107, 0.35);
    border-radius: 14px;
    padding: 28px;
    margin: 30px auto;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.guide-header {
    text-align: center;
    border-bottom: 1px solid rgba(200, 169, 107, 0.3);
    padding-bottom: 12px;
    margin-bottom: 22px;
}

.guide-cross {
    font-size: 28px;
    color: #6d2432;
}

.guide-header h3 {
    color: #6d2432;
    font-size: 21px;
    margin: 4px 0;
    font-weight: 800;
}

.guide-header p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.guide-card {
    background: #fbf9f5;
    border: 1px solid rgba(200, 169, 107, 0.25);
    border-radius: 10px;
    padding: 16px;
}

.guide-icon {
    font-size: 22px;
    color: #6d2432;
    margin-bottom: 8px;
}

.guide-card h4 {
    color: #170408;
    font-size: 15.5px;
    margin: 0 0 6px;
    font-weight: 700;
}

.guide-card p {
    color: #555555;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.guide-map-cta {
    text-align: center;
}

/* 8. المشغل الصوتي الكنسي العائم (Floating Audio Dock) */
.church-audio-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(35, 10, 16, 0.97) 0%, rgba(18, 4, 8, 0.99) 100%);
    backdrop-filter: blur(12px);
    border-top: 2px solid #c8a96b;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.4);
    z-index: 999999;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.church-audio-dock.collapsed {
    transform: translateY(calc(100% - 38px));
}

.dock-toggle-btn {
    width: 100%;
    background: #4a101d;
    border: none;
    border-bottom: 1px solid rgba(200, 169, 107, 0.3);
    color: #fef08a;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    transition: background 0.2s ease;
}

.dock-toggle-btn:hover {
    background: #6d2432;
}

.dock-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.dock-info {
    flex: 1 1 240px;
}

.dock-tag {
    color: #c8a96b;
    font-size: 11px;
    font-weight: 700;
}

.dock-track-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dock-track-artist {
    color: #cbd5e1;
    font-size: 11.5px;
    margin: 0;
}

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

.player-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 169, 107, 0.3);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: rgba(200, 169, 107, 0.25);
    border-color: #c8a96b;
    color: #fef08a;
}

.player-btn.play-main {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c8a96b, #aa8014);
    color: #170408;
    border: none;
    font-size: 15px;
}

.dock-progress-wrap {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a39783;
    font-size: 11px;
}

.dock-progress-wrap input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: #c8a96b;
    cursor: pointer;
}

.dock-track-select select {
    background: rgba(10, 2, 4, 0.85);
    border: 1px solid rgba(200, 169, 107, 0.4);
    color: #fef08a;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12.5px;
}

/* 9. إشعار تطبيق الهاتف الذكي PWA */
.church-pwa-banner {
    position: fixed;
    bottom: 48px;
    right: 15px;
    left: 15px;
    max-width: 420px;
    margin: 0 auto;
    background: #230a10;
    border: 1.5px solid #c8a96b;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 999998;
    direction: rtl;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-cross {
    font-size: 24px;
    color: #c8a96b;
}

.pwa-text strong {
    display: block;
    color: #fef08a;
    font-size: 13.5px;
}

.pwa-text span {
    color: #cbd5e1;
    font-size: 11.5px;
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwa-install-btn {
    background: linear-gradient(135deg, #c8a96b, #aa8014);
    color: #170408;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.pwa-close-btn {
    background: transparent;
    border: none;
    color: #a39783;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* 10. الطقوس والمواسم الكنسية الهادئة والمريحة للعين */
/* طقس كيهك: لمسة كحلية راقية في الهيدر بدون تشويه خلفية الموقع */
body.liturgical-kiahk .site-header {
    background: radial-gradient(circle at top center, #102547 0%, #061122 100%) !important;
}

body.liturgical-kiahk .main-navbar {
    background: linear-gradient(180deg, #0e2242 0%, #061122 100%) !important;
}

/* طقس أسبوع الآلام: لمسة أرجوانية وقورة في الهيدر */
body.liturgical-pascha .site-header {
    background: radial-gradient(circle at top center, #2e0d29 0%, #0e020c 100%) !important;
}

body.liturgical-pascha .main-navbar {
    background: linear-gradient(180deg, #240a20 0%, #0c020a 100%) !important;
}

/* طقس القيامة الفرايحي */
body.liturgical-joy .site-header {
    background: radial-gradient(circle at top center, #6b1429 0%, #29040c 100%) !important;
}


/* --- APPOINTMENT FORM & FORM ROW GRID --- */
.church-forms-section {
    margin: 35px 0 !important;
}

.church-appointment-form {
    display: block !important;
    width: 100% !important;
}

.form-row-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 14px !important;
}

@media (max-width: 550px) {
    .form-row-grid {
        grid-template-columns: 1fr !important;
    }
}

.church-submit-appointment-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #6d2432, #4a101d) !important;
    color: #fef08a !important;
    border: 1.5px solid #c8a96b !important;
    padding: 13px 20px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
}

.church-submit-appointment-btn:hover {
    background: linear-gradient(135deg, #4a101d, #25070e) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(109, 36, 50, 0.3) !important;
}
