/* ============================================================
   סגנונות לבאנר משולש - הודעות, מרכז, אזכרות
   ============================================================ */

/* באנר עליון מחולק לשלושה */
.triple-banner-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0;
}

/* באנר הודעות לציבור - צד ימין */
.announcements-banner {
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.9), rgba(61, 40, 23, 0.95));
    border: none;
    border-radius: 15px;
    padding: 0;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(212, 175, 55, 0.3);
}

.announcements-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
}

.announcements-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.announcements-header .icon {
    font-size: 28px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.announcements-header h3 {
    font-size: 20px;
    color: var(--gold);
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


.announcement-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0;
}

.announcement-item {
    background: rgba(61, 40, 23, 0.6);
    border-right: 3px solid var(--gold);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.announcement-item:hover {
    background: rgba(93, 64, 55, 0.8);
    transform: translateX(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.announcement-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.announcement-text {
    font-size: 14px;
    color: var(--cream);
    line-height: 1.4;
}

.announcement-dates {
    font-size: 11px;
    color: var(--silver-dark);
    margin-top: 5px;
    font-style: italic;
}

/* באנר מרכזי - שקוף לחלוטין כדי שתמונת הרקע תראה */
.center-banner {
    background: transparent;
    border: none;
    border-radius: 15px;
    padding: 30px 20px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.center-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    pointer-events: none;
}

.center-banner-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.center-banner-text {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    line-height: 1.4;
}
/* מצב שבו לבאנר האמצעי יש תמונת רקע – מבטלים צבע רקע כדי שהתמונה תיראה */
.center-banner.has-bg-image,
#topBanner.center-banner {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.center-banner.has-bg-image::before,
#topBanner.center-banner::before {
    background: none !important;
}


/* באנר אזכרות - צד אמצע */
.memorial-banner {
    background: linear-gradient(145deg, rgba(61, 40, 23, 0.95), rgba(45, 31, 22, 0.98));
    border: 2px solid var(--silver);
    border-radius: 15px;
    padding: 0;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(192, 192, 192, 0.2);
}

.memorial-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(192, 192, 192, 0.08), transparent 70%);
    pointer-events: none;
}

.memorial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(192, 192, 192, 0.3);
}

.memorial-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.memorial-header-left {
    display: flex;
    align-items: center;
}

.memorial-header .candle-icon {
    font-size: 28px;
    animation: flicker 1.5s ease-in-out infinite;
}

.memorial-header .candle-icon-left {
    font-size: 28px;
    animation: flicker 1.5s ease-in-out infinite 0.75s;
}

@keyframes flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff9900; }
    50% { opacity: 0.85; text-shadow: 0 0 15px #ffcc00, 0 0 25px #ff9900; }
}

.memorial-header h3 {
    font-size: 20px;
    color: var(--silver-light);
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.memorial-content {
    position: relative;
    z-index: 2;
}

.memorial-item {
    background: rgba(45, 31, 22, 0.7);
    border-left: 3px solid var(--silver);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.memorial-item:hover {
    background: rgba(61, 40, 23, 0.85);
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
}

.memorial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--silver-light);
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.memorial-relation {
    font-size: 13px;
    color: var(--silver-dark);
    margin-bottom: 5px;
}

.memorial-date {
    font-size: 14px;
    color: var(--cream);
    font-weight: 600;
}

/* 🔥 באנר הודעות - צד שמאל - זהה לבאנר הודעות לציבור */
.messages-banner {
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.9), rgba(61, 40, 23, 0.95));
    border: none;
    border-radius: 15px;
    padding: 0;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium), 0 0 20px rgba(212, 175, 55, 0.3);
}

.messages-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
}

.messages-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0;
}

.message-item {
    background: rgba(61, 40, 23, 0.6);
    border-left: 3px solid var(--gold);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.message-item:hover {
    background: rgba(93, 64, 55, 0.8);
    transform: translateX(5px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
}

.message-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.message-text {
    font-size: 14px;
    color: var(--cream);
    line-height: 1.4;
}

/* אנימציות */
.announcement-item.slide-animation {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.memorial-item.fade-animation {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .triple-banner-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .announcements-banner,
    .center-banner,
    .memorial-banner,
    .messages-banner {
        min-height: 120px;
    }
}

/* כפתור ניהול בעריכת אדמין */
.banner-edit-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(212, 175, 55, 0.9);
    color: var(--wood-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 10;
}

.banner-edit-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* מצב ריק */
.banner-empty {
    text-align: center;
    padding: 30px;
    color: var(--silver-dark);
    font-style: italic;
}

.banner-empty .icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}