/**
 * header.css
 *
 * Purpose: Header bar styles including game title, subtitle,
 * hamburger menu button, and slide-out navigation menu.
 *
 * Dependencies: base.css
 *
 * Key Styles:
 * - Game header with title and subtitle
 * - Hamburger menu button
 * - Slide-out menu panel
 * - Menu overlay and menu items
 */

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

.game-header {
  padding: 12px 20px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.header-text {
  flex: 1;
  text-align: center;
}

.game-title {
  font-size: 1.6em;
  color: #667eea;
  margin-bottom: 4px;
  font-weight: 800;
}

.game-subtitle {
  font-size: 0.75em;
  color: #999;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.game-subtitle-line2 {
  font-size: 0.65em;
  color: #bbb;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* ==================== HAMBURGER MENU ==================== */

.hamburger-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  background: none;
  border: none;
  padding: 0;
}

.hamburger-btn:hover {
  opacity: 0.7;
}

.hamburger-btn::before {
  content: "☰";
  font-size: 24px;
  color: #666;
}

.hamburger-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  padding: 60px 0 0 0;
  border-radius: 0 20px 20px 0;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.hamburger-menu.active {
  transform: translateX(0);
}

.menu-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 2em;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s,
    transform 0.2s;
  padding: 0;
  line-height: 1;
}

.menu-close-btn:hover {
  opacity: 0.7;
  transform: rotate(90deg);
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  border-radius: 20px;
}

.menu-overlay.active {
  display: block;
}

.menu-item {
  padding: 20px 30px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 4px solid transparent;
}

.menu-item:hover {
  background: #f5f5f5;
}

.menu-item.active {
  background: #f0f0ff;
  border-left-color: #667eea;
  color: #667eea;
  font-weight: 600;
}
