/* ============================================================================
   header-footer.css - Shared Header & Footer Styles for GladGrade
   Place in: /css/header-footer.css
   ============================================================================ */

/* ============================================================================
   CSS Variables (for reference - also defined in theme files)
   ============================================================================ */
   :root {
    --gold-primary: #F79400;
    --gold-light: #FADA0B;
    --gold-dark: #DB7C00;
  }
  
  /* ============================================================================
     HEADER STYLES
     ============================================================================ */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(247, 148, 0, 0.1);
  }
  
  .header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* Logo */
  .logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
  }
  
  .logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
  }
  
  .tagline {
    font-size: 0.7rem;
    color: var(--gold-light);
    font-weight: 400;
    letter-spacing: 0.5px;
  }
  
  /* Search Bar */
.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 1.5rem;
}

.search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 148, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cs {
  padding: 0.7rem 1.5rem 0.7rem 0.75rem;
  border: none;
  border-left: 1px solid rgba(247, 148, 0, 0.3);
  background: rgba(247, 148, 0, 0.1);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23F79400' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  border-radius: 0;
}

.cs:focus {
  outline: none;
  box-shadow: none;
}

.cs option {
  background: #1a1a1a;
  color: #fff;
}

.search-btn {
  padding: 0.7rem 1rem;
  background: var(--gold-primary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  flex-shrink: 0;
  border-radius: 0;
  outline: none;
}

.search-btn:focus {
  outline: none;
  box-shadow: none;
}

.search-btn:hover {
  background: var(--gold-light);
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }
    
    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin: 0.75rem 0 0 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        order: 4;
        width: 100%;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .search-input {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .cs {
        padding: 0.6rem 1.25rem 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .search-btn {
        padding: 0.6rem 0.75rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .tagline {
        display: none;
    }
    
    .search-input {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .cs {
        padding: 0.5rem 1.25rem 0.5rem 0.4rem;
        font-size: 0.75rem;
        max-width: 70px;
    }
    
    .search-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
}
  
  /* Navigation */
  nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  
  nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
  }
  
  nav a:hover {
    color: var(--gold-light);
  }
  
  /* Mobile Menu Toggle */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* ============================================================================
     FOOTER STYLES
     ============================================================================ */
  footer {
    background: #000;
    padding: 4rem 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    color: #fff;
  }
  
  .footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-section h3 {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  .footer-section p,
  .footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .footer-section a:hover {
    color: var(--gold-light);
  }
  
  .footer-section strong {
    color: var(--gold-primary);
  }
  
  /* Social Links */
  .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 0;
  }
  
  .social-links a:hover {
    background: var(--gold-primary);
    transform: translateY(-2px);
  }
  
  .social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: #fff;
  }
  
  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
  }
  
  /* ============================================================================
     RESPONSIVE STYLES
     ============================================================================ */
  
  /* Tablet */
  @media (max-width: 900px) {
    .header-container {
      flex-wrap: wrap;
    }
    
    .header-search {
      order: 3;
      flex-basis: 100%;
      max-width: 100%;
      margin-top: 0.75rem;
    }
  }
  
  /* Mobile */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    
    nav {
      order: 4;
      width: 100%;
    }
    
    nav ul {
      display: none;
      flex-direction: column;
      width: 100%;
      padding: 1rem 0;
      gap: 0;
    }
    
    nav ul.active {
      display: flex;
    }
    
    nav li {
      width: 100%;
      text-align: center;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    footer {
      padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .social-links {
      justify-content: center;
    }
  }
  
  /* Small Mobile */
  @media (max-width: 480px) {
    .header-container {
      padding: 0.75rem 1rem;
    }
    
    .logo {
      width: 35px;
      height: 35px;
    }
    
    .logo-text {
      font-size: 1.25rem;
    }
    
    .tagline {
      display: none;
    }
    
    .search-input {
      padding: 0.6rem 0.75rem;
      font-size: 0.85rem;
    }
    
    .search-btn {
      padding: 0.6rem 0.75rem;
    }
  }



  /* ============================================================================
   FORCE REMOVE BROWSER DEFAULT FOCUS STYLES
   ============================================================================ */
.cs,
.cs:focus,
.cs:active,
.cs:focus-visible,
.cs:-webkit-autofill,
select.cs {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    -webkit-box-shadow: none !important;
}

.search-btn,
.search-btn:focus,
.search-btn:active,
.search-btn:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* Safari specific fix */
@supports (-webkit-touch-callout: none) {
    .cs {
        outline: none !important;
        -webkit-appearance: none !important;
    }
}