/**
 * Ancient Theme - תמת העתיק
 *
 * A warm, traditional theme inspired by ancient synagogues
 * with golden tones, parchment colors, and classic Hebrew typography
 *
 * @package    Synagogue_Display
 * @subpackage Synagogue_Display/public/css
 * @since      1.0.0
 */

/* ========================================
   Theme: Ancient - Variables
   ======================================== */

.synagogue-display.theme-ancient {
    /* Color Palette */
    --primary-color: #8B7355;           /* Warm brown */
    --secondary-color: #D4AF37;         /* Gold */
    --accent-color: #CD853F;            /* Peru */
    --background-color: #F5F5DC;        /* Beige/Parchment */
    --text-color: #3E2723;              /* Dark brown */
    --text-light: #5D4037;              /* Medium brown */
    --border-color: #8B7355;
    
    /* Shadows */
    --shadow-light: 0 4px 15px rgba(139, 115, 85, 0.15);
    --shadow-medium: 0 6px 25px rgba(139, 115, 85, 0.25);
    --shadow-heavy: 0 10px 40px rgba(139, 115, 85, 0.35);
    
    /* Typography */
    font-family: 'David Libre', 'Times New Roman', serif;
}

/* ========================================
   Background & General Layout
   ======================================== */

.synagogue-display.theme-ancient {
    background: linear-gradient(
        135deg,
        #F5F5DC 0%,
        #F0E68C 50%,
        #F5F5DC 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 30s ease infinite;
    color: var(--text-color);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Parchment texture overlay */
.synagogue-display.theme-ancient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(139, 115, 85, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 3px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(139, 115, 85, 0.02) 0px,
            transparent 1px,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 3px
        );
    pointer-events: none;
    z-index: 0;
}

.synagogue-display.theme-ancient > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   Header Styling
   ======================================== */

.theme-ancient .display-header {
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.05)
    );
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.theme-ancient .synagogue-name {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.theme-ancient .synagogue-logo {
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Clock Styling
   ======================================== */

.theme-ancient .current-time {
    color: var(--secondary-color);
    text-shadow: 2px 2px 6px rgba(139, 115, 85, 0.4);
    font-family: 'Georgia', serif;
}

.theme-ancient .current-date {
    color: var(--text-light);
}

/* ========================================
   Hebrew Section
   ======================================== */

.theme-ancient .hebrew-section {
    background: rgba(212, 175, 55, 0.1);
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 0 -3rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

.theme-ancient .hebrew-date {
    color: var(--primary-color);
    font-weight: 700;
}

.theme-ancient .torah-portion {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
}

.theme-ancient .torah-name {
    color: var(--secondary-color);
}

/* ========================================
   Section Cards
   ======================================== */

.theme-ancient section {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

/* Decorative corner ornaments */
.theme-ancient section::before,
.theme-ancient section::after {
    content: '✡';
    position: absolute;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.15;
}

.theme-ancient section::before {
    top: 10px;
    right: 10px;
}

.theme-ancient section::after {
    bottom: 10px;
    left: 10px;
}

.theme-ancient .section-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
}

.theme-ancient .title-icon {
    filter: sepia(0.8) hue-rotate(10deg);
}

/* ========================================
   Prayer Times
   ======================================== */

.theme-ancient .prayer-item {
    background: linear-gradient(
        to left,
        rgba(212, 175, 55, 0.1),
        rgba(212, 175, 55, 0.05)
    );
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-right: 4px solid var(--secondary-color);
}

.theme-ancient .prayer-item:hover {
    background: linear-gradient(
        to left,
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.1)
    );
    border-right-width: 6px;
    box-shadow: var(--shadow-light);
}

.theme-ancient .prayer-name {
    color: var(--primary-color);
    font-weight: 700;
}

.theme-ancient .prayer-time {
    color: var(--secondary-color);
    font-weight: 900;
}

/* Shabbat Times */
.theme-ancient .shabbat-times {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 2px dashed var(--secondary-color);
}

.theme-ancient .shabbat-times h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.theme-ancient .shabbat-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1rem;
    border-right: 3px solid var(--secondary-color);
}

.theme-ancient .shabbat-label {
    color: var(--text-light);
}

.theme-ancient .shabbat-time {
    color: var(--secondary-color);
}

/* ========================================
   Lessons (Shiurim)
   ======================================== */

.theme-ancient .lesson-item {
    background: linear-gradient(
        135deg,
        rgba(205, 133, 63, 0.1),
        rgba(205, 133, 63, 0.05)
    );
    border-right: 4px solid var(--accent-color);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-right: 4px solid var(--accent-color);
}

.theme-ancient .lesson-title {
    color: var(--primary-color);
}

.theme-ancient .lesson-details {
    color: var(--text-light);
}

.theme-ancient .icon {
    color: var(--accent-color);
}

/* ========================================
   Zmanim
   ======================================== */

.theme-ancient .zman-item {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 10px;
}

.theme-ancient .zman-item:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-light);
}

.theme-ancient .zman-name {
    color: var(--primary-color);
}

.theme-ancient .zman-time {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ========================================
   Events
   ======================================== */

.theme-ancient .event-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-right: 4px solid var(--primary-color);
}

.theme-ancient .event-date {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    color: #F5F5DC;
    box-shadow: var(--shadow-light);
}

.theme-ancient .event-title {
    color: var(--primary-color);
}

.theme-ancient .event-time,
.theme-ancient .event-location {
    color: var(--text-light);
}

/* ========================================
   Announcements
   ======================================== */

.theme-ancient .announcement-item {
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0.08)
    );
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-right: 4px solid var(--secondary-color);
}

.theme-ancient .announcement-title {
    color: var(--primary-color);
}

.theme-ancient .announcement-content {
    color: var(--text-color);
}

/* ========================================
   Memorials
   ======================================== */

.theme-ancient .memorial-item {
    background: rgba(139, 115, 85, 0.08);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-right: 4px solid var(--primary-color);
    position: relative;
}

/* Candle icon decoration */
.theme-ancient .memorial-item::before {
    content: '🕯️';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.3;
}

.theme-ancient .memorial-name {
    color: var(--primary-color);
}

.theme-ancient .memorial-date {
    color: var(--text-light);
}

/* ========================================
   Image Slideshow
   ======================================== */

.theme-ancient .image-slideshow {
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
    border-radius: 15px;
    overflow: hidden;
}

.theme-ancient .slide-caption {
    background: linear-gradient(
        to top,
        rgba(139, 115, 85, 0.95),
        rgba(139, 115, 85, 0.7)
    );
    color: #F5F5DC;
    font-weight: 600;
}

.theme-ancient .prev-slide,
.theme-ancient .next-slide {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.theme-ancient .prev-slide:hover,
.theme-ancient .next-slide:hover {
    background: var(--primary-color);
    color: #F5F5DC;
    box-shadow: var(--shadow-light);
}

.theme-ancient .indicator {
    background: rgba(139, 115, 85, 0.3);
    border: 2px solid var(--border-color);
}

.theme-ancient .indicator.active {
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ========================================
   Footer
   ======================================== */

.theme-ancient .display-footer {
    background: linear-gradient(
        to top,
        rgba(212, 175, 55, 0.2),
        rgba(212, 175, 55, 0.05)
    );
    border-top: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-medium);
}

.theme-ancient .footer-message {
    color: var(--primary-color);
    font-style: italic;
    font-size: 1.4rem;
}

.theme-ancient .emergency-contact {
    color: var(--secondary-color);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
}

/* ========================================
   Loading & Notifications
   ======================================== */

.theme-ancient .loading-overlay {
    background: rgba(139, 115, 85, 0.85);
}

.theme-ancient .loading-spinner {
    border-color: rgba(212, 175, 55, 0.3);
    border-top-color: var(--secondary-color);
}

.theme-ancient .loading-text {
    color: #F5F5DC;
}

.theme-ancient .synagogue-notification {
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: var(--shadow-heavy);
}

/* ========================================
   Scrollbar Styling
   ======================================== */

.theme-ancient .announcements-scroll::-webkit-scrollbar-thumb,
.theme-ancient .memorials-scroll::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
}

.theme-ancient .announcements-scroll::-webkit-scrollbar-track,
.theme-ancient .memorials-scroll::-webkit-scrollbar-track {
    background: rgba(139, 115, 85, 0.1);
}

/* ========================================
   Special Effects
   ======================================== */

/* Subtle glow on hover for interactive elements */
.theme-ancient .prayer-item:hover,
.theme-ancient .lesson-item:hover,
.theme-ancient .event-item:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Pulsing effect for important times */
@keyframes ancientPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

.theme-ancient .prayer-item:first-child {
    animation: ancientPulse 3s ease infinite;
}
