/* navbar.css - עיצוב תפריט ניווט */
.weather-nav {
  background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

/* עיצוב הלוגו */
.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.brand-link:hover {
  transform: scale(1.05);
}

.weather-icon {
  font-size: 1.5em;
  margin-left: 8px;
}

.brand-text {
  white-space: nowrap;
}

/* תפריט ניווט ראשי */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
  margin: 0 30px;
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-user {
  display: flex;
  gap: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  color: white;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-icon {
  margin-left: 5px;
  font-size: 1.1em;
}

.nav-text {
  white-space: nowrap;
}

.nav-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nav-link.disabled:hover {
  background: transparent;
  transform: none;
}

/* כפתור תפריט לנייד - עיצוב מיוחד */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.nav-toggle.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-inner {
  display: flex;
  align-items: center;
  gap: 5px;
}

.toggle-cloud {
  font-size: 1.3em;
  transition: transform 0.5s ease;
}

.toggle-text {
  font-weight: 600;
  font-size: 0.9em;
}

.nav-toggle.active .toggle-cloud {
  animation: cloudFloat 2s ease-in-out infinite;
}

@keyframes cloudFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
}

/* רקע מעומעם בנייד */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
}

/* עיצוב רספונסיבי לנייד */
@media (max-width: 968px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-menu {
    margin: 0 15px;
  }
  
  .nav-text {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 20px 20px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-links, .nav-user {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-link {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 5px;
    justify-content: flex-start;
    font-size: 1.1em;
  }
  
  .nav-link:hover {
    transform: translateX(-5px);
  }
  
  .nav-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  .brand-text {
    font-size: 1em;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 60px;
    padding: 0 10px;
  }
  
  .brand-text {
    display: none;
  }
  
  .weather-icon {
    margin-left: 0;
    font-size: 1.8em;
  }
  
  .nav-menu {
    width: 90%;
  }
}

/* אנימציות כניסה לתפריט בנייד */
@keyframes slideInItem {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-menu.active .nav-link {
  animation: slideInItem 0.4s ease forwards;
}

.nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.3s; }
.nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.35s; }
.nav-menu.active .nav-link:nth-child(7) { animation-delay: 0.4s; }