/*
Theme Name: Sidedeck
Theme URI: https://sidedeck.gg
Author: Sidedeck Team
Author URI: https://sidedeck.gg
Description: A modern, custom WordPress theme for Grand Archive TCG community. Built from scratch with custom animations and glassmorphism effects.
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: sidedeck
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog

This theme, like WordPress, is licensed under the GPL.
*/

/* ============= ROOT VARIABLES ============= */
:root {
  /* Color Palette - From Sidedeck Banner */
  --primary: #2a2d5a;
  --primary-light: #3d4178;
  --secondary: #1e2147;
  --accent: #ff69b4;
  --accent-light: #ffa4d5;
  --accent-secondary: #6b9fff;
  --accent-glow: rgba(255, 105, 180, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #c5c9e8;
  --bg-dark: #1a1d3f;
  --bg-card: rgba(255, 255, 255, 0.05);
  
  /* Gradients - Matching Banner */
  --gradient-primary: linear-gradient(135deg, #6b9fff 0%, #ff69b4 100%);
  --gradient-accent: linear-gradient(135deg, #ffa4d5 0%, #ff69b4 100%);
  --gradient-hero: linear-gradient(135deg, #ff69b4 0%, #6b9fff 50%, #2a2d5a 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(26, 29, 63, 0) 0%, rgba(26, 29, 63, 0.95) 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--accent-glow);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Container */
  --container-width: 1400px;
}

/* ============= GLOBAL RESETS ============= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  overflow-x: hidden;
  font-size: 16px;
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--accent-light);
}

/* ============= LAYOUT ============= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.site-header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-branding {
  display: inline-block;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
}

.site-title a {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

/* Color-breathing rainbow effect on logo hover */
.site-logo-link {
  background: var(--gradient-accent);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  display: inline-block;
}

.site-logo-link:hover {
  animation: rainbow-breath 3s ease-in-out infinite;
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.6));
}

@keyframes rainbow-breath {
  0% {
    background: linear-gradient(135deg, #ff69b4 0%, #6b9fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  14% {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  28% {
    background: linear-gradient(135deg, #6bcf7f 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  42% {
    background: linear-gradient(135deg, #4ecdc4 0%, #667eea 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  57% {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  71% {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  85% {
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
  100% {
    background: linear-gradient(135deg, #ff69b4 0%, #6b9fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.main-navigation {
  float: right;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--spacing-md);
}

.main-navigation li {
  display: inline-block;
}

.main-navigation a {
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: visible;
  font-weight: 500;
  text-shadow: 0 0 0 transparent;
  border: 2px solid transparent;
  box-shadow: 0 0 0 rgba(107, 159, 255, 0);
}

/* Remove the shimmer effect - commented out
.main-navigation a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(...);
  transition: left 0.6s ease;
}

.main-navigation a:hover::before {
  left: 100%;
}
*/

/* Default blue glow outline */
.main-navigation a {
  border: 2px solid rgba(107, 159, 255, 0.3);
  box-shadow: 0 0 10px rgba(107, 159, 255, 0.2),
              inset 0 0 10px rgba(107, 159, 255, 0.05);
}

/* Pink glow on hover */
.main-navigation a:hover {
  background: rgba(255, 105, 180, 0.05);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
  border: 2px solid rgba(255, 105, 180, 0.6);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5),
              0 0 30px rgba(255, 105, 180, 0.3),
              inset 0 0 15px rgba(255, 105, 180, 0.1);
}

/* Gradient border glow on hover (underline kept) */
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  /* Moved up slightly from edge */
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
  border-radius: 2px;
  /* Rounded ends to match button */
}

.main-navigation a:hover::after {
  width: calc(100% - 1.5rem);
  /* Shortened to stay within rounded borders */
}

/* Active/current page indicator */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4),
              0 0 20px rgba(255, 105, 180, 0.3);
  border: 2px solid rgba(255, 105, 180, 0.8);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  width: 100%;
  background: white;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1002;
  background: var(--gradient-accent);
  border: none;
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.6);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay (dark background) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============= HERO SECTION ============= */
/* ============= HERO BANNER (Top Section Only) ============= */
.hero-banner {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  margin-top: 90px;
  padding: 0 2rem;
  /* Added horizontal padding to prevent parallax cutoff */
}

.hero-banner-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed from 'cover' to 'contain' to display full image without cropping */
  object-position: center center;
  filter: brightness(0.8);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
  background: var(--bg-dark);
  /* Dark background in case image doesn't fill entire area */
}

/* Responsive banner positioning for different screen sizes */
@media (max-width: 1200px) {
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
    /* Changed to 'contain' for square mobile image */
    /* Ensures full image is visible without cropping */
    transform: none !important;
    background: var(--bg-dark);
    /* Dark background in case image doesn't fill width */
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 50vh;
    min-height: 350px;
  }
  
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
    /* Square image displays perfectly centered */
    transform: none !important;
  }
}

/* Hero Content Section (Below Banner) */
.hero-content-section {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg-dark);
}

.hero-content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease;
  text-shadow: 0 0 40px rgba(255, 105, 180, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 1s ease 0.2s backwards;
}

/* Old hero-section styles - REMOVE/REPLACE */
.hero-section {
  display: none; /* Hide old version */
}

/* Wind flowing effect overlays */
.wind-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  z-index: 2;
  animation: windFlow 8s linear infinite;
  pointer-events: none;
}

.wind-overlay-2 {
  z-index: 2;
  animation: windFlow 12s linear infinite 2s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 159, 255, 0.05) 25%,
    rgba(107, 159, 255, 0.12) 50%,
    rgba(107, 159, 255, 0.05) 75%,
    transparent 100%
  );
}

.wind-overlay-3 {
  z-index: 2;
  animation: windFlow 15s linear infinite 4s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 105, 180, 0.04) 25%,
    rgba(255, 105, 180, 0.1) 50%,
    rgba(255, 105, 180, 0.04) 75%,
    transparent 100%
  );
}

@keyframes windFlow {
  0% {
    left: -100%;
    transform: skewX(-10deg);
  }
  100% {
    left: 100%;
    transform: skewX(-10deg);
  }
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  transform: translateY(-3px) scale(1.05);
  color: white;
}

/* ============= SECTIONS ============= */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  line-height: 1.7;
}

/* ============= CARDS ============= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.card:hover::before {
  opacity: 0.1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.3);
}

.card * {
  position: relative;
  z-index: 1;
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--primary);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-xl);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  font-size: 1.5rem;
}

.footer-social a {
  transition: transform var(--transition-normal);
}

.footer-social a:hover {
  transform: scale(1.2);
}

/* ============= ANIMATIONS ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ============= SECTION TRANSITIONS ============= */
/* Smooth gradient transitions between sections */
.section {
  position: relative;
}

/* Gradient fade to next section */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
  pointer-events: none;
}

/* For sections with background colors, blend into next */
.section[style*="background: var(--primary)"]::after,
.section[style*="background: var(--bg-dark)"]::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 26, 46, 0.3) 50%,
    rgba(26, 26, 46, 0.7) 100%
  );
}

/* For gradient backgrounds, subtle blend */
.section[style*="gradient"]::after {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Hero content to next section smooth blend */
.hero-content-section::after {
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 26, 46, 0.2) 40%,
    rgba(26, 26, 46, 0.5) 70%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

/* Category header blend */
.category-header::after {
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* ============= RESPONSIVE - MOBILE FIRST ============= */

/* Tablet and smaller */
@media (max-width: 1024px) {
  :root {
    --spacing-sm: 0.875rem;
    --spacing-md: 1.75rem;
    --spacing-lg: 3.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .hero-content-section {
    padding: 4rem 1.5rem;
  }
  
  .section {
    padding: 3.5rem 1.5rem;
  }
}

/* Mobile - Primary focus for optimization */
@media (max-width: 768px) {
  /* Base adjustments */
  body {
    font-size: 15px;
  }
  
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
  }
  
  /* Header - Mobile friendly */
  .site-header {
    padding: 0.875rem 0;
  }
  
  .site-header .container {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .site-branding {
    display: block;
    width: auto;
    text-align: left;
    flex: 1;
  }
  
  .site-title {
    font-size: 1.3rem;
  }
  
  /* Show hamburger menu on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-overlay {
    display: block;
  }
  
  /* Slide-in navigation from right */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1001;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  
  .main-navigation li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-navigation li:last-child {
    border-bottom: none;
  }
  
  .main-navigation a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: 0;
    text-align: left;
    transition: all var(--transition-fast);
  }
  
  .main-navigation a:hover,
  .main-navigation a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    padding-left: 1.75rem;
  }
  
  /* Hero Banner - Mobile optimized */
  .hero-banner {
    height: 45vh;
    min-height: 280px;
    margin-top: 70px;
  }
  
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
    /* Square mobile image centered perfectly */
  }
  
  .hero-content-section {
    padding: 3rem 1.25rem;
  }
  
  .hero-content-section .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  /* Buttons - Touch friendly */
  .btn {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    min-height: 48px; /* Recommended touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn i {
    margin-right: 0.5rem;
  }
  
  /* Discord CTA - Mobile stack */
  .discord-logo-link img {
    max-width: 280px !important;
    margin: 0 auto;
    display: block;
  }
  
  .discord-cta-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .discord-cta-grid > div {
    text-align: center !important;
  }
  
  .discord-cta-section h2 {
    font-size: 1.75rem !important;
  }
  
  .discord-cta-section p {
    font-size: 1rem !important;
  }
  
  /* Cards - Single column, optimized spacing */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  /* Sections - Better mobile spacing */
  .section {
    padding: 2.5rem 1rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  /* Category Page - Mobile optimized */
  .category-header {
    padding: 5rem 1.25rem 3rem;
  }
  
  .category-icon {
    font-size: 3rem;
  }
  
  .category-title {
    font-size: clamp(2rem, 5vw, 2.5rem) !important;
  }
  
  .category-description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .category-meta {
    gap: 1rem;
  }
  
  /* Post Cards - Mobile friendly */
  .post-card {
    margin-bottom: 0;
  }
  
  .post-thumbnail {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }
  
  .post-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .post-title {
    font-size: 1.3rem;
    line-height: 1.4;
  }
  
  .post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .read-more {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
  }
  
  /* Single Post - Mobile reading experience */
  .single-post .post-header {
    padding: 5rem 1.25rem 2.5rem;
  }
  
  .single-post .post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    margin-bottom: 1.5rem;
  }
  
  .single-post .post-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .post-featured-image {
    max-height: 400px;
    margin-bottom: 2rem;
  }
  
  .post-content-wrapper {
    padding: 2rem 1rem;
  }
  
  .entry-content {
    font-size: 1rem;
    line-height: 1.75;
  }
  
  .entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .entry-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
  
  .entry-content img {
    margin: 1.5rem 0;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  
  .author-avatar img {
    width: 60px;
    height: 60px;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .post-navigation .card {
    padding: 1.25rem;
  }
  
  /* Pagination - Touch friendly */
  .pagination {
    margin-top: 2.5rem;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* Wind overlays - Lighter on mobile for performance */
  .wind-overlay {
    animation-duration: 10s;
  }
  
  .wind-overlay-2 {
    animation-duration: 14s;
  }
  
  .wind-overlay-3 {
    animation-duration: 18s;
  }
}

/* Small Mobile - Extra small phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .site-title {
    font-size: 1.2rem;
  }
  
  .main-navigation ul {
    gap: 0.5rem;
  }
  
  .main-navigation a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .hero-banner {
    height: 40vh;
    min-height: 250px;
  }
  
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
    /* Square image fits perfectly on small screens */
  }
  
  .hero-content-section {
    padding: 2.5rem 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .section {
    padding: 2rem 0.875rem;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .category-header {
    padding: 4rem 1rem 2.5rem;
  }
  
  .category-icon {
    font-size: 2.5rem;
  }
  
  .post-title {
    font-size: 1.2rem;
  }
  
  .entry-content {
    font-size: 0.95rem;
  }
}

/* Landscape mobile - Optimize for horizontal viewing */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-banner {
    height: 80vh;
    min-height: 400px;
  }
  
  .hero-banner-image {
    object-position: center center;
    object-fit: contain;
    /* Square image in landscape mode */
  }
  
  .hero-content-section {
    padding: 3rem 1.5rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card:hover,
  .btn:hover,
  .post-card:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  a, button, .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better tap highlights */
  * {
    -webkit-tap-highlight-color: rgba(255, 105, 180, 0.3);
  }
}

/* High DPI displays - Sharper text */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============= CATEGORY PAGE STYLES ============= */
.category-header {
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: 0;
}

.category-header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.category-icon {
  font-size: 4rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.category-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.category-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.category-meta span {
  color: var(--accent);
  font-weight: 600;
}

/* Post Cards in Grid */
.posts-grid {
  margin-top: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.3);
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  position: relative;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.post-meta i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.7;
}

.read-more {
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--gradient-accent);
  font-weight: 600;
}

/* ============= SINGLE POST STYLES ============= */
.single-post .post-header {
  padding: 6rem 2rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
}

.post-categories {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.single-post .post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  color: white;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.post-featured-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content-wrapper {
  padding: 3rem 2rem;
}

.post-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.entry-content a:hover {
  color: var(--accent-light);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.75rem;
}

.post-tags {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.post-tags i {
  color: var(--accent);
  font-size: 1.2rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 105, 180, 0.1);
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--accent);
}

.post-tags a:hover {
  background: var(--accent);
  color: white;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.author-name {
  margin-bottom: 0.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-description {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-navigation .card {
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.post-navigation .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 105, 180, 0.3);
}

.nav-label {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ============= DISCORD CTA SECTION ============= */
.discord-logo-link img {
  transition: all var(--transition-normal);
}

.discord-logo-link:hover img {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 15px 50px rgba(88, 101, 242, 0.5);
}

.discord-btn {
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.discord-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.discord-btn:hover::before {
  width: 300px;
  height: 300px;
}

.discord-btn:hover {
  background: #4752C4 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* ============= VIDEOS PAGE ============= */
.videos-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ============= RESOURCES PAGE ============= */
.resources-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.resource-card {
  text-align: center;
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.4);
}

.resource-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-normal);
}

.resource-card:hover .resource-icon {
  transform: scale(1.1) rotate(-5deg);
}

.resource-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.resource-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  min-height: 4.8em;
}

.resource-card .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile optimization for resources */
@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .resource-icon {
    font-size: 3rem;
  }
  
  .resource-title {
    font-size: 1.3rem;
  }
  
  .resource-description {
    min-height: auto;
  }
}

.video-card {
  overflow: hidden;
  transition: all var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 105, 180, 0.4);
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button i {
  margin-left: 4px;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 0, 0, 1);
}

.video-info {
  padding: 0.5rem;
}

.video-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile optimization for videos */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .video-title {
    font-size: 1.1rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
}

/* ============= CLICK EFFECTS ============= */
/* Pink click ripple effect */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.8) 0%, rgba(255, 105, 180, 0) 70%);
  pointer-events: none;
  z-index: 9999;
  animation: click-ripple-animation 0.6s ease-out;
}

@keyframes click-ripple-animation {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* Favicon rain effect */
.favicon-rain {
  position: fixed;
  top: -60px;
  width: 40px;
  height: 40px;
  background-image: url('https://sidedeck.gg/wp-content/uploads/2025/11/android-chrome-512x512-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9998;
  animation: favicon-fall linear;
}

@keyframes favicon-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0.8;
  }
}

/* Rebecca Black easter egg popup */
.rebecca-black-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  text-align: center;
  animation: neonPulse 0.5s ease-in-out infinite alternate, fadeIn 0.3s ease;
  pointer-events: none;
}

.rebecca-message {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, #9D00FF 0%, #00FF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(157, 0, 255, 0.8)) 
          drop-shadow(0 0 40px rgba(0, 255, 0, 0.8))
          drop-shadow(0 0 60px rgba(157, 0, 255, 0.6));
  /* Black text stroke for better readability */
  -webkit-text-stroke: 3px #000000;
  text-stroke: 3px #000000;
  paint-order: stroke fill;
}

@keyframes neonPulse {
  0% {
    filter: drop-shadow(0 0 20px rgba(157, 0, 255, 0.8)) 
            drop-shadow(0 0 40px rgba(0, 255, 0, 0.8))
            drop-shadow(0 0 60px rgba(157, 0, 255, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 30px rgba(157, 0, 255, 1)) 
            drop-shadow(0 0 60px rgba(0, 255, 0, 1))
            drop-shadow(0 0 90px rgba(157, 0, 255, 0.8));
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

/* Rebecca Black gif rain effect */
.rebecca-black-rain {
  position: fixed;
  top: -120px;
  width: 100px;
  height: 100px;
  background-image: url('https://sidedeck.gg/wp-content/uploads/2025/11/friday-rebecca-black.gif');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 9999;
  animation: rebecca-fall linear;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(157, 0, 255, 0.6),
              0 0 40px rgba(0, 255, 0, 0.4);
}

@keyframes rebecca-fall {
  0% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 150px)) rotate(calc(var(--rotation, 0deg) + 720deg));
    opacity: 0.9;
  }
}

/* ============= UTILITIES ============= */
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
