/*
Theme Name: VerseCode
Theme URI: https://example.com/versecode
Author: Dmytro + GPT-5 Thinking
Author URI: https://example.com
Description: An innovative, elegant theme for a developer and poet — blending verse and code. Features Poem & Project CPTs, "Poet/Dev" modes, animated hero, PWA, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: versecode
Tags: minimal, blog, portfolio, poetry, developer, pwa
*/

/* Basic reset + CSS variables */
:root {
  --bg: #0b0f14;
  --bg-soft: rgba(255,255,255,0.06);
  --text: #e7edf3;
  --muted: #a7b0ba;
  --accent: #7dd3fc; /* sky-300 */
  --accent-2: #a78bfa; /* violet-400 */
  --accent-3: #f472b6; /* pink-400 */
  --accent-4: #34d399; /* emerald-400 */
  --paper: #fdfaf2;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { margin:0; padding:0; }
body { 
  background: var(--bg); 
  color: var(--text); 
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji'; 
  line-height:1.65; 
  overflow-x: hidden;
  transition: var(--transition);
}

a { 
  color: var(--accent); 
  text-decoration: none; 
  transition: var(--transition);
  position: relative;
}
a:hover { 
  text-decoration: underline; 
  color: var(--accent-2);
}
a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}
a:hover::after {
  width: 100%;
}

.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 2rem; 
  position: relative;
}

.site-header { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:1rem; 
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, 0.8);
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.6s ease-out;
}

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

.brand { 
  display:flex; 
  align-items:center; 
  gap:.75rem; 
  font-weight:700; 
  letter-spacing:.4px;
  transition: var(--transition);
}
.brand:hover {
  transform: scale(1.02);
}

.brand svg {
  transition: var(--transition);
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.3));
}
.brand:hover svg {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(125, 211, 252, 0.5));
}

.mode-toggle button { 
  background: var(--bg-soft); 
  border: 1px solid rgba(255,255,255,.08); 
  padding:.6rem 1rem; 
  border-radius: 999px; 
  color: var(--text); 
  cursor:pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mode-toggle button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}
.mode-toggle button:hover::before {
  left: 100%;
}
.mode-toggle button:hover { 
  background: rgba(255,255,255,.12); 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero { 
  position: relative; 
  padding: 5rem 0 3rem; 
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 { 
  font-size: clamp(2.2rem, 2vw + 2rem, 4rem); 
  margin: 0 0 1rem; 
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(125, 211, 252, 0.3);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .subtitle { 
  color: var(--muted); 
  max-width: 70ch; 
  font-size: 1.1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .card { 
  background: var(--bg-soft); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius: var(--border-radius-lg); 
  padding: 1.25rem; 
  backdrop-filter: blur(6px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero .card:hover::before {
  opacity: 1;
}

.gradient-orb { 
  position:absolute; 
  inset:auto -10% -30% auto; 
  width: 360px; 
  height:360px; 
  filter: blur(60px); 
  background: radial-gradient(45% 45% at 50% 50%, var(--accent) 0%, transparent 60%), radial-gradient(35% 35%, var(--accent-2) 0%, transparent 60%); 
  opacity:.25; 
  pointer-events:none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Animated Background Elements */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(125, 211, 252, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(244, 114, 182, 0.05) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  25% { opacity: 0.5; transform: scale(1.1); }
  50% { opacity: 0.4; transform: scale(0.9); }
  75% { opacity: 0.6; transform: scale(1.05); }
}

/* Floating Leaves Animation */
.floating-leaves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--accent-4), var(--accent-3));
  border-radius: 0 100% 0 100%;
  opacity: 0.6;
  animation: leafFall linear infinite;
}

.leaf:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.leaf:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.leaf:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 12s; }
.leaf:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.leaf:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 16s; }
.leaf:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 14s; }
.leaf:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 19s; }
.leaf:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 17s; }
.leaf:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 13s; }

@keyframes leafFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Floating Snowflakes Animation */
.floating-snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.7;
  animation: snowFall linear infinite;
  user-select: none;
}

.snowflake:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 25s; }
.snowflake:nth-child(2) { left: 15%; animation-delay: 3s; animation-duration: 22s; }
.snowflake:nth-child(3) { left: 25%; animation-delay: 6s; animation-duration: 28s; }
.snowflake:nth-child(4) { left: 35%; animation-delay: 9s; animation-duration: 24s; }
.snowflake:nth-child(5) { left: 45%; animation-delay: 12s; animation-duration: 26s; }
.snowflake:nth-child(6) { left: 55%; animation-delay: 15s; animation-duration: 23s; }
.snowflake:nth-child(7) { left: 65%; animation-delay: 18s; animation-duration: 27s; }
.snowflake:nth-child(8) { left: 75%; animation-delay: 21s; animation-duration: 25s; }
.snowflake:nth-child(9) { left: 85%; animation-delay: 24s; animation-duration: 29s; }
.snowflake:nth-child(10) { left: 95%; animation-delay: 27s; animation-duration: 21s; }

@keyframes snowFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Cursor Following Shadows */
.cursor-shadow {
  position: fixed;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
  mix-blend-mode: screen;
}

.cursor-shadow-2 {
  position: fixed;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease-out;
  mix-blend-mode: screen;
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 30s; }
.particle:nth-child(2) { left: 20%; animation-delay: 5s; animation-duration: 35s; }
.particle:nth-child(3) { left: 30%; animation-delay: 10s; animation-duration: 25s; }
.particle:nth-child(4) { left: 40%; animation-delay: 15s; animation-duration: 40s; }
.particle:nth-child(5) { left: 50%; animation-delay: 20s; animation-duration: 28s; }
.particle:nth-child(6) { left: 60%; animation-delay: 25s; animation-duration: 32s; }
.particle:nth-child(7) { left: 70%; animation-delay: 30s; animation-duration: 38s; }
.particle:nth-child(8) { left: 80%; animation-delay: 35s; animation-duration: 26s; }
.particle:nth-child(9) { left: 90%; animation-delay: 40s; animation-duration: 34s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  50% {
    transform: translateY(50vh) translateX(-20px) scale(1.2);
  }
  90% {
    opacity: 0.6;
    transform: translateY(10vh) translateX(15px) scale(1);
  }
  100% {
    transform: translateY(-10vh) translateX(0px) scale(0);
    opacity: 0;
  }
}

/* Mode-specific animations */
.poet-mode .leaf {
  background: linear-gradient(45deg, #8b5a3c, #d4a574);
}

.poet-mode .snowflake {
  color: #8b5a3c;
}

.poet-mode .particle {
  background: #8b5a3c;
}

/* Seasonal Animation Modes */
.spring-mode .leaf {
  background: linear-gradient(45deg, #4ade80, #22c55e);
}

.spring-mode .snowflake {
  display: none;
}

.spring-mode .particle {
  background: #4ade80;
}

.summer-mode .leaf {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
}

.summer-mode .snowflake {
  display: none;
}

.summer-mode .particle {
  background: #fbbf24;
}

.autumn-mode .leaf {
  background: linear-gradient(45deg, #f97316, #ea580c);
}

.autumn-mode .snowflake {
  display: none;
}

.autumn-mode .particle {
  background: #f97316;
}

.winter-mode .leaf {
  display: none;
}

.winter-mode .snowflake {
  display: block;
}

.winter-mode .particle {
  background: #e2e8f0;
}

/* Animation controls */
.animations-disabled .leaf,
.animations-disabled .snowflake,
.animations-disabled .particle,
.animations-disabled .cursor-shadow,
.animations-disabled .cursor-shadow-2 {
  animation: none !important;
  opacity: 0 !important;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .leaf,
  .snowflake,
  .particle,
  .cursor-shadow,
  .cursor-shadow-2 {
    animation: none !important;
    opacity: 0 !important;
  }
  
  .hero::before {
    animation: none !important;
  }
  
  .gradient-orb {
    animation: none !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .floating-leaves,
  .floating-snowflakes,
  .floating-particles {
    display: none;
  }
  
  .cursor-shadow,
  .cursor-shadow-2 {
    display: none;
  }
}

.grid { 
  display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  gap:1.25rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card { 
  background: var(--bg-soft); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius: var(--border-radius-lg); 
  padding:1.5rem; 
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.05), rgba(167, 139, 250, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover { 
  transform: translateY(-8px) scale(1.02); 
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: var(--shadow-xl);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

.card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
}

footer.site-footer { 
  opacity:.8; 
  font-size:.95rem; 
  border-top:1px solid rgba(255,255,255,.08); 
  padding:2rem 0; 
  margin-top:3rem;
  background: linear-gradient(135deg, rgba(11, 15, 20, 0.9), rgba(11, 15, 20, 0.7));
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer.site-footer h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

footer.site-footer .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer .menu li {
  margin-bottom: 0.5rem;
}

footer.site-footer .menu a {
  color: var(--muted);
  transition: var(--transition);
}

footer.site-footer .menu a:hover {
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  min-width: 40px;
}

.pagination a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* Poet mode (paper) */
.poet-mode body, body.poet-mode {
  --bg: var(--paper);
  --text: #222;
  --muted: #555;
  --bg-soft: rgba(0,0,0,0.04);
}
.poet-mode .card, body.poet-mode .card { background: var(--bg-soft); border-color: rgba(0,0,0,.08); }

.poem-content { font-family: 'Literata', Georgia, 'Times New Roman', serif; font-size: 1.15rem; }
.poem-content p { margin: .2rem 0; }
.poem-meta { font-size:.95rem; color: var(--muted); }

pre code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }

/* Reading view overlay */
.reading-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); display:none; align-items:center; justify-content:center; padding:2rem; z-index: 9999; }
.reading-overlay.active { display:flex; }
.reading-panel { background: var(--paper); color:#222; max-width: 900px; width:100%; border-radius: 1rem; padding:2rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.reading-panel h2 { margin-top:0; }
.reading-close { position:absolute; top:1rem; right:1rem; background:#fff; color:#111; border:none; padding:.4rem .6rem; border-radius:.5rem; cursor:pointer; }

/* Code-esque VSCode block style */
.code-block { background: #0f172a; color:#e2e8f0; border-radius:.75rem; padding:1rem; border:1px solid rgba(255,255,255,.06); overflow:auto; }

/* Buttons */
.btn { 
  display:inline-flex; 
  align-items:center; 
  gap:.5rem; 
  border:1px solid rgba(255,255,255,.12); 
  padding:.6rem 1rem; 
  border-radius:var(--border-radius); 
  color:var(--text); 
  background:transparent; 
  cursor:pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: var(--bg);
}

/* Search */
.search-container {
  position: relative;
  margin: 1rem 0;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-result {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: var(--transition);
}

.search-result:hover {
  background: var(--bg-soft);
}

.search-result:last-child {
  border-bottom: none;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-2px) scale(1.1);
}

.scroll-to-top.visible {
  display: flex;
}

/* Dark/Light Theme Toggle */
.theme-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  transition: var(--transition);
}

.theme-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--accent);
  border-radius: 50%;
  transition: var(--transition);
}

input:checked + .theme-slider {
  background: var(--accent);
}

input:checked + .theme-slider:before {
  transform: translateX(30px);
  background: var(--bg);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.animation-toggle button {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.animation-toggle button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,.05);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Content Items */
.content-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.content-item:last-child {
  border-bottom: none;
}

.content-item h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.content-item h4 a {
  color: var(--text);
  transition: var(--transition);
}

.content-item h4 a:hover {
  color: var(--accent);
}

/* Animation for stats counting */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-number.animate {
  animation: countUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .site-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-controls {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .search-container {
    width: 100%;
    max-width: 300px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .quick-links {
    align-items: center;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}
*/
