/**
 * Western Wall Theme - תמת הכותל המערבי
 * 
 * Design inspired by the Western Wall with stone textures,
 * traditional Jewish decorative elements, and warm Jerusalem tones.
 *
 * @package    Synagogue_Display
 * @subpackage Synagogue_Display/public/css
 * @since      1.0.0
 */

/* ========================================
   Theme: Western Wall - Variables
   ======================================== */

.synagogue-display.theme-western-wall {
    /* Color Palette - Jerusalem Stone Colors */
    --primary-color: #8B7355;           /* Jerusalem stone brown */
    --secondary-color: #D4AF37;         /* Gold accents */
    --accent-color: #CD853F;            /* Terracotta */
    --background-color: #E8DCC8;        /* Light stone */
    --text-color: #2C1810;              /* Dark brown */
    --text-light: #5D4037;              /* Medium brown */
    --border-color: #A0826D;            /* Stone border */
    --stone-texture: rgba(139, 115, 85, 0.08);
    
    /* Shadows */
    --shadow-light: 0 4px 15px rgba(44, 24, 16, 0.15);
    --shadow-medium: 0 6px 25px rgba(44, 24, 16, 0.25);
    --shadow-heavy: 0 10px 40px rgba(44, 24, 16, 0.35);
    
    /* Typography */
    font-family: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;
}

/* ========================================
   Background & Stone Texture
   ======================================== */

.synagogue-display.theme-western-wall {
    background: linear-gradient(
        180deg,
        #E8DCC8 0%,
        #D4C4A8 50%,
        #E8DCC8 100%
    );
    position: relative;
}

/* Stone texture overlay - mimics Western Wall stones */
.synagogue-display.theme-western-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Horizontal stone lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(139, 115, 85, 0.15) 80px,
            rgba(139, 115, 85, 0.15) 83px
        ),
        /* Vertical stone lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 150px,
            rgba(139, 115, 85, 0.1) 150px,
            rgba(139, 115, 85, 0.1) 152px
        ),
        /* Subtle noise texture */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.synagogue-display.theme-western-wall > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   Header Styling - Decorative Top
   ======================================== */

.theme-western-wall .display-header {
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.3),
        rgba(212, 175, 55, 0.1)
    );
    border-bottom: 5px solid var(--secondary-color);
    border-top: 3px solid var(--accent-color);
    box-shadow: var(--shadow-medium);
    padding: 2.5rem 3rem;
    position: relative;
}

/* Decorative border pattern on top */
.theme-western-wall .display-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary-color) 0px,
        var(--secondary-color) 15px,
        var(--accent-color) 15px,
        var(--accent-color) 30px
    );
}

/* Star of David corners */
.theme-western-wall .display-header::after {
    content: '✡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.theme-western-wall .synagogue-name {
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(212, 175, 55, 0.4);
    font-weight: 900;
    letter-spacing: 0.05em;
    position: relative;
}

/* Decorative underline for synagogue name */
.theme-western-wall .synagogue-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        var(--secondary-color) 20%,
        var(--secondary-color) 80%,
        transparent
    );
}

.theme-western-wall .synagogue-logo {
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
}

/* ========================================
   Clock Styling - Large Digital Display
   ======================================== */

.theme-western-wall .current-time {
    color: var(--primary-color);
    text-shadow: 3px 3px 10px rgba(139, 115, 85, 0.5);
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 5rem !important;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(232, 220, 200, 0.9)
    );
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.theme-western-wall .current-date {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========================================
   Hebrew Section - Parchment Style
   ======================================== */

.theme-western-wall .hebrew-section {
    background: linear-gradient(
        to right,
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0.25),
        rgba(212, 175, 55, 0.15)
    );
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding: 1.5rem 3rem;
    margin: 1rem -3rem 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-western-wall .hebrew-date {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.2rem;
}

.theme-western-wall .torah-portion {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.theme-western-wall .torah-name {
    color: var(--secondary-color);
    font-weight: 900;
}

/* ========================================
   Section Cards - Stone Tablets Style
   ======================================== */

.theme-western-wall section {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(232, 220, 200, 0.95)
    );
    border: 4px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: visible;
}

/* Decorative corners - Star of David */
.theme-western-wall section::before {
    content: '✡';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: rgba(232, 220, 200, 0.95);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary-color);
}

/* Open book decoration on bottom left */
.theme-western-wall section::after {
    content: '📖';
    position: absolute;
    bottom: -15px;
    left: -15px;
    font-size: 2rem;
    background: rgba(232, 220, 200, 0.95);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-light);
}

.theme-western-wall .section-title {
    color: var(--primary-color);
    border-bottom: 4px solid var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    font-weight: 900;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    padding: 1rem;
    margin: -1.5rem -1.5rem 1.5rem;
    border-radius: 20px 20px 0 0;
}

.theme-western-wall .title-icon {
    filter: sepia(0.6) hue-rotate(15deg);
    font-size: 2.8rem;
}

/* ========================================
   Prayer Times - Parchment Scrolls
   ======================================== */

.theme-western-wall .prayer-item {
    background: linear-gradient(
        to left,
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0.08),
        rgba(255, 255, 255, 0.5)
    );
    border: 2px solid var(--border-color);
    border-right: 6px solid var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.theme-western-wall .prayer-item::before {
    content: '🕎';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    font-size: 3rem;
}

.theme-western-wall .prayer-item:hover {
    background: linear-gradient(
        to left,
        rgba(212, 175, 55, 0.25),
        rgba(212, 175, 55, 0.15),
        rgba(255, 255, 255, 0.7)
    );
    border-right-width: 8px;
    box-shadow: var(--shadow-medium);
    transform: translateX(-5px);
}

.theme-western-wall .prayer-name {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.8rem;
}

.theme-western-wall .prayer-time {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
}

/* Shabbat Times - Special Golden Box */
.theme-western-wall .shabbat-times {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.1)
    );
    padding: 1.5rem;
    border-radius: 15px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
    margin-top: 2rem;
}

.theme-western-wall .shabbat-times h3 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
}

.theme-western-wall .shabbat-times h3::before {
    content: '🕯️';
    margin-left: 0.5rem;
}

.theme-western-wall .shabbat-times h3::after {
    content: '🕯️';
    margin-right: 0.5rem;
}

.theme-western-wall .shabbat-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    border-right: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.theme-western-wall .shabbat-label {
    color: var(--text-color);
    font-weight: 700;
}

.theme-western-wall .shabbat-time {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.5rem;
}

/* ========================================
   Lessons - Torah Scroll Style
   ======================================== */

.theme-western-wall .lesson-item {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9),
        rgba(232, 220, 200, 0.8)
    );
    border: 2px solid var(--accent-color);
    border-right: 5px solid var(--secondary-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.theme-western-wall .lesson-title {
    color: var(--primary-color);
    font-weight: 800;
}

.theme-western-wall .lesson-details {
    color: var(--text-light);
}

/* ========================================
   Events - Calendar Style
   ======================================== */

.theme-western-wall .event-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    border-right: 5px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.theme-western-wall .event-date {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    color: #FFF;
    box-shadow: var(--shadow-medium);
    border: 3px solid var(--secondary-color);
}

.theme-western-wall .event-title {
    color: var(--primary-color);
    font-weight: 800;
}

/* ========================================
   Memorials - Candle & Parchment
   ======================================== */

.theme-western-wall .memorial-item {
    background: linear-gradient(
        to bottom,
        rgba(232, 220, 200, 0.5),
        rgba(255, 255, 255, 0.5)
    );
    border: 2px solid var(--border-color);
    border-right: 4px solid var(--primary-color);
    box-shadow: var(--shadow-light);
    position: relative;
    padding-right: 3rem;
}

.theme-western-wall .memorial-item::before {
    content: '🕯️';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.6;
}

.theme-western-wall .memorial-name {
    color: var(--primary-color);
    font-weight: 800;
}

/* ========================================
   Footer - Decorative Border
   ======================================== */

.theme-western-wall .display-footer {
    background: linear-gradient(
        to top,
        rgba(212, 175, 55, 0.25),
        rgba(212, 175, 55, 0.1)
    );
    border-top: 5px solid var(--secondary-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: var(--shadow-medium);
    position: relative;
}

/* Decorative border pattern on bottom */
.theme-western-wall .display-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary-color) 0px,
        var(--secondary-color) 15px,
        var(--accent-color) 15px,
        var(--accent-color) 30px
    );
}

.theme-western-wall .footer-message {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
}

.theme-western-wall .emergency-contact {
    color: var(--secondary-color);
    font-weight: 900;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-light);
}

/* ========================================
   Announcements - Scroll Effect
   ======================================== */

.theme-western-wall .announcement-item {
    background: linear-gradient(
        to right,
        rgba(212, 175, 55, 0.15),
        rgba(255, 255, 255, 0.9),
        rgba(212, 175, 55, 0.15)
    );
    border: 2px solid var(--accent-color);
    border-right: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-light);
}

.theme-western-wall .announcement-title {
    color: var(--primary-color);
    font-weight: 800;
}

/* ========================================
   Special Effects
   ======================================== */

/* Glowing effect for prayer items */
@keyframes westernWallGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    }
}

.theme-western-wall .prayer-item:first-child {
    animation: westernWallGlow 3s ease-in-out infinite;
}

/* Stone shimmer effect */
@keyframes stoneShimmer {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.08; }
}

.theme-western-wall::before {
    animation: stoneShimmer 10s ease-in-out infinite;
}
