/*
Theme Name: King Size Game - Cyberpunk Theme
Author: Loopus Tech
Author URI: https://loopus.tech
Description: Thème WordPress cyberpunk sur mesure pour King Size Game - Salle d'arcade nouvelle génération à Gérardmer. Design futuriste avec effets néon, glitch et esthétique high-tech.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kingsize-game

*/

/* ==========================================================================
   CYBERPUNK DESIGN SYSTEM - Variables CSS
   ========================================================================== */

:root {
  /* Couleurs néon principales */
  --cyan-neon: #00F0FF;
  --magenta-neon: #FF00FF;
  --violet-neon: #8B00FF;
  --blue-neon: #0080FF;

  /* Couleurs d'accentuation */
  --yellow-neon: #FFFF00;
  --orange-neon: #FF6600;
  --green-matrix: #00FF41;

  /* Backgrounds */
  --bg-primary: #0A0A0F;
  --bg-card: #1A1A2E;
  --bg-section-alt: #16213E;
  --bg-border: #2C3E50;

  /* Glitch colors */
  --glitch-red: #FF0040;
  --glitch-blue: #00FFFF;

  /* Typography */
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #A0A0A0;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-overlay: 500;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', 'Roboto Mono', monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.8),
    0 0 20px rgba(0, 240, 255, 0.6),
    0 0 30px rgba(0, 240, 255, 0.4);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-shadow:
    0 0 10px rgba(255, 0, 255, 0.8),
    0 0 20px rgba(255, 0, 255, 0.6);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-shadow:
    0 0 10px rgba(139, 0, 255, 0.6);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

h5 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

h6 {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--cyan-neon);
  text-decoration: none;
  position: relative;
  transition: var(--transition-base);
}

a:hover {
  color: var(--magenta-neon);
  text-shadow: 0 0 10px currentColor;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--magenta-neon));
  transition: width var(--transition-base);
}

a:hover::after {
  width: 100%;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.neon-glow-cyan {
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.8),
    0 0 20px rgba(0, 240, 255, 0.6),
    0 0 30px rgba(0, 240, 255, 0.4);
}

.neon-glow-magenta {
  text-shadow:
    0 0 10px rgba(255, 0, 255, 0.8),
    0 0 20px rgba(255, 0, 255, 0.6),
    0 0 30px rgba(255, 0, 255, 0.4);
}

.box-glow-cyan {
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.5),
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 30px rgba(0, 240, 255, 0.2),
    inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.cyberpunk-border {
  border: 2px solid var(--cyan-neon);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Scanlines effect */
.scanlines::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: scan 8s linear infinite;
}

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

/* Glitch animation */
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

.glitch {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-cyberpunk {
  position: relative;
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid var(--cyan-neon);
  color: var(--cyan-neon);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all var(--transition-base);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.5),
    0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-cyberpunk:hover {
  color: var(--bg-primary);
  background: var(--cyan-neon);
  transform: translateY(-2px);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.8),
    0 0 40px rgba(0, 240, 255, 0.6),
    0 0 60px rgba(0, 240, 255, 0.4);
}

.btn-cyberpunk:active {
  transform: translateY(0);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card-cyberpunk {
  position: relative;
  padding: var(--space-lg);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid var(--cyan-neon);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-cyberpunk::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;
  opacity: 0.3;
}

.card-cyberpunk::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0.3;
}

.card-cyberpunk:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.6),
    0 0 40px rgba(0, 240, 255, 0.4);
  border-color: var(--magenta-neon);
}

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

@media (max-width: 768px) {
  :root {
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
  }
  html {
    margin-top: 0 !important;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .btn-cyberpunk {
    padding: 12px 24px;
    font-size: 0.875rem;
  }
  html #wpadminbar {
    position: fixed;
  }
}

/* ==========================================================================
   WORDPRESS CORE STYLES
   ========================================================================== */

.alignleft {
  float: left;
  margin-right: var(--space-md);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

img {
  max-width: 100%;
  height: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
h1.entry-title {
  display: none;
}