/**
 * HAMBURGER MENU STYLES
 * Retro slide-out navigation
 */

/* =============================
   HEADER BUTTONS LAYOUT
   ============================= */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================
   HEADER RIGHT - ADD FLEX
   ============================= */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between Lycos button and hamburger */
}

/* =============================
   HAMBURGER BUTTON
   ============================= */
.menu-toggle {
  background: linear-gradient(180deg, #6b4d9e 0%, #4a3370 100%);
  border: 2px solid #9d7fd5;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.menu-toggle:hover {
  background: linear-gradient(180deg, #7d5bb5 0%, #5a4080 100%);
  transform: translateY(-1px);
  box-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.menu-toggle:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* =============================
   SLIDE-OUT MENU
   ============================= */
.slide-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #2a1a4a 0%, #1a0f2e 100%);
  border-left: 3px solid #9d7fd5;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.slide-menu.active {
  right: 0;
}

.slide-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #9d7fd5;
}

.slide-menu-header h3 {
  margin: 0;
  color: #fff;
  font-family: 'Comic Sans MS', ui-serif;
  font-size: 1.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.menu-close:hover {
  color: #ff6b9d;
  transform: rotate(90deg);
}

.slide-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-menu-list li {
  border-bottom: 1px solid rgba(157, 127, 213, 0.3);
}

.menu-link {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'Comic Sans MS', ui-serif;
  font-size: 1.1em;
  transition: all 0.3s ease;
  background: transparent;
}

.menu-link:hover {
  background: rgba(157, 127, 213, 0.2);
  padding-left: 30px;
  color: #ff6b9d;
}

.menu-link:active {
  background: rgba(157, 127, 213, 0.4);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .slide-menu {
    width: 100%;
    right: -100%;
  }
}

/* =============================
   STICKY HEADER FUNCTIONALITY
   ============================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: all 0.3s ease;
}

/* Scrolled state - compact header */
.site-header.scrolled {
  background: rgba(42, 26, 74, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 15px 15px 7px;
}

.site-header.scrolled .header-logo {
  height: 35px;
  width: 35px;
}

.site-header.scrolled .site-title {
  font-size: 1.2em;
}

.site-header.scrolled .lycos-button {
  height: 25px;
  width: auto;
}

.site-header.scrolled .menu-toggle {
  padding: 6px 8px;
}

.site-header.scrolled .hamburger-icon {
  width: 18px;
}

/* Add padding to body so content doesn't hide under fixed header */
body {
  padding-top: 80px; /* Adjust based on your header height */
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

.site-header.scrolled .lycos-button {
  display: none;
}
/* =============================
   MENU DIVIDER & SECTION TITLE
   ============================= */
.menu-divider {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #9d7fd5 50%, 
    transparent 100%);
  margin: 20px 15px;
  box-shadow: 0 0 10px rgba(157, 127, 213, 0.5);
}

.menu-section-title {
  padding: 15px 20px 10px;
  font-family: 'Comic Sans MS', ui-serif;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 
    0 0 10px rgba(255, 107, 157, 0.8),
    0 0 20px rgba(255, 107, 157, 0.4);
}

/* =============================
   SOCIAL LINKS IN MENU - NEON
   ============================= */
.slide-menu-social {
  list-style: none;
  padding: 0 15px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-menu-social li {
  position: relative;
}

.menu-social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  font-family: 'Comic Sans MS', ui-serif;
  font-size: 0.95em;
  background: rgba(42, 26, 74, 0.6);
  border: 2px solid rgba(157, 127, 213, 0.4);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 107, 157, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.menu-social-link:hover::before {
  left: 100%;
}

.menu-social-link:hover {
  border-color: #ff6b9d;
  box-shadow: 
    0 0 15px rgba(255, 107, 157, 0.5),
    inset 0 0 15px rgba(157, 127, 213, 0.2);
  transform: translateX(5px);
  color: #ff6b9d;
}

.menu-social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.menu-social-link:hover .menu-social-icon {
  transform: scale(1.3) rotate(-10deg);
  filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
}

.menu-social-label {
  flex: 1;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
