/* ===== כללי ===== */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Assistant', Arial, sans-serif;
  direction: rtl;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  background-size: cover;
  color: black;
  text-align: center;
  padding: 50px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: background-color 0.7s ease-in-out, color 0.7s ease-in-out;
  position: relative;
}

/* ===== כיסוי מצב לילה ===== */
#night-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.6s ease;
}

body.night-mode #night-overlay {
  background-color: rgba(0, 0, 0, 0.80);
}

/* ===== צבעי טקסט רגילים ===== */
#clock,
#date-hebrew,
#date-gregorian,
#parsha,
#shabbat-times,
#holiday-times,
#special-day-text {
  color: #eeeeee;
  transition: color 0.6s ease;
}

/* ===== צבעי טקסט במצב לילה ===== */
body.night-mode #clock,
body.night-mode #date-hebrew,
body.night-mode #date-gregorian,
body.night-mode #parsha,
body.night-mode #shabbat-times,
body.night-mode #holiday-times,
body.night-mode #special-day-text,
body.night-mode #day-or-holiday,
body.night-mode .audio-label,
body.night-mode button,
body.night-mode #now-playing,
body.night-mode #broadcast-header {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ===== כפתור מצב לילה ===== */
#toggle-night {
  position: fixed;
  top: 1px;
  left: 1px;
  z-index: 400;
  padding: 6px 10px;
  background-color: #3333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

#toggle-night:hover {
  background-color: #555;
}

/* ===== שעון ===== */
#clock {
  font-size: 5.5em;
  font-family: Arial, sans-serif;
  direction: ltr;
  color: #eeeeee;
}

#seconds {
  font-size: 0.5em;
  position: relative;
  top: 1px;
  margin-left: 2px;
  color: #eeeeee;
}

/* ===== תאריכים ===== */
#date-hebrew {
  font-family: 'David Libre', serif;
  font-size: 5.0em;
  color: #eeeeee;
  font-weight: bold;
  margin-bottom: 0;
}

#date-gregorian {
  font-size: 5em;
  font-weight: bold;
  color: #eeeeee;
}

#day-or-holiday {
  color: #eeeeee;
}

body.night-mode #day-or-holiday {
  color: #eeeeee;
}

/* ===== פרשת השבוע ===== */
#parsha {
  background: none;
  color: #cce7ff;
  font-size: 5.5em;
  font-weight: bold;
  margin-bottom: 2px;
  text-align: center;
}

/* ===== זמני שמש ===== */
#sun-times {
  font-size: 1.1em;
  padding: 8px 16px;
  border-radius: 10px;
  color: #ffd966;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 320px;
  margin: 10px auto;
}

#sun-times span {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 1em;
}

/* ===== זמני שבת ===== */
#shabbat-times .time {
  font-size: 5.0em;
  color: #ffd966;
  font-weight: 700;
  text-shadow: 0 0 6px #ffd966;
  margin-top: 10px;
}

.candle {
  font-size: 8.5em;
}

.shabbat-text .time {
  line-height: 1.1;
  font-size: 1em;
}

.shabbat-text > div:not(.time) {
  font-size: 2.2em;
  font-weight: 600;
  color: #ffd966;
  margin: 0;
  padding: 0;
}

#holiday-times .shabbat-text .time {
  font-size: 6.0em;
  color: #ffd966;
  font-weight: bold;
}

.shabbat-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* ===== נרות עם להבה ===== */
.candle-container {
  position: relative;
  display: inline-block;
}

.flame {
  position: absolute;
  top: 2%;
  left: 48%;
  width: 80px;
  height: 120px;
  background: radial-gradient(circle at 50% 75%, #fffacd 45%, transparent 85%),
    radial-gradient(circle at 50% 45%, #ff4500 65%, transparent 90%),
    radial-gradient(ellipse 45% 90% at 50% 35%, #ffd700 80%, transparent 98%);
  clip-path: path('M34 0 C50 20, 60 60, 34 80 C-5 60, 75 20, 34 0 Z');
  opacity: 0.95;
  filter: drop-shadow(0 0 6px #ffa500);
  animation: flicker 1.2s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -5%) skewX(-5deg) scaleX(-1) scale(0.6);
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -5%) scale(1);
    filter: drop-shadow(0 0 6px #ffb347);
  }
  20% {
    opacity: 0.85;
    transform: translate(-49%, -4.5%) scale(1.05);
    filter: drop-shadow(0 0 8px #ff8c00);
  }
  50% {
    opacity: 0.75;
    transform: translate(-51%, -5.5%) scale(0.95);
    filter: drop-shadow(0 0 4px #ffa500);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -5%) scale(1);
    filter: drop-shadow(0 0 6px #ffb347);
  }
}

.shabbat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  font-size: 1em;
}

/* ===== אפקטים מיוחדים ===== */
#special-day-text.flicker {
  animation: flicker-special 1.5s infinite;
}

@keyframes flicker-special {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  10% {
    opacity: 0.95;
    filter: brightness(1.2);
  }
  20% {
    opacity: 0.9;
    filter: brightness(0.9);
  }
  30% {
    opacity: 1;
    filter: brightness(1.1);
  }
  40% {
    opacity: 0.92;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
  60% {
    opacity: 0.95;
    filter: brightness(0.95);
  }
  70% {
    opacity: 1;
    filter: brightness(1);
  }
  80% {
    opacity: 0.97;
    filter: brightness(1.05);
  }
  90% {
    opacity: 1;
    filter: brightness(1);
  }
}

#special-day-text.gradient-text {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* ===== כפתורים ===== */
button {
  font-size: 1em;
  padding: 8px 16px;
  border: 2px solid #ccc;
  background-color: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

button:hover {
  transform: scale(1.12);
  background-color: #a5d8ff;
  border-color: #1e40af;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.45);
  color: #000;
}

/* ===== אודיו ===== */
#now-playing-status {
  color: yellow;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

#broadcast-header {
  background-color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  font-size: 2em;
  color: black;
  font-weight: 700;
  padding: 0;
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

#broadcast-header:hover {
  opacity: 1;
}

.buttons-container {
  margin: 8px 0;
}

.audio-container {
  margin-top: 15px;
  text-align: center;
}

.audio-label {
  font-size: 0.9rem;
  margin-top: 4px;
  color: #555;
}

#broadcast-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#broadcast-section.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.all-files-btn {
  margin-bottom: 10px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.all-files-btn:hover {
  background-color: #45a049;
}

#start-button {
  margin-right: 10px;
  padding: 10px 20px;
  font-size: 16px;
}

#automation-status {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #222;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ===== עיצוב כותרות והערות ===== */
.section-title {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #222;
}

.small-note {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}

/* ===== מצב לילה ===== */
body.night-mode {
  filter: brightness(0.8) contrast(0.9) saturate(0.6);
  transition: filter 0.6s ease;
}

/* ===== זמנים הלכתיים ===== */
/* ===== זמנים הלכתיים - עיצוב קומפקטי ===== */

/* תיבת הזמן הבא - קטנה ומצומצמת */
.next-time-alert {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 8px 20px;
  margin: 0 auto 10px;
  display: inline-block;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.next-time-alert.urgent {
  background: rgba(128, 0, 32, 0.6);
  border: 1px solid rgba(128, 0, 32, 0.8);
  animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.next-time-icon {
  font-size: 1.4em;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.next-time-content {
  flex: 1;
  text-align: right;
}

.next-time-name {
  font-size: 0.85em;
  font-weight: 700;
  color: #1a1a2e;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 6px rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
}

.next-time-value {
  font-size: 1.2em;
  font-weight: 800;
  color: #1a1a2e;
  direction: ltr;
  font-family: 'Courier New', monospace;
  text-shadow: 
    0 1px 3px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.next-time-countdown {
  font-size: 0.75em;
  font-weight: 600;
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

.compact-times-card {
  background: rgba(20, 20, 30, 0.15);
  border: none;
  border-radius: 20px;
  padding: 25px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.times-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 25px;
}

.times-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.times-grid.three-columns {
  grid-template-columns: 1fr 1.3fr 1fr;
}

.times-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* כותרות עמודות - גדולות ובולטות - ללא מסגרת */
.column-header {
  font-size: 1.8em;
  font-weight: 900;
  color: #D4A855;
  text-align: center;
  padding: 15px 10px;
  margin-bottom: 10px;
  background: transparent;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(212, 168, 85, 0.4);
  letter-spacing: 1px;
}

.time-item {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.time-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* זמן שעומד לעבור - הדגשה עדינה */
.time-item.time-soon {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  animation: gentle-pulse 3s infinite ease-in-out;
  box-shadow: 0 4px 20px rgba(255, 165, 2, 0.3);
}

.time-item.time-soon .time-name {
  color: #1a1a2e;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 5px rgba(255, 255, 255, 0.3);
}

.time-item.time-soon .time-value {
  color: #1a1a2e;
  text-shadow: 
    0 2px 4px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes gentle-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 165, 2, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 165, 2, 0.6);
    opacity: 0.7;
  }
}

/* זמנים חשובים - רקע מוחלש */
.time-item.important {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.15) 0%, rgba(246, 201, 14, 0.15) 100%);
  font-weight: 900;
}

.time-item.important .time-name {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.time-item.important .time-value {
  color: #87CEEB;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.time-item.info-item {
  background: rgba(255, 255, 255, 0.08);
}

/* עמודת שבת - עיצוב מיוחד חום/בז' */
.times-column.shabbat-column {
  background: transparent;
  border-radius: 15px;
  padding: 0 15px 15px 15px;
}

/* כותרת עמודת שבת עם נרות */
.shabbat-header-with-candles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: -5px;
  padding: 15px 0;
}

.shabbat-header-with-candles .column-header {
  padding: 0;
  margin: 0;
}

.shabbat-candle {
  font-size: 2.5em;
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
  animation: candle-flicker 2s infinite ease-in-out;
}

@keyframes candle-flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* פרשה גדולה */
.parsha-large {
  font-size: 2em !important;
  font-weight: 900 !important;
  color: #3d2914 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

/* הפטרה גדולה */
.haftara-large {
  font-size: 1.8em !important;
  font-weight: 800 !important;
}

/* כניסת/יציאת שבת - גדולים */
.shabbat-main-time {
  padding: 15px !important;
  margin: 8px 0;
}

.shabbat-main-time .time-name {
  font-size: 1.3em !important;
  font-weight: 900 !important;
}

.shabbat-main-time .time-value {
  font-size: 1.8em !important;
  font-weight: 900 !important;
  color: #2d1810 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6) !important;
}

.time-item.shabbat-time {
  background: rgba(255, 248, 230, 0.75);
  font-weight: 900;
  grid-template-columns: 35px auto auto 1fr;
}

.time-item.shabbat-time .time-name {
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.time-item.shabbat-time .time-value {
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* פרשה - אייקון בצד, טקסט באמצע */
.time-item.shabbat-time .parsha-large {
  grid-column: 2 / -1;
  text-align: center;
  margin-left: 35px;
}

/* הפטרה - ממורכזת ומוקטנת */
.time-item.shabbat-time > div[style*="flex-direction"] {
  grid-column: 2 / -1;
  justify-self: center;
  text-align: center;
  margin-top: -5px;
  margin-left: 35px;
}

/* עיצוב מיוחד לפרשה והפטרה בעמודת שבת */
.parsha-block,
.haftara-block {
  background: linear-gradient(135deg, #f5e6c8 0%, #eddcb5 100%);
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.parsha-label,
.haftara-label {
  font-size: 1em;
  color: #3d2914;
  font-weight: 600;
  margin-bottom: 5px;
}

.parsha-name {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 2.1em;
  font-weight: 800;
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.haftara-name {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.haftara-block .haftara-source {
  font-size: 0.85em;
  color: #5a4020;
  font-weight: 500;
  margin-top: 5px;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* עמודת חג - עיצוב מיוחד */
.times-column.yomtov-column {
  background: transparent;
  border-radius: 15px;
  padding: 10px;
}

.time-item.yomtov-time {
  background: rgba(255, 250, 220, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight: 900;
  grid-template-columns: 35px auto auto 1fr;
}

/* שם החג - ממורכז */
.time-item.yomtov-time[style*="text-align: center"] .time-name {
  grid-column: 2 / -1;
  text-align: center;
  margin-left: 35px;
}

.time-item.yomtov-time .time-name {
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.time-item.yomtov-time .time-value {
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.time-icon {
  font-size: 1.8em;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.time-name {
  font-size: 1.15em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.3px;
}

.time-value {
  font-size: 1.4em;
  font-weight: 900;
  color: #87CEEB;
  direction: ltr;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(135, 206, 235, 0.5);
  letter-spacing: 0.5px;
}

/* מצב לילה - טקסט יותר בהיר */
body.night-mode .time-name {
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 1),
    0 0 15px rgba(255, 255, 255, 0.4);
}

body.night-mode .time-value {
  color: #ADD8E6;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 1),
    0 0 20px rgba(173, 216, 230, 0.6);
}

/* רספונסיבי */
@media (max-width: 1024px) {
  .times-grid.has-shabbat {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .times-grid,
  .times-grid.has-shabbat {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .compact-times-card {
    padding: 20px 15px;
  }
  
  .time-name {
    font-size: 1em;
  }
  
  .time-value {
    font-size: 1.2em;
  }
  
  .next-time-alert {
    flex-direction: row;
    padding: 5px 10px;
    max-width: 250px;
  }
  
  .next-time-icon {
    font-size: 1.2em;
  }
  
  .next-time-name {
    font-size: 0.75em;
  }
  
  .next-time-value {
    font-size: 1em;
  }
  
  .next-time-countdown {
    font-size: 0.65em;
  }
}

/* ===== הפטרה - מתחת לפרשה ממורכזת ===== */
#haftara {
  background: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  max-width: 600px;
}

.haftara-title {
  font-size: 1em;
  font-weight: 600;
  color: #87ceeb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: block;
  margin-bottom: 3px;
}

.haftara-text {
  font-size: 1.5em;
  color: #cce7ff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: block;
  margin-bottom: 3px;
}

.haftara-source {
  font-size: 0.85em;
  color: #b0e0e6;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  display: block;
}

/* ===== הודעות מיוחדות (ראש חודש, ברכת הלבנה) ===== */
.special-notice {
  padding: 8px 15px;
  margin: 8px auto;
  max-width: 400px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.special-notice.rosh-chodesh {
  background: rgba(102, 126, 234, 0.25);
  color: white;
  border: 1px solid rgba(90, 103, 216, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* עיצוב מובלט להודעות יעלה ויבוא, הלל, על הניסים */
.notice-item.notice-prayer,
.notice-item.notice-hallel,
.notice-item.notice-hallel-full {
  font-size: 1.3em !important;
  font-weight: bold !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.3) 100%) !important;
  border: 2px solid rgba(255, 215, 0, 0.6) !important;
  border-radius: 12px !important;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.special-notice.levana {
  background: rgba(240, 147, 251, 0.25);
  color: white;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.special-notice.levana.urgent {
  animation: gentle-pulse 3s ease-in-out infinite;
  background: rgba(240, 147, 251, 0.35);
  border: 1px solid rgba(255, 100, 100, 0.5);
}

.special-notice.levana.warning {
  background: rgba(240, 147, 251, 0.3);
  border: 1px solid rgba(255, 165, 0, 0.5);
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes slow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.special-notice.levana-soon {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
  border: 2px solid #6ee7b7;
}

.special-notice.special-period {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #8b4513;
  border: 2px solid #ff8c00;
}

.special-notice.period-elul {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  color: #1e40af;
  border: 2px solid #3b82f6;
}

.special-notice.period-selichot {
  background: linear-gradient(135deg, #deb887 0%, #d2b48c 100%);
  color: #3d2914;
  border: 2px solid #c4a574;
  font-weight: bold;
}

.special-notice.period-aseret-yemei-teshuva {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  color: #6b21a8;
  border: 2px solid #9333ea;
}

.special-notice.period-three-weeks {
  background: linear-gradient(135deg, #d4d4d4 0%, #9ca3af 100%);
  color: #1f2937;
  border: 2px solid #6b7280;
}

.special-notice.period-omer {
  background: rgba(253, 203, 110, 0.2);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
  padding: 6px 15px;
  font-size: 0.95em;
}

/* הבהוב ספירת העומר בערב */
.special-notice.period-omer.omer-evening {
  background: rgba(253, 203, 110, 0.4);
  border: 2px solid rgba(243, 156, 18, 0.7);
  animation: omer-pulse 2s ease-in-out infinite;
}

@keyframes omer-pulse {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
  }
  50% { 
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
  }
}

/* ===== תזכורות זמן חי ===== */
#live-reminders {
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-reminder {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-reminder.reminder-urgent {
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
  color: white;
  border: 3px solid #ee5a6f;
  animation: pulse 1s ease-in-out infinite, slideIn 0.5s ease-out;
  font-size: 1.5em;
}

.live-reminder.reminder-high {
  background: linear-gradient(135deg, #ffa502 0%, #ff7979 100%);
  color: white;
  border: 3px solid #ff6348;
}

.live-reminder.reminder-medium {
  background: linear-gradient(135deg, #ffd32a 0%, #ffb142 100%);
  color: #333;
  border: 3px solid #ffa502;
}

.live-reminder.reminder-normal {
  background: linear-gradient(135deg, #7bed9f 0%, #70a1ff 100%);
  color: white;
  border: 3px solid #2ed573;
}

.live-reminder.reminder-low {
  background: linear-gradient(135deg, #dfe4ea 0%, #ced6e0 100%);
  color: #2f3542;
  border: 3px solid #a4b0be;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.7;
  }
}

body.night-mode .time-row {
  background-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .time-label,
body.night-mode .time-value,
body.night-mode .haftara-title,
body.night-mode .haftara-text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* עיצוב טקסט שמיטה */
.shmita-text {
  font-size: 1em !important;
}

/* ===== התאמה לנייד (PWA) ===== */
@media (max-width: 480px) {
  body {
    padding: 15px;
  }
  
  #clock {
    font-size: 2.5em;
  }
  
  #seconds {
    font-size: 0.5em;
  }
  
  #date-hebrew {
    font-size: 1.8em;
  }
  
  #date-gregorian {
    font-size: 1.5em;
  }
  
  #day-or-holiday {
    font-size: 1.5em !important;
  }
  
  #parsha {
    font-size: 1.8em;
  }
  
  #holiday-name {
    font-size: 2.5em !important;
  }
  
  #special-shabbat {
    font-size: 2em !important;
  }
  
  #shabbat-times .time {
    font-size: 1.8em;
  }
  
  .candle {
    font-size: 3em;
  }
  
  #holiday-times .shabbat-text .time {
    font-size: 2em;
  }
  
  #special-day-text {
    font-size: 1.5em !important;
  }
  
  #sun-times {
    font-size: 0.9em;
    flex-direction: column;
    gap: 5px;
  }
  
  .time-name {
    font-size: 0.9em;
  }
  
  .time-value {
    font-size: 1.1em;
  }
  
  #broadcast-header {
    font-size: 1.2em;
  }
  
  button {
    font-size: 0.85em;
    padding: 6px 12px;
  }
  
  #toggle-night {
    font-size: 0.7em;
    padding: 4px 8px;
  }
  
  .special-notice {
    font-size: 1em;
    padding: 6px 10px;
  }
  
  #omer-count {
    font-size: 1.2em;
  }
  
  .haftara-text {
    font-size: 1.1em;
  }
  
  .haftara-title {
    font-size: 0.85em;
  }
}

/* מסכים קטנים מאוד */
@media (max-width: 360px) {
  #clock {
    font-size: 2em;
  }
  
  #date-hebrew {
    font-size: 1.5em;
  }
  
  #date-gregorian {
    font-size: 1.2em;
  }
  
  #parsha {
    font-size: 1.5em;
  }
}
