/* ===============================
   1. VARIABLES & SETUP
================================ */
:root {
  --bg-header: rgba(10, 10, 10, 0.95); /* Dark, slightly transparent */
  --bg-input: #161616;
  --border-color: #333;
  --accent-blue: #3b82f6;
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
}

/* ===============================
   2. HEADER CONTAINER
================================ */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky; /* Keeps header visible while scrolling */
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px); /* The "Glass" blur effect */
}

.header-inner {
  max-width: 1000px; /* Matches your body grid width */
  min-height: 90px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===============================
   3. BRAND SECTION
================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  font-size: 20px;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.1;
}

/* Make the link behave like a container */
.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Removes underline */
    color: inherit;        /* Keeps your white/text colors */
}


/* RAINBOW ANIMATION TAGLINE */
.tagline {
  font-size: 11px;
  font-weight: 800;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  
  /* Neon Gradient */
  background: linear-gradient(
    to left, 
    #00ffff, #00ff00, #ffff00, #ff00ff, #00ffff
  );
  background-size: 200% auto;
  
  /* Clip & Animate */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brightRainbowReverse 1.5s linear infinite;
}

@keyframes brightRainbowReverse {
  0% { 
    background-position: 200% center; 
    filter: hue-rotate(360deg) brightness(1.2); 
  }
  100% { 
    background-position: 0% center; 
    filter: hue-rotate(0deg) brightness(1.2); 
  }
}

/* ===============================
   4. ACTIONS (Right Side)
================================ */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* --- Common Input Styles --- */
.cat-dropdown, 
.search-bar input {
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Focus Glow Effect */
.cat-dropdown:focus,
.search-bar input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* --- Category Dropdown Wrapper --- */
.cat-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-dropdown {
  padding: 0 35px 0 15px;
  cursor: pointer;
  appearance: none;        /* Hides default arrow */
  -webkit-appearance: none;
}

.custom-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: stroke 0.2s;
}

.cat-select-wrapper:hover .custom-arrow {
  stroke: #fff;
}

/* --- Search Bar --- */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 240px;
  padding: 0 40px 0 15px; /* Padding right for icon */
}

/* Search Icon (Clickable but looks integrated) */
.search-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.search-icon-btn svg {
  transition: stroke 0.2s;
}

.search-icon-btn:hover svg {
  stroke: #fff;
}

/* ===============================
   5. MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 15px 20px;
    height: auto;
    gap: 15px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  /* Inputs stretch to fill row */
  .cat-select-wrapper {
    flex: 1;
  }
  
  .cat-dropdown {
    width: 100%;
  }

  .search-bar {
    flex: 1.5; /* Search bar gets slightly more space */
  }
  
  .search-bar input {
    width: 100%;
  }
}