/**
 * Episcopal Theme - Deep Red/Gold
 * Applied when diocese denomination_type is 'episcopal'
 */

/* Override CSS variables for episcopal theme */
:root.theme-episcopal {
    /* Primary Colors - Episcopal Red */
    --color-primary: #8B0000;
    --color-primary-hover: #A50000;
    --color-primary-light: rgba(139, 0, 0, 0.15);

    /* Gold accent (traditional Episcopal) */
    --color-accent: #CFB53B;
    --color-accent-light: rgba(207, 181, 59, 0.2);

    /* Background Colors - Dark red-black */
    --color-bg-primary: #1a0f0f;
    --color-bg-secondary: rgba(139, 0, 0, 0.06);
    --color-bg-elevated: rgba(139, 0, 0, 0.12);

    /* Border Colors */
    --color-border-default: rgba(139, 0, 0, 0.2);
    --color-border-hover: rgba(139, 0, 0, 0.4);
    --color-border-active: rgba(139, 0, 0, 0.6);

    /* Text for readability */
    --color-text-primary: #f4e8e8;
    --color-text-secondary: #c0a0a0;
    --color-text-tertiary: #8a6a6a;
}

/* Navigation overrides */
.theme-episcopal .top-nav {
    background: rgba(26, 15, 15, 0.95);
    border-bottom: 1px solid rgba(139, 0, 0, 0.25);
}

.theme-episcopal .logo {
    color: #CFB53B;
}

.theme-episcopal .logo:hover {
    color: #e0c85a;
}

.theme-episcopal .nav-link:hover,
.theme-episcopal .nav-link.active {
    color: #CFB53B;
    background: rgba(139, 0, 0, 0.2);
}

.theme-episcopal .nav-dropdown-toggle:hover,
.theme-episcopal .nav-dropdown.open .nav-dropdown-toggle {
    color: #CFB53B;
    background: rgba(139, 0, 0, 0.2);
}

.theme-episcopal .nav-dropdown-menu {
    background: rgba(26, 15, 15, 0.98);
    border-color: rgba(139, 0, 0, 0.3);
}

.theme-episcopal .nav-dropdown-item:hover {
    background: rgba(139, 0, 0, 0.25);
    color: #CFB53B;
}

.theme-episcopal .lang-btn.active {
    background: rgba(139, 0, 0, 0.3);
    border-color: rgba(139, 0, 0, 0.5);
    color: #CFB53B;
}

/* Body background */
.theme-episcopal body,
.theme-episcopal html {
    background: #1a0f0f;
}

.theme-episcopal body {
    background: linear-gradient(180deg, #1a0f0f 0%, #251515 50%, #1a0f0f 100%);
}

/* Service finder specific overrides */
.theme-episcopal .answer-title {
    color: #CFB53B;
}

.theme-episcopal .toggle-btn.active {
    background: #8B0000;
    color: white;
}

.theme-episcopal .toggle-btn:hover {
    border-color: #8B0000;
    color: #CFB53B;
}

.theme-episcopal .btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #A50000 100%);
    color: white;
}

.theme-episcopal .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.theme-episcopal .results-count {
    color: #CFB53B;
}

.theme-episcopal .card-time-block .time {
    color: #CFB53B;
}

.theme-episcopal .church-card:hover {
    border-color: rgba(139, 0, 0, 0.4);
}

.theme-episcopal .slider-container input[type="range"]::-webkit-slider-thumb {
    background: #8B0000;
}

.theme-episcopal .slider-labels span.active {
    color: #CFB53B;
}

/* Map sidebar overrides */
.theme-episcopal #sidebar {
    background: #1a0f0f;
}

.theme-episcopal .header {
    background: #1a0f0f;
    border-bottom-color: rgba(139, 0, 0, 0.2);
}

.theme-episcopal .data-summary-number {
    color: #CFB53B;
}

.theme-episcopal .filter-badge.active {
    background: rgba(139, 0, 0, 0.2);
    border-color: #8B0000;
    color: #CFB53B;
}

.theme-episcopal .item-action-primary {
    background: #8B0000;
    border-color: #8B0000;
}

.theme-episcopal .item-action-primary:hover {
    background: #A50000;
    border-color: #A50000;
}

.theme-episcopal .geolocation-btn.loading {
    border-color: #8B0000;
    background: rgba(139, 0, 0, 0.15);
}

/* Footer */
.theme-episcopal .footer-links a {
    color: #CFB53B;
}

/* Popup styles */
.theme-episcopal .leaflet-popup-content-wrapper {
    background: rgba(26, 15, 15, 0.95);
    border-color: rgba(139, 0, 0, 0.3);
}

.theme-episcopal .leaflet-popup-tip {
    background: rgba(26, 15, 15, 0.95);
}

.theme-episcopal .popup-title {
    color: #CFB53B;
}

/* Reminder signup */
.theme-episcopal .reminder-signup-box {
    background: rgba(26, 15, 15, 0.6);
    border-color: rgba(139, 0, 0, 0.3);
}

.theme-episcopal .reminder-signup-box h2 {
    color: #CFB53B;
}

.theme-episcopal .form-group input:focus,
.theme-episcopal .form-group select:focus {
    border-color: #8B0000;
}

/* Language badge */
.theme-episcopal .language-badge {
    background: rgba(139, 0, 0, 0.25);
    color: #CFB53B;
}

/* Mobile menu */
@media (max-width: 768px) {
    .theme-episcopal .nav-links {
        background: #1a0f0f !important;
    }

    .theme-episcopal .nav-link:hover,
    .theme-episcopal .nav-link.active {
        background: rgba(139, 0, 0, 0.2) !important;
        border-color: rgba(139, 0, 0, 0.4) !important;
        color: #CFB53B !important;
    }

    .theme-episcopal .nav-dropdown-item:hover,
    .theme-episcopal .nav-dropdown-item:active {
        background: rgba(139, 0, 0, 0.2) !important;
        border-color: rgba(139, 0, 0, 0.4) !important;
        color: #CFB53B !important;
    }

    .theme-episcopal .lang-btn.active {
        background: rgba(139, 0, 0, 0.3) !important;
        border-color: rgba(139, 0, 0, 0.5) !important;
        color: #CFB53B !important;
    }
}
