/**
 * AI-PRO Header Component Styles
 * 
 * This file provides minimal styles for the header component.
 * Most styling is handled by Tailwind CSS classes in the Twig template.
 * 
 * Include this in your HTML head:
 * <link rel="stylesheet" href="<?= base_url('assets/css/header.css') ?>">
 */

/* Header Component Base */
.header-component {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Desktop Dropdown Menu Styling */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 14rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #486284;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: #f9fafb;
  color: #3073D5;
}

/* Desktop Dropdown Arrow Animation */
.dropdown-arrow {
  transition: transform 0.3s ease;
}

/* Mobile Menu Styling */
.mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

.mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Dropdown Arrow Animation */
.mobile-dropdown-arrow {
  transition: transform 0.3s ease;
}

.mobile-dropdown-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Vuzo Banner Styling */
.vuzo-banner {
  position: relative;
}

/* Smooth transitions for all interactive elements */
.header-component button,
.header-component a {
  transition: all 0.2s ease;
}

/* Focus styles for accessibility */
.header-component button:focus,
.header-component a:focus {
  outline: 2px solid #3073D5;
  outline-offset: 2px;
}

/* Badge styling for "NEW" labels */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #3f51b5 0%, #2196f3 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 430px) {
  .header-component .h-[7rem] {
    height: 6rem !important;
  }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Loading states */
.header-component .loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Custom scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Underline animation for desktop nav links */
.group:hover .absolute {
  width: 100%;
}

/* Ensure dropdowns appear above other content */
.header-component {
  z-index: 9999;
}

.dropdown-menu {
  z-index: 10000;
}

.mobile-menu-overlay {
  z-index: 9998;
}

.mobile-menu {
  z-index: 9999;
}

/* Print styles - hide header when printing */
@media print {
  .header-component {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dropdown-menu {
    border: 2px solid currentColor;
  }
  
  .header-component button:focus,
  .header-component a:focus {
    outline-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .header-component *,
  .header-component *::before,
  .header-component *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
