/**
 * Golf The Bay - Shared Header Styles
 *
 * Logo + wordmark branding with responsive sizing
 * Consistent across all pages
 */

/* ============================================
   BRAND LOGO + WORDMARK
   ============================================ */

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover,
.brand-link:focus {
  opacity: 0.9;
}

.brand-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Logo image */
.site-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  /* Add subtle drop shadow for visibility on dark backgrounds */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Text wordmark next to logo */
.brand-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f1e8;
  line-height: 1.1;
  white-space: nowrap;
}

/* Tagline under wordmark (optional) */
.brand-tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.75rem;
  color: rgba(244, 241, 232, 0.8);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Wordmark container for stacked layout */
.brand-text {
  display: flex;
  flex-direction: column;
}

/* ============================================
   SECONDARY PAGE HEADER (app, courses, etc.)
   ============================================ */

.site-header {
  background: linear-gradient(135deg, #1a3d17, #2d5a27);
  color: #f4f1e8;
  padding: 16px 0;
  border-bottom: 4px solid #c4a882;
  box-shadow: 0 4px 12px rgba(61, 41, 20, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Navigation */
.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-btn {
  color: #f4f1e8;
  text-decoration: none;
  font-family: 'Playfair Display', Georgia, serif;
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   NOTIFICATION BELL ICON
   ============================================ */

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #f4f1e8;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-right: 4px;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.notification-bell svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Unread count badge */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e74c3c;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid #1a3d17;
  transform: scale(1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-badge:empty,
.notification-badge.hidden {
  display: none;
}

.notification-badge.pulse {
  animation: badgePulse 0.5s ease-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Active state for notifications page */
.notification-bell.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Title bar variant (light background) */
.title-bar .notification-bell {
  color: #3d3225;
}

.title-bar .notification-bell:hover {
  background: rgba(61, 50, 37, 0.1);
  border-color: rgba(61, 50, 37, 0.3);
}

.title-bar .notification-badge {
  border-color: #f4ebe0;
}

/* ============================================
   HOMEPAGE TITLE BAR (overlay on map)
   ============================================ */

.title-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(244, 235, 224, 0.95) 0%, rgba(244, 235, 224, 0.85) 100%);
  text-align: center;
  z-index: 100;
  border-bottom: 2px solid rgba(196, 168, 130, 0.5);
}

.title-bar .brand-link {
  display: inline-flex;
  justify-content: center;
}

.title-bar .brand-wordmark {
  color: #3d3225;
}

.title-bar .brand-tagline {
  color: #6b5d4d;
}

.title-bar .site-logo {
  height: 48px;
  filter: none; /* No shadow needed on light background */
}

.map-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  color: #6b5d4d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

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

/* Tablet */
@media (max-width: 900px) {
  .brand-wordmark {
    font-size: 1.3rem;
  }

  .site-logo {
    height: 40px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .notification-bell {
    padding: 6px;
  }

  .notification-bell svg {
    width: 20px;
    height: 20px;
  }

  .notification-badge {
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 0.65rem;
    padding: 0 4px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }

  .brand-link {
    gap: 10px;
  }

  .site-logo {
    height: 36px;
  }

  .brand-wordmark {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .notification-bell {
    padding: 6px;
    margin-right: 0;
  }

  .notification-bell svg {
    width: 18px;
    height: 18px;
  }

  /* Homepage title bar */
  .title-bar {
    padding: 0.75rem 1rem;
  }

  .title-bar .site-logo {
    height: 40px;
  }

  .title-bar .brand-wordmark {
    font-size: 1.1rem;
  }

  .map-subtitle {
    font-size: 0.65rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-logo {
    height: 32px;
  }

  .brand-wordmark {
    font-size: 1rem;
  }

  .brand-tagline {
    display: none; /* Hide tagline on very small screens */
  }

  .title-bar .site-logo {
    height: 36px;
  }

  .title-bar .brand-wordmark {
    font-size: 1rem;
  }

  .nav-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
}

/* Very small mobile - hide wordmark, show logo only */
@media (max-width: 360px) {
  .brand-wordmark {
    display: none;
  }

  .site-logo {
    height: 38px;
  }

  .title-bar .site-logo {
    height: 42px;
  }
}
