/**
 * Header Styles
 * Sticky header with logo, club name, navigation, and theme toggle
 */

/* ============================================================================
   HEADER CONTAINER
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
}

/* ============================================================================
   LOGO AREA
   ============================================================================ */

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--logo-bg);
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.2s;
}

.logo-placeholder:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 100%;
  height: 100%;
  color: var(--logo-icon-color);
}

/* ============================================================================
   HEADER RIGHT SIDE
   ============================================================================ */

.header-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top Row: Club Name + Theme Toggle */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.club-name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

/* ============================================================================
   THEME TOGGLE BUTTON
   ============================================================================ */

.theme-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--theme-toggle-hover-bg);
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--nav-link-color);
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--nav-link-hover-bg);
  color: var(--nav-link-hover-color);
}

/* Active page styling */
.nav-link.active {
  background-color: var(--nav-link-active-bg);
  color: var(--nav-link-active-color);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .header-container {
    grid-template-columns: 60px 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .logo-placeholder {
    width: 50px;
    height: 50px;
  }
  
  .club-name {
    font-size: 1.4rem;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .header-nav {
    gap: 6px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
