/* Esports / Gamer Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --esports-bg: #0b0f19;
  --esports-panel: #151a28;
  --esports-text: #e2e8f0;
  --esports-primary: #00f0ff; /* Cyberpunk Cyan */
  --esports-secondary: #7000ff; /* Deep Purple */
  --esports-accent: #ff003c; /* Cyber Red */
  --esports-gold: #fbbf24;
  --esports-gradient: linear-gradient(135deg, #00f0ff, #7000ff);
  --esports-gradient-warm: linear-gradient(135deg, #ff003c, #fbbf24);
  --font-title: 'Orbitron', sans-serif;
  --font-text: 'Rajdhani', sans-serif;
}

body {
  margin: 0; padding: 0;
  background: var(--esports-bg);
  background-image: 
    linear-gradient(rgba(11, 15, 25, 0.9), rgba(11, 15, 25, 0.9)),
    url('https://www.transparenttextures.com/patterns/cubes.png');
  color: var(--esports-text);
  font-family: var(--font-text);
  overflow-x: hidden;
}

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

/* Floating tech particles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--esports-primary) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  z-index: -1;
  animation: bgMove 20s linear infinite;
}
@keyframes bgMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* Typography */
.c-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  color: #fff;
  text-shadow: 0 0 10px var(--esports-primary), 0 0 20px var(--esports-primary);
  line-height: 1.2;
  text-align: center;
}

.c-title.red {
  color: #fff;
  text-shadow: 0 0 10px var(--esports-accent), 0 0 20px var(--esports-accent);
}

.c-text {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--esports-text);
  letter-spacing: 0.5px;
}

/* Base Layout Container */
.comic-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: transparent;
  padding: 20px;
}

/* Esports Panels */
.comic-panel {
  background: var(--esports-panel);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.comic-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--esports-gradient);
}
.comic-panel::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 30px;
  background: var(--esports-primary);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  opacity: 0.5;
}

/* Panel Headers - Hex Tabs */
.panel-cap {
  background: var(--esports-gradient);
  border: none;
  display: inline-block;
  padding: 6px 20px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  position: absolute;
  top: 0; left: 0;
  border-radius: 0 0 8px 0;
  box-shadow: 0 0 10px var(--esports-primary);
  z-index: 10;
  color: #fff;
  letter-spacing: 1px;
  font-weight: 900;
}

/* Cover Overlay */
.comic-cover {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--esports-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}
.comic-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.comic-cover.opened {
  transform: translateY(-120%);
}

.burst-bg {
  background: rgba(21, 26, 40, 0.8);
  border: 1px solid var(--esports-accent);
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.4), inset 0 0 10px rgba(255, 0, 60, 0.2);
  width: 90%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  position: relative;
  border-radius: 8px;
}

/* Buttons - Cyberpunk Style */
.btn-comic {
  background: transparent;
  color: var(--esports-primary);
  border: 2px solid var(--esports-primary);
  padding: 12px 24px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.btn-comic:hover {
  background: var(--esports-primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}
.btn-yellow { border-color: var(--esports-gold); color: var(--esports-gold); box-shadow: 0 0 10px rgba(251, 191, 36, 0.2), inset 0 0 10px rgba(251, 191, 36, 0.1); }
.btn-yellow:hover { background: var(--esports-gold); color: #000; box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }

.btn-blue { border-color: var(--esports-secondary); color: #fff; box-shadow: 0 0 10px rgba(112, 0, 255, 0.2); }
.btn-blue:hover { background: var(--esports-secondary); color: #fff; }

.btn-red { border-color: var(--esports-accent); color: var(--esports-accent); }
.btn-red:hover { background: var(--esports-accent); color: #fff; box-shadow: 0 0 20px rgba(255, 0, 60, 0.6); }

.btn-white { border-color: #fff; color: #fff; }
.btn-white:hover { background: #fff; color: #000; }

/* Pictures & Frames */
.comic-img-wrapper {
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.comic-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.1) saturate(1.2);
}

/* Speech Bubbles - Dialog Box */
.speech-bubble {
  position: relative;
  background: rgba(21, 26, 40, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-left: 4px solid var(--esports-primary);
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Countdown - Hexagon/Digital */
.cd-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.cd-box {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--esports-primary);
  border-radius: 6px;
  padding: 10px;
  min-width: 65px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
  color: var(--esports-primary);
}
.cd-box:nth-child(even) {
  border-color: var(--esports-secondary);
  color: #fff;
  box-shadow: inset 0 0 10px rgba(112, 0, 255, 0.3);
}
.cd-box span {
  display: block;
  font-family: var(--font-title);
  font-size: 1.8rem;
  line-height: 1;
  text-shadow: 0 0 8px currentColor;
}
.cd-box small {
  font-family: var(--font-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* Forms */
.comic-form {
  text-align: left;
}
.comic-form label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  margin-bottom: 5px;
  letter-spacing: 1px;
  color: var(--esports-primary);
  text-transform: uppercase;
}
.comic-form input, .comic-form select, .comic-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  margin-bottom: 15px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}
.comic-form input:focus, .comic-form select:focus, .comic-form textarea:focus {
  outline: none;
  border-color: var(--esports-primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.guestbook-item {
  text-align: left;
  border: 1px solid rgba(112, 0, 255, 0.3);
  background: rgba(21, 26, 40, 0.8);
  padding: 16px;
  margin-bottom: 15px;
  border-radius: 6px;
  border-left: 3px solid var(--esports-secondary);
}
.guestbook-item h4 {
  margin: 0 0 5px 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
}
.guestbook-item p {
  margin: 0;
  font-size: 1.1rem;
}

/* Music FAB */
.fab-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--esports-bg);
  color: var(--esports-primary);
  border: 2px solid var(--esports-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  z-index: 1000;
  font-size: 1.5rem;
  animation: neonPulse 2s infinite;
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.8); }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.gallery-item {
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  height: 150px;
  margin-bottom: 0;
}
.gallery-item:first-child {
  grid-column: span 2;
  height: 200px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--esports-bg); }
::-webkit-scrollbar-thumb { background: var(--esports-primary); border-radius: 10px; }
::selection { background: var(--esports-primary); color: #000; }
