/*
Theme Name: Glitched Script Viewer
Theme URI: https://youtube.com/@Glitched
Author: Glitched..
Author URI: https://youtube.com/@Glitched
Description: A cyberpunk-themed Roblox script viewer with glitch animations, neon accents, and one-click script copying. Perfect for YouTube channels and script collections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glitched
Tags: one-column, custom-menu, featured-images, dark, entertainment
*/

/* ============================================
   CSS VARIABLES - Cyberpunk Theme
============================================ */
:root {
  --background: #0a0a0f;
  --foreground: #e0ffff;
  --card: #12121a;
  --card-border: #1a1a25;
  --border: #1a1a28;
  --muted: #8899aa;
  --neon-cyan: #00ffff;
  --neon-pink: #ff0080;
  --neon-green: #00ff00;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-code: 'Fira Code', monospace;
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-neon-cyan {
  color: var(--neon-cyan);
}

.text-neon-pink {
  color: var(--neon-pink);
}

.text-neon-green {
  color: var(--neon-green);
}

.text-muted {
  color: var(--muted);
}

/* ============================================
   ANIMATIONS
============================================ */
@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); }
}

@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes rgb-split {
  0%, 100% { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-cyan); }
  25% { text-shadow: -3px 0 var(--neon-pink), 3px 0 var(--neon-cyan); }
  50% { text-shadow: -1px 0 var(--neon-pink), 1px 0 var(--neon-cyan); }
  75% { text-shadow: -4px 0 var(--neon-pink), 4px 0 var(--neon-cyan); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  50% { box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  50% { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-glitch {
  animation: glitch 0.3s ease-in-out infinite;
}

.animate-rgb-split {
  animation: rgb-split 0.5s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

.animate-text-glow {
  animation: text-glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================
   LAYOUT UTILITIES
============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* ============================================
   GRID BACKGROUND EFFECT
============================================ */
.grid-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  opacity: 0.2;
}

.grid-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--background) 70%);
}

/* ============================================
   SCANLINE OVERLAY
============================================ */
.scanline-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scanline-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 255, 0.1) 50%);
  background-size: 100% 4px;
  animation: scanline 8s linear infinite;
  opacity: 0.05;
}

.scanline-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 255, 0.03) 2px,
    rgba(0, 255, 255, 0.03) 4px
  );
  opacity: 0.02;
}

/* ============================================
   GLITCH TEXT EFFECT
============================================ */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s;
}

.glitch-text:hover::before {
  opacity: 0.7;
  color: var(--neon-pink);
  transform: translate(-2px, -1px);
  clip-path: inset(10% 0 60% 0);
  animation: glitch 0.3s ease-in-out infinite;
}

.glitch-text:hover::after {
  opacity: 0.7;
  color: var(--neon-cyan);
  transform: translate(2px, 1px);
  clip-path: inset(50% 0 20% 0);
  animation: glitch 0.3s ease-in-out infinite reverse;
}

.glitch-text-continuous::before {
  opacity: 0.7;
  color: var(--neon-pink);
  transform: translate(-2px, -1px);
  clip-path: inset(10% 0 60% 0);
  animation: glitch 0.3s ease-in-out infinite;
}

.glitch-text-continuous::after {
  opacity: 0.7;
  color: var(--neon-cyan);
  transform: translate(2px, 1px);
  clip-path: inset(50% 0 20% 0);
  animation: glitch 0.3s ease-in-out infinite reverse;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-logo svg {
  width: 24px;
  height: 24px;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--neon-cyan);
}

.mobile-menu-btn {
  display: flex;
  background: transparent;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

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

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--muted);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--neon-cyan);
  color: var(--background);
  border-color: var(--neon-cyan);
}

.btn-primary:hover {
  background-color: #00cccc;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline-pink {
  background: transparent;
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.btn-outline-pink:hover {
  background: rgba(255, 0, 128, 0.1);
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--neon-cyan);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 6rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  color: var(--muted);
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 0, 128, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--background) 100%);
  z-index: 10;
  pointer-events: none;
}

/* ============================================
   SEARCH BAR
============================================ */
.search-wrapper {
  position: relative;
  max-width: 28rem;
  width: 100%;
}

.search-glow {
  position: absolute;
  inset: 0;
  border-radius: 0.375rem;
  filter: blur(12px);
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.2));
  transition: opacity 0.3s;
  pointer-events: none;
}

.search-wrapper:focus-within .search-glow {
  opacity: 1;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-left {
  position: absolute;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.search-icon-left .terminal-symbol {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 3.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-clear-btn {
  position: absolute;
  right: 0.5rem;
}

/* ============================================
   CATEGORY FILTER
============================================ */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  transition: all 0.2s;
}

.category-btn:hover {
  border-color: var(--neon-cyan);
}

.category-btn.active {
  background: var(--neon-cyan);
  color: var(--background);
  border-color: var(--neon-cyan);
}

.category-btn.executor { color: var(--neon-cyan); }
.category-btn.game { color: var(--neon-pink); }
.category-btn.utility { color: var(--neon-green); }
.category-btn.gui { color: #a855f7; }

/* ============================================
   BADGE
============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border: 1px solid;
  white-space: nowrap;
}

.badge-executor {
  background: rgba(0, 255, 255, 0.2);
  color: var(--neon-cyan);
  border-color: rgba(0, 255, 255, 0.5);
}

.badge-game {
  background: rgba(255, 0, 128, 0.2);
  color: var(--neon-pink);
  border-color: rgba(255, 0, 128, 0.5);
}

.badge-utility {
  background: rgba(0, 255, 0, 0.2);
  color: var(--neon-green);
  border-color: rgba(0, 255, 0, 0.5);
}

.badge-gui {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.5);
}

/* ============================================
   SCRIPT CARDS
============================================ */
.script-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: visible;
  transition: all 0.3s;
}

.script-card:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-4px);
}

.script-card-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.script-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.script-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.script-card-description {
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.script-card-preview {
  position: relative;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  overflow: hidden;
}

.script-card-preview pre {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.script-card-preview-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
}

.script-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.script-card-actions .btn-primary {
  flex: 1;
}

/* ============================================
   SCRIPT VIEWER MODAL
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  background: rgba(10, 10, 15, 0.5);
}

.code-container {
  display: flex;
  font-family: var(--font-code);
  font-size: 0.875rem;
}

.line-numbers {
  padding-right: 1rem;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
}

.line-numbers div {
  line-height: 1.5rem;
}

.code-content {
  flex: 1;
  padding-left: 1rem;
  overflow-x: auto;
  color: var(--foreground);
}

.code-content div {
  line-height: 1.5rem;
}

/* Syntax highlighting */
.syntax-comment { color: rgba(0, 255, 0, 0.7); }
.syntax-keyword { color: var(--neon-cyan); }
.syntax-string { color: var(--neon-pink); }
.syntax-number { color: #fb923c; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.modal-footer-left {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.modal-footer-right {
  display: flex;
  gap: 0.5rem;
}

/* ============================================
   SCRIPTS SECTION
============================================ */
.scripts-section {
  padding: 4rem 0 6rem;
}

.scripts-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.scripts-section-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .scripts-section-header h2 {
    font-size: 3rem;
  }
}

.scripts-section-header p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.scripts-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.scripts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .scripts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .scripts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scripts-count {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.no-results {
  text-align: center;
  padding: 4rem 1rem;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.no-results p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-content h2 {
    font-size: 3rem;
  }
}

.about-content p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 26, 0.5);
}

.footer-scanlines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(to top, transparent 50%, rgba(0, 255, 255, 0.02) 50%);
  background-size: 100% 4px;
}

.footer-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 28rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-right {
    align-items: flex-end;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--muted);
  transition: all 0.2s;
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links a.youtube:hover { color: #ef4444; }
.social-links a.discord:hover { color: #818cf8; }
.social-links a.twitter:hover { color: #38bdf8; }

.social-links svg {
  width: 24px;
  height: 24px;
}

.footer-credit {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-credit svg {
  width: 16px;
  height: 16px;
  color: var(--neon-pink);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  animation: text-glow 3s ease-in-out infinite;
}

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--neon-cyan);
  border-radius: 0.375rem;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  animation: fadeIn 0.3s ease-out;
}

.toast.error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
============================================ */
.wp-block-post-content {
  max-width: 100%;
}

.entry-content {
  max-width: 100%;
}

/* Override WordPress defaults */
.site-main {
  padding-top: 0;
}

/* Script post type */
.single-script .entry-content {
  background: var(--card);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
}

/* ============================================
   UTILITY CLASSES
============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
