/* ============================================================
   🌳 בית הכנסת היכל עמי - עיצוב עץ עתיק ועיטורי כסף
   גרסה מקצועית משופרת
   ============================================================ */

/* גופנים */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');

/* משתני צבעים - עץ וכסף */
:root {
    /* פלטת עץ עתיק */
    --wood-dark: #3d2817;
    --wood-medium: #5d4037;
    --wood-light: #8d6e63;
    
    /* פלטת כסף וזהב */
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --silver-dark: #a8a8a8;
    --gold: #d4af37;
    --gold-dark: #b8960f;
    --gold-light: #f4d03f;
    
    /* צבעים נוספים */
    --cream: #f5f5dc;
    --white: #ffffff;
    --text-dark: #2c2416;
    
    /* צללים */
    --shadow-soft: 0 4px 15px rgba(61, 40, 23, 0.15);
    --shadow-medium: 0 8px 25px rgba(61, 40, 23, 0.25);
    --shadow-strong: 0 12px 35px rgba(61, 40, 23, 0.35);
    --glow-silver: 0 0 20px rgba(192, 192, 192, 0.5);
    --glow-gold: 0 0 25px rgba(212, 175, 55, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, #1a1410 0%, #2d1f16 50%, #1a1410 100%);
    min-height: 100vh;
    color: var(--cream);
    position: relative;
    overflow-x: hidden;
}

/* טקסטורת עץ ברקע */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(93, 64, 55, 0.03) 2px, rgba(93, 64, 55, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(93, 64, 55, 0.03) 2px, rgba(93, 64, 55, 0.03) 4px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ============ כותרת ראשית מעוצבת ============ */
.header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(61, 40, 23, 0.9) 0%, rgba(93, 64, 55, 0.7) 50%, transparent 100%);
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver) 20%, var(--gold) 50%, var(--silver) 80%, transparent);
    box-shadow: var(--glow-gold);
}

.header::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold-dark), 2px 2px 4px rgba(0,0,0,0.5);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.header h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--gold) 25%, var(--silver) 50%, var(--gold-dark) 75%, var(--silver-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ============ טאבים ראשיים מעוצבים ============ */
.main-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(93, 64, 55, 0.3) 0%, transparent 100%);
    border-radius: 15px;
}

.main-tab {
    background: linear-gradient(145deg, var(--wood-medium), var(--wood-dark));
    color: var(--silver-light);
    border: 2px solid rgba(192, 192, 192, 0.3);
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.main-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.main-tab:hover {
    background: linear-gradient(145deg, var(--wood-light), var(--wood-medium));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), var(--glow-gold);
    color: var(--gold);
}

.main-tab:hover::before {
    left: 100%;
}

.main-tab.active {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--wood-dark);
    border-color: var(--silver);
    box-shadow: var(--shadow-strong), var(--glow-gold);
    font-weight: 700;
}

.main-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--silver);
    box-shadow: var(--glow-silver);
}

/* ============ באנר עליון מעוצב ============ */
.top-banner {
    width: 100%;
    min-height: 80px;
    background: transparent;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: none;
    box-shadow: none;
}

.banner-content {
    text-align: center;
    z-index: 2;
    position: relative;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.moving-text {
    animation: moveRight 25s linear infinite;
    white-space: nowrap;
}

@keyframes moveRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============ תוכן ראשי מעוצב ============ */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.side-banner {
    width: 200px;
    min-height: 300px;
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.7), rgba(61, 40, 23, 0.9));
    border: 3px solid rgba(192, 192, 192, 0.3);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.side-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.side-banner h3 {
    color: var(--gold);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 1.2rem;
}

.center-content {
    flex: 1;
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.7), rgba(61, 40, 23, 0.9));
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    min-height: 400px;
    border: 3px solid rgba(192, 192, 192, 0.3);
    position: relative;
}

.center-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--silver) 30%, var(--gold) 50%, var(--silver) 70%, transparent);
}

/* ============ שעון דיגיטלי מעוצב ============ */
.times-header {
    margin-bottom: 20px;
}

.digital-clock {
    font-size: 2.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-clock 2s infinite;
    text-shadow: 2px 2px 8px rgba(212, 175, 55, 0.5);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

@keyframes pulse-clock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ============ תאריכים מעוצבים ============ */
.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.date-row h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    color: var(--gold);
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hebrew-date, .gregorian-date {
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.95), rgba(232, 232, 232, 0.95));
    border: 2px solid var(--silver);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wood-dark);
    box-shadow: var(--shadow-soft), inset 0 1px 3px rgba(255,255,255,0.5);
    min-width: 140px;
    text-align: center;
}

.hebrew-date {
    border-right: 4px solid var(--gold);
    background: linear-gradient(145deg, #fffaf0, #fff8dc);
}

.gregorian-date {
    border-left: 4px solid var(--silver);
    background: linear-gradient(145deg, #f0f8ff, #e6f3ff);
}

/* ============ זמני תפילה מעוצבים ============ */
.prayer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.prayer-time-card {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--wood-dark);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--silver);
    transition: all 0.3s ease;
}

.prayer-time-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium), var(--glow-gold);
    border-color: var(--silver-light);
}

.times-notice {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--silver);
    background: rgba(93, 64, 55, 0.4);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

/* ============ באנר תחתון מעוצב ============ */
.bottom-banner {
    width: 100%;
    min-height: 60px;
    background: linear-gradient(145deg, rgba(61, 40, 23, 0.9), rgba(93, 64, 55, 0.8));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-medium);
    font-weight: 600;
}

.bottom-banner > div {
    margin: 5px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.bottom-banner span {
    color: var(--silver-light);
    font-weight: 700;
}

/* ============ רקע עמוד הבית ============ */
body.home-mode {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    background-attachment: fixed;
}

#home-bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(192, 192, 192, 0.05) 0%, transparent 50%);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

.header, .container, .main-content, .top-banner, .bottom-banner {
    position: relative;
    z-index: 10;
}

/* ============ אדמין מעוצב ============ */
.admin-section, .contact-section {
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.85), rgba(61, 40, 23, 0.9));
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 3px solid rgba(192, 192, 192, 0.3);
    box-shadow: var(--shadow-strong);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-tab {
    background: linear-gradient(145deg, #27ae60, #219a52);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.admin-tab:hover {
    background: linear-gradient(145deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.admin-tab.active {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--wood-dark);
    border-color: var(--silver);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ טפסים מעוצבים ============ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid rgba(192, 192, 192, 0.4);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(245, 245, 220, 0.95);
    color: var(--wood-dark);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Heebo', Arial, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 0 15px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--silver-light);
}

/* ============ כפתורים מעוצבים ============ */
.btn {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--wood-dark);
    border: 2px solid var(--silver);
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    font-family: 'Heebo', Arial, sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover {
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium), var(--glow-gold);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-danger {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(145deg, #c0392b, #a93226);
}

.btn-success {
    background: linear-gradient(145deg, #27ae60, #219a52);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(145deg, #219a52, #1e8449);
}

/* ============ טבלאות מעוצבות ============ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: rgba(93, 64, 55, 0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

th {
    background: linear-gradient(145deg, var(--wood-medium), var(--wood-dark));
    font-weight: 600;
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

td {
    color: var(--silver-light);
}

tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

tr:last-child td {
    border-bottom: none;
}

/* ============ קלפים מעוצבים ============ */
.card {
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.6), rgba(61, 40, 23, 0.8));
    border: 2px solid rgba(192, 192, 192, 0.25);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong), var(--glow-silver);
    border-color: var(--gold);
}

.card:hover::before {
    opacity: 1;
}

.list-item {
    background: rgba(93, 64, 55, 0.5);
    border: 1px solid rgba(192, 192, 192, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--silver-light);
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

/* ============ התראות מעוצבות ============ */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 600;
    border-right: 4px solid;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    color: #a5d6a7;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
    color: #ef9a9a;
}

.alert-info {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #90caf9;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: #FFC107;
    color: #ffe082;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.95), rgba(61, 40, 23, 0.95));
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    border: 2px solid var(--gold);
    color: var(--silver-light);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.alert-success {
    border-right: 4px solid #4CAF50;
}

.notification.alert-error {
    border-right: 4px solid #f44336;
}

/* ============ לוגין מעוצב ============ */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.95), rgba(61, 40, 23, 0.95));
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--gold);
}

.login-form h2 {
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
}

/* ============ בחירת צבעים ============ */
.color-picker-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* ============ Modal לגלריה מעוצב ============ */
#galleryPickerModal {
    position: fixed;
    inset: 0;
    background: rgba(29, 20, 16, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

#galleryPickerModal.open {
    display: flex;
}

#galleryPickerModal .gp-content,
.gp-content {
    background: linear-gradient(145deg, rgba(93, 64, 55, 0.95), rgba(61, 40, 23, 0.95));
    width: min(1000px, 92vw);
    max-height: 86vh;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), var(--glow-gold);
}

#galleryPickerModal .gp-header,
.gp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid var(--gold);
    background: linear-gradient(180deg, rgba(93, 64, 55, 0.5), transparent);
}

#galleryPickerModal .gp-header h3,
.gp-header h3 {
    color: var(--gold);
    margin: 0;
}

#galleryPickerModal .gp-grid,
.gp-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    overflow: auto;
}

#galleryPickerModal .gp-item,
.gp-item {
    border: 3px solid rgba(192, 192, 192, 0.3);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: rgba(93, 64, 55, 0.3);
    transition: all 0.3s ease;
}

#galleryPickerModal .gp-item:hover,
.gp-item:hover {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: var(--glow-gold);
}

#galleryPickerModal .gp-item img,
.gp-item img {
    max-width: 100%;
    max-height: 160px;
    display: block;
    border-radius: 5px;
}

#galleryPickerModal .gp-footer,
.gp-footer {
    padding: 15px 25px;
    border-top: 2px solid var(--gold);
    text-align: center;
    background: linear-gradient(0deg, rgba(93, 64, 55, 0.5), transparent);
}

/* ============ עיצוב נוסף ============ */
.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: var(--silver);
    position: relative;
}

.loading::after {
    content: '✦';
    position: absolute;
    right: 50%;
    margin-right: -15px;
    animation: spin 2s linear infinite;
    font-size: 30px;
    color: var(--gold);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 40px;
    color: #ef9a9a;
    font-size: 1.2rem;
}

/* ============ סרגל גלילה מעוצב ============ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--wood-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    border: 2px solid var(--wood-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold));
}

/* ============ אלמנטים כלליים ============ */
h1, h2, h3, h4, h5, h6 {
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--silver-light);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .side-banner {
        width: 100%;
        min-height: 150px;
    }

    .main-tabs {
        flex-direction: column;
        padding: 20px 10px;
    }

    .main-tab {
        width: 100%;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .admin-tab {
        width: 100%;
    }

    .header {
        padding: 40px 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .prayer-times {
        grid-template-columns: 1fr;
    }

    .digital-clock {
        font-size: 2rem;
    }

    .date-row {
        flex-direction: column;
        gap: 15px;
    }

    .date-row h2 {
        order: 2;
    }

    .bottom-banner {
        flex-direction: column;
        gap: 10px;
    }

    .color-picker-group {
        grid-template-columns: 1fr;
    }

    #galleryPickerModal .gp-grid,
    .gp-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .admin-content {
        padding: 20px;
    }
}

/* ============ אנימציות נוספות ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .list-item {
    animation: fadeInUp 0.5s ease-out;
}

/* גלילה חלקה */
html {
    scroll-behavior: smooth;
}

/* ============ סגנונות עזר ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }