/* ========================================
   V2 Components CSS - Header & Footer
   ======================================== */

/* ========================================
   REUSABLE COMPONENTS & UTILITIES
   ======================================== */

/* Container utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-start {
  display: flex;
  align-items: flex-start;
}

.flex-end {
  display: flex;
  align-items: flex-end;
}

/* Gap utilities */
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-50 { gap: 50px; }
.gap-100 { gap: 100px; }

/* Spacing utilities */
.p-15-20 { padding: 15px 20px; }
.p-60-20-0 { padding: 60px 20px 0; }
.p-25-0 { padding: 25px 0; }
.p-0-20 { padding: 0 20px; }

/* Text utilities */
.text-nowrap { white-space: nowrap; }
.text-center { text-align: center; }

/* Color utilities */
.text-primary { color: #333; }
.text-secondary { color: #666; }
.text-white { color: white; }
.text-blue { color: #0078f8; }

/* Background utilities */
.bg-white { background: white; }
.bg-gray { background: #f5f5f7; }
.bg-light-gray { background: #f8f9fa; }
.bg-blue { background: #0078f8; }
.bg-gradient-blue {
  background: linear-gradient(191deg, rgba(0, 120, 248, 1) 0%, rgba(9, 65, 235, 1) 100%);
}

/* Border utilities */
.border-light { border: 1px solid #e0e0e0; }
.border-gray { border: 1px solid #ddd; }

/* Border radius utilities */
.rounded-6 { border-radius: 6px; }
.rounded-25 { border-radius: 25px; }
.rounded-50 { border-radius: 50px; }

/* Shadow utilities */
.shadow-light { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* Transition utilities */
.transition { transition: all 0.3s ease; }
.transition-color { transition: color 0.3s ease; }

/* ========================================
   HEADER COMPONENT STYLES
   ======================================== */

.header {
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  position: relative;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-shrink: 0;
}

.header-logo {
  width: 137px;
  height: 31.61px;
}

.header-nav {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.nav-link {
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(0, 120, 248, 0.1);
}

.nav-link.active {
  padding: 8px 12px;
  background: #0078f8;
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.search-container {
  width: 280px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #0078f8;
  background: white;
}

.modules-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
}

.modules-button:hover {
  background: #e9ecef;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 25px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.user-profile:hover {
  background: #e9ecef;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-name {
  font-weight: 600;
  font-size: 12px;
  color: #333;
}

.user-role {
  font-size: 10px;
  color: #666;
}

/* ========================================
   FOOTER COMPONENT STYLES
   ======================================== */

.footer {
  width: 100%;
  margin-top: 80px;
  background: #f5f5f7;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo img {
  width: 137px;
  height: 31.61px;
}

.footer-links {
  display: flex;
  gap: 100px;
  flex: 1;
  justify-content: flex-end;
}

.footer-column {
  /* No specific styles needed, inherits from parent */
}

.footer-column h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0078f8;
}

.footer-bottom {
  background: #e8e8e8;
  padding: 25px 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #0078f8;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
  background: #f8f9fa;
}

.social-icon {
  width: 14px;
  height: 14px;
}

.social-icon-custom {
  width: 14px;
  height: 14px;
  background: #0078f8;
  border-radius: 2px;
  position: relative;
}

.social-icon-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 1px;
}

.footer-separator {
  width: 100%;
  height: 1px;
  background: #ddd;
  margin-bottom: 20px;
}

.footer-copyright-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text {
  color: #666;
  font-size: 14px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 16px;
  height: 16px;
}

.contact-email {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.contact-email:hover {
  color: #0078f8;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-left {
    gap: 20px;
  }
  
  .search-container {
    width: 200px;
  }
  
  .footer-links {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .search-container {
    width: 150px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    justify-content: flex-start;
    gap: 30px;
  }
  
  .footer-copyright-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 15px;
  }
  
  .header-left {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-nav {
    justify-content: center;
  }
  
  .search-container {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states */
.nav-link:focus,
.search-input:focus,
.modules-button:focus,
.user-profile:focus,
.footer-link:focus,
.social-link:focus,
.contact-email:focus {
  outline: 2px solid #0078f8;
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-link {
    border: 1px solid currentColor;
  }
  
  .search-input {
    border: 2px solid currentColor;
  }
  
  .modules-button,
  .user-profile {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .transition,
  .transition-color,
  .nav-link,
  .search-input,
  .modules-button,
  .user-profile,
  .footer-link,
  .social-link,
  .contact-email {
    transition: none;
  }
  
  .social-link:hover {
    transform: none;
  }
}
