/* ========================================
   ENTERPRISE HEADER DESIGN
   Clean, Professional, Sophisticated
   ======================================== */

/* ===== HEADER STRUCTURE ===== */
.enterprise-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.dark .enterprise-header {
  background: #111827;
  border-bottom-color: #1f2937;
}

.enterprise-container {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
}

/* ===== TOP HEADER BAR ===== */
.enterprise-header-main {
  height: 72px;
  display: flex;
  align-items: center;
}

.enterprise-header-main .enterprise-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

/* ===== LOGO SECTION ===== */
.enterprise-logo-section {
  flex-shrink: 0;
}

.enterprise-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.enterprise-logo-link:hover {
  opacity: 0.8;
}

.enterprise-logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.enterprise-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enterprise-logo-icon i {
  font-size: 20px;
  color: #ffffff;
}

.enterprise-beta-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.enterprise-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.enterprise-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dark .enterprise-brand-name {
  color: #f9fafb;
}

.enterprise-brand-tagline {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .enterprise-brand-tagline {
  color: #9ca3af;
}

/* ===== HEADER SEARCH BAR ===== */
.enterprise-header-search {
  position: relative;
  flex: 1;
  max-width: 500px;
  display: none;
}

@media (min-width: 768px) {
  .enterprise-header-search {
    display: block;
  }
}

/* Better layout for medium screens (1024-1400px) */
@media (min-width: 1024px) and (max-width: 1400px) {
  .enterprise-header-search {
    max-width: 350px;
    min-width: 250px;
  }
}

.enterprise-header-search input {
  width: 100%;
  height: 42px;
  padding: 0 1rem 0 2.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  transition: all 0.2s ease;
}

.dark .enterprise-header-search input {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

.enterprise-header-search input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .enterprise-header-search input:focus {
  background: #374151;
  border-color: #3b82f6;
}

.enterprise-header-search input::placeholder {
  color: #9ca3af;
}

.enterprise-header-search > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
}

.dark .enterprise-header-search > i {
  color: #9ca3af;
}

/* Clear Search Button */
.enterprise-search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .enterprise-search-clear {
  background: #374151;
  color: #9ca3af;
}

.enterprise-search-clear:hover {
  background: #d1d5db;
  color: #111827;
}

.dark .enterprise-search-clear:hover {
  background: #4b5563;
  color: #f9fafb;
}

.enterprise-search-clear i {
  font-size: 12px;
}

.enterprise-header-search input:not(:placeholder-shown) + * + .enterprise-search-clear {
  display: flex;
}

/* ===== UTILITIES SECTION ===== */
.enterprise-utilities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* World Clocks */
.enterprise-clocks {
  display: none;
}

@media (min-width: 1280px) {
  .enterprise-clocks {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-right: 0.5rem;
  }
  
  .dark .enterprise-clocks {
    background: #1f2937;
  }
}

#header-clock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#header-clock-row .header-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

#header-clock-row .header-clock-canvas {
  width: 36px;
  height: 36px;
}

#header-clock-row .header-clock-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark #header-clock-row .header-clock-label {
  color: #9ca3af;
}

/* Modern Action Buttons */
.enterprise-modern-btn {
  display: none;
}

@media (min-width: 1024px) {
  .enterprise-modern-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
    height: 42px;
  }
  
  .enterprise-modern-btn i {
    font-size: 16px;
  }
  
  .enterprise-modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* Weather Button - Blue */
.enterprise-btn-weather {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.enterprise-btn-weather:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.enterprise-btn-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.enterprise-btn-label {
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.9;
}

.enterprise-btn-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

/* Traffic Button - Orange */
.enterprise-btn-traffic {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

.enterprise-btn-traffic:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

/* Statistics Button - Purple */
.enterprise-btn-stats {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
}

.enterprise-btn-stats:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Submit Button - Green */
.enterprise-btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.enterprise-btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Refresh Button - Gray */
.enterprise-btn-refresh {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
}

.enterprise-btn-refresh:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.enterprise-btn-refresh:hover i {
  transform: rotate(180deg);
}

.enterprise-btn-refresh i {
  transition: transform 0.3s ease;
}

/* Actions */
.enterprise-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.enterprise-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .enterprise-action-btn {
  color: #9ca3af;
}

.enterprise-action-btn:hover {
  background: #f9fafb;
  color: #111827;
}

.dark .enterprise-action-btn:hover {
  background: #1f2937;
  color: #f9fafb;
}

.enterprise-action-btn i {
  font-size: 16px;
}

.enterprise-action-btn#refresh-btn:hover i {
  transform: rotate(180deg);
}

.enterprise-action-btn i {
  transition: transform 0.3s ease;
}

/* Mobile Square Colorful Buttons - Show only on mobile */
.enterprise-mobile-square-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.enterprise-mobile-square-btn i {
  font-size: 16px;
}

.enterprise-mobile-square-btn:active {
  transform: scale(0.95);
}

/* Weather Button - Blue gradient */
.mobile-btn-weather {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.mobile-btn-weather:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Traffic Button - Orange gradient */
.mobile-btn-traffic {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.mobile-btn-traffic:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}

/* Submit Button - Green gradient */
.mobile-btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

/* Refresh Button - Purple gradient */
.mobile-btn-refresh {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mobile-btn-refresh:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}

/* Theme Toggle Button - Gray gradient (light mode) / Yellow (dark mode) */
.mobile-btn-theme {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.mobile-btn-theme:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  box-shadow: 0 2px 6px rgba(75, 85, 99, 0.4);
}

.dark .mobile-btn-theme {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.dark .mobile-btn-theme:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

@media (max-width: 1023px) {
  .enterprise-mobile-square-btn {
    display: flex !important;
  }
  
  .enterprise-actions {
    gap: 0.375rem;
  }
}

/* Mobile responsive breakpoint */
@media (max-width: 1023px) {
  .enterprise-modern-btn {
    display: none !important;
  }
}

/* ===== NAVIGATION BAR ===== */
.enterprise-nav-bar {
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
}

.dark .enterprise-nav-bar {
  border-top-color: #1f2937;
  background: #0d1117;
}

.enterprise-nav-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
  justify-content: flex-start;
  align-items: center;
}

.enterprise-nav-scroll::-webkit-scrollbar {
  display: none;
}


.enterprise-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.dark .enterprise-nav-item {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.enterprise-nav-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .enterprise-nav-item:hover {
  border-color: #4b5563;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.enterprise-nav-item.active {
  background: #f9fafb;
  border-color: #111827;
  color: #111827;
  font-weight: 600;
}

.dark .enterprise-nav-item.active {
  background: #374151;
  border-color: #f9fafb;
  color: #f9fafb;
}

.enterprise-nav-item i {
  font-size: 14px;
}

/* Category Colors - Border when active */
.enterprise-nav-item.category-btn[data-category="Πολιτική"].active {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.dark .enterprise-nav-item.category-btn[data-category="Πολιτική"].active {
  background: rgba(220, 38, 38, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Ελλάδα"].active {
  border-color: #0369a1;
  color: #0369a1;
  background: #f0f9ff;
}

.dark .enterprise-nav-item.category-btn[data-category="Ελλάδα"].active {
  background: rgba(3, 105, 161, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Αθλητικά"].active {
  border-color: #16a34a;
  color: #16a34a;
  background: #f0fdf4;
}

.dark .enterprise-nav-item.category-btn[data-category="Αθλητικά"].active {
  background: rgba(22, 163, 74, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Κόσμος"].active {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #faf5ff;
}

.dark .enterprise-nav-item.category-btn[data-category="Κόσμος"].active {
  background: rgba(124, 58, 237, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Lifestyle"].active {
  border-color: #ec4899;
  color: #ec4899;
  background: #fdf2f8;
}

.dark .enterprise-nav-item.category-btn[data-category="Lifestyle"].active {
  background: rgba(236, 72, 153, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Business"].active {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

.dark .enterprise-nav-item.category-btn[data-category="Business"].active {
  background: rgba(234, 88, 12, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Τεχνολογία"].active {
  border-color: #0891b2;
  color: #0891b2;
  background: #ecfeff;
}

.dark .enterprise-nav-item.category-btn[data-category="Τεχνολογία"].active {
  background: rgba(8, 145, 178, 0.1);
}

.enterprise-nav-item.category-btn[data-category="Education"].active {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: #faf5ff;
}

.dark .enterprise-nav-item.category-btn[data-category="Education"].active {
  background: rgba(139, 92, 246, 0.1);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Medium desktops (1024-1400px) - Optimize layout */
@media (min-width: 1024px) and (max-width: 1400px) {
  .enterprise-header-main .enterprise-container {
    gap: 0.75rem;
  }
  
  .enterprise-logo-section {
    min-width: auto;
  }
  
  .enterprise-brand-name {
    font-size: 16px;
  }
  
  .enterprise-brand-tagline {
    font-size: 10px;
  }
  
  .enterprise-clocks {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .enterprise-modern-btn {
    min-width: 90px;
    font-size: 12px;
  }
  
  .enterprise-actions {
    gap: 0.25rem;
  }
}

/* Small desktops and tablets (1024-1400px) */
@media (min-width: 1024px) and (max-width: 1400px) {
  .enterprise-clocks {
    display: none !important;
  }
  
  .enterprise-header-search {
    max-width: 320px;
  }
}

/* Mobile and small tablets */
@media (max-width: 1023px) {
  .enterprise-header-main {
    height: 64px;
  }
  
  .enterprise-header-main .enterprise-container {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  
  .enterprise-logo-icon {
    width: 36px;
    height: 36px;
  }
  
  .enterprise-logo-icon i {
    font-size: 16px;
  }
  
  .enterprise-brand-name {
    font-size: 16px;
  }
  
  .enterprise-brand-tagline {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .enterprise-container {
    padding: 0 1rem;
  }
  
  .enterprise-brand-tagline {
    display: none;
  }
  
  .enterprise-nav-bar {
    display: none;
  }
}

