/**
 * Custom Styles - King Size Game Cyberpunk Theme
 *
 * @package KingSizeGame
 */

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
}
body.admin-bar .site-header {
  top: 32px; /* Adjust for WordPress admin bar */
}

.header-inner {
  padding: var(--space-md) 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-branding {
  flex-shrink: 0;
}

.custom-logo {
  max-height: 43px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
  transition: var(--transition-base);
  margin-top: 2px;
}

.custom-logo:hover {
  filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.8));
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.site-title a {
  color: var(--cyan-neon);
}

.site-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transition: var(--transition-base);
  position: relative;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--magenta-neon));
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px currentColor;
}

.nav-menu a:hover::before,
.nav-menu .current-menu-item a::before {
  width: 100%;
}

/* Mobile menu toggle - Enhanced styles loaded from mobile-menu.css */

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--bg-card);
  border-top: 2px solid var(--cyan-neon);
  margin-top: var(--space-xxl);
  padding-top: var(--space-xxl);
  overflow: hidden;
}

/* Footer Slogan Section */
.footer-slogan {
  padding: var(--space-xxl) 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.footer-slogan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, transparent 50%, rgba(0, 240, 255, 0.03) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.footer-slogan-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 58px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--magenta-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6))
          drop-shadow(0 0 40px rgba(255, 0, 255, 0.4));
  position: relative;
  z-index: 1;
}

.footer-widgets {
  padding-bottom: var(--space-xxl);
  display: none; /* Caché car remplacé par le slogan */
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.footer-widget-area {
  padding: var(--space-md);
}

.footer-widget-area .widget-title {
  color: var(--cyan-neon);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 10px currentColor;
}

.site-info {
  background: var(--bg-primary);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--bg-border);
}

.site-info-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-text {
  margin: 0;
  font-size: 0.875rem;
}

.footer-address {
  margin: var(--space-xs) 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
}

.footer-menu a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cyan-neon);
  border-radius: 50%;
  color: var(--cyan-neon);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--cyan-neon);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  transform: translateY(-3px);
}

.footer-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.3;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.site-content {
  padding-top: 100px; /* Adjust based on header height */
  min-height: calc(100vh - 200px);
}

.site-main {
  padding: var(--space-xxl) 0;
}

/* Section styling */
.section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  background: rgba(26, 26, 46, 0.6);
  border: 2px solid var(--bg-border);
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  transition: var(--transition-base);
  border-radius: var(--radius-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--cyan-neon);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

@media (max-width: 768px) {
  .site-header {
    padding: var(--space-sm) 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Desktop menu hidden on mobile - Mobile menu handled by mobile-menu.css */
  .main-navigation .nav-menu {
    display: none !important;
  }

  .site-info-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
  }

  /* Footer slogan responsive */
  .footer-slogan-text {
    font-size: 32px;
    letter-spacing: 2px;
    line-height: 1.2;
  }
}

/* Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-slogan-text {
    font-size: 48px;
    letter-spacing: 3px;
  }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cyan-neon);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: var(--space-md);
  background: var(--cyan-neon);
  color: var(--bg-primary);
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Footer-specific social links styling - Override sections.css */
.footer-social .social-links {
  margin: 0;
}

.footer-social .social-links a.social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 2px solid var(--cyan-neon) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--cyan-neon) !important;
}

.footer-social .social-links a.social-link svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

.footer-social .social-links a.social-link:hover {
  background: var(--cyan-neon) !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.8) !important;
  transform: translateY(-3px) !important;
}


.footer-credit {
  margin: var(--space-sm) 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.loopus-link {
  color: var(--cyan-neon);
  text-decoration: none;
  transition: var(--transition-base);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.loopus-link:hover {
  color: var(--magenta-neon);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
  text-decoration: underline;
}
