/* ============================================
   STYKALABRIA - 7 DISTINCT THEMES
   Theme switcher with CSS custom properties
   ============================================ */

/* ===== BASE THEME VARIABLES ===== */
:root {
  /* Default: Cyber */
  --primary: #00ffaa;
  --primary-dark: #00cc88;
  --primary-light: #66ffcc;
  --secondary: #ff5aa0;
  --secondary-dark: #cc4480;
  --accent: #00d4ff;
  --accent-warm: #ffcc00;
  --bg-primary: #030508;
  --bg-secondary: #050c10;
  --bg-tertiary: #0a151a;
  --text-primary: #e8f0e8;
  --text-secondary: #c8e6d0;
  --text-muted: #8a9a88;
  --text-dim: #5a7a68;
  --border-color: rgba(0, 255, 170, 0.2);
  --border-hover: rgba(0, 255, 170, 0.4);
  --glow-primary: rgba(0, 255, 170, 0.4);
  --glow-secondary: rgba(255, 90, 160, 0.4);
  --cursor-color: #00ffaa;
  --cursor-glow: rgba(0, 255, 170, 0.4);
  --gradient-hero: linear-gradient(135deg, #00ffaa 0%, #00d4ff 100%);
  --gradient-card: linear-gradient(135deg, #0a151a 0%, #050c10 100%);
  --grain-opacity: 0.02;
  --scanline-opacity: 0.4;
  
  /* Layout variables */
  --card-border-radius: 12px;
  --card-padding: 1.75rem;
  --section-spacing: 5rem;
  --animation-speed: 1;
  --font-weight-heading: 900;
  --letter-spacing-heading: 0.1em;
}

/* ===== THEME 1: CYBER (Default) ===== */
[data-theme="cyber"] {
  --primary: #00ffaa;
  --primary-dark: #00cc88;
  --primary-light: #66ffcc;
  --secondary: #ff5aa0;
  --secondary-dark: #cc4480;
  --accent: #00d4ff;
  --accent-warm: #ffcc00;
  --bg-primary: #030508;
  --bg-secondary: #050c10;
  --bg-tertiary: #0a151a;
  --text-primary: #e8f0e8;
  --text-secondary: #c8e6d0;
  --text-muted: #8a9a88;
  --text-dim: #5a7a68;
  --border-color: rgba(0, 255, 170, 0.2);
  --border-hover: rgba(0, 255, 170, 0.4);
  --glow-primary: rgba(0, 255, 170, 0.4);
  --glow-secondary: rgba(255, 90, 160, 0.4);
  --cursor-color: #00ffaa;
  --cursor-glow: rgba(0, 255, 170, 0.4);
  --gradient-hero: linear-gradient(135deg, #00ffaa 0%, #00d4ff 100%);
  --grain-opacity: 0.02;
  --scanline-opacity: 0.4;
  
  /* Cyber layout */
  --card-border-radius: 12px;
  --card-padding: 1.75rem;
  --section-spacing: 5rem;
  --animation-speed: 1;
}

/* Cyber-specific effects */
[data-theme="cyber"] .card::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

[data-theme="cyber"] .glitch::before {
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

[data-theme="cyber"] .glitch::after {
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

/* ===== THEME 2: SUNSET (Warm & Organic) ===== */
[data-theme="sunset"] {
  --primary: #ff6b6b;
  --primary-dark: #ee5a5a;
  --primary-light: #ff9999;
  --secondary: #ffa502;
  --secondary-dark: #e69500;
  --accent: #ff6348;
  --accent-warm: #ff4757;
  --bg-primary: #1a0f0f;
  --bg-secondary: #241515;
  --bg-tertiary: #2d1a1a;
  --text-primary: #fff5f5;
  --text-secondary: #ffe0e0;
  --text-muted: #d4a5a5;
  --text-dim: #a67c7c;
  --border-color: rgba(255, 107, 107, 0.2);
  --border-hover: rgba(255, 107, 107, 0.4);
  --glow-primary: rgba(255, 107, 107, 0.4);
  --glow-secondary: rgba(255, 165, 2, 0.4);
  --cursor-color: #ff6b6b;
  --cursor-glow: rgba(255, 107, 107, 0.4);
  --gradient-hero: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
  --grain-opacity: 0.015;
  --scanline-opacity: 0.3;
  
  /* Sunset layout - rounded, soft */
  --card-border-radius: 24px;
  --card-padding: 2rem;
  --section-spacing: 4rem;
  --animation-speed: 1.2;
}

/* Sunset-specific effects */
[data-theme="sunset"] .card {
  border-radius: var(--card-border-radius);
  border: none;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.1);
}

[data-theme="sunset"] .card::before {
  display: none;
}

[data-theme="sunset"] .card:hover {
  box-shadow: 0 8px 40px rgba(255, 107, 107, 0.2);
  transform: translateY(-8px) scale(1.02);
}

[data-theme="sunset"] .hero-title em {
  background: linear-gradient(90deg, #ff6b6b, #ffa502);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="sunset"] .btn {
  border-radius: 50px;
}

[data-theme="sunset"] .glitch::before,
[data-theme="sunset"] .glitch::after {
  display: none;
}

[data-theme="sunset"] .manifesto-pillar {
  border-radius: 30px;
}

[data-theme="sunset"] .sidebar {
  border-right: none;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

/* ===== THEME 3: OCEAN (Fluid & Deep) ===== */
[data-theme="ocean"] {
  --primary: #48dbfb;
  --primary-dark: #2bcbc9;
  --primary-light: #a8f0ff;
  --secondary: #54a0ff;
  --secondary-dark: #2e86de;
  --accent: #00d2d3;
  --accent-warm: #5f27cd;
  --bg-primary: #05141a;
  --bg-secondary: #0a1f2e;
  --bg-tertiary: #0f2d42;
  --text-primary: #e0f7ff;
  --text-secondary: #b8e6f5;
  --text-muted: #7fb3c9;
  --text-dim: #5a8fa8;
  --border-color: rgba(72, 219, 251, 0.2);
  --border-hover: rgba(72, 219, 251, 0.4);
  --glow-primary: rgba(72, 219, 251, 0.4);
  --glow-secondary: rgba(84, 160, 255, 0.4);
  --cursor-color: #48dbfb;
  --cursor-glow: rgba(72, 219, 251, 0.4);
  --gradient-hero: linear-gradient(135deg, #48dbfb 0%, #54a0ff 100%);
  --grain-opacity: 0.02;
  --scanline-opacity: 0.35;
  
  /* Ocean layout - fluid, wavy */
  --card-border-radius: 16px 0 16px 0;
  --card-padding: 2rem;
  --section-spacing: 6rem;
  --animation-speed: 0.8;
}

/* Ocean-specific effects */
[data-theme="ocean"] .card {
  border-radius: var(--card-border-radius);
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), transparent) 1;
}

[data-theme="ocean"] .card::before {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
}

[data-theme="ocean"] .hero-title em {
  background: linear-gradient(90deg, #48dbfb, #54a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="ocean"] .btn {
  border-radius: 8px 0 8px 0;
}

[data-theme="ocean"] .manifesto-pillar {
  border-radius: 20px 0 20px 0;
}

[data-theme="ocean"] .activity-card {
  position: relative;
  overflow: hidden;
}

[data-theme="ocean"] .activity-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="ocean"] .activity-card:hover::after {
  opacity: 1;
}

/* ===== THEME 4: FOREST (Natural & Organic) ===== */
[data-theme="forest"] {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #7bed9f;
  --secondary: #a29bfe;
  --secondary-dark: #6c5ce7;
  --accent: #ffeaa7;
  --accent-warm: #fdcb6e;
  --bg-primary: #081a0d;
  --bg-secondary: #0d2414;
  --bg-tertiary: #142e1d;
  --text-primary: #e8f5e9;
  --text-secondary: #c8e6c9;
  --text-muted: #81c784;
  --text-dim: #66bb6a;
  --border-color: rgba(46, 204, 113, 0.2);
  --border-hover: rgba(46, 204, 113, 0.4);
  --glow-primary: rgba(46, 204, 113, 0.4);
  --glow-secondary: rgba(162, 155, 254, 0.4);
  --cursor-color: #2ecc71;
  --cursor-glow: rgba(46, 204, 113, 0.4);
  --gradient-hero: linear-gradient(135deg, #2ecc71 0%, #a29bfe 100%);
  --grain-opacity: 0.025;
  --scanline-opacity: 0.3;
  
  /* Forest layout - organic, leaf-like */
  --card-border-radius: 0 20px 0 20px;
  --card-padding: 2rem;
  --section-spacing: 5rem;
  --animation-speed: 1.1;
}

/* Forest-specific effects */
[data-theme="forest"] .card {
  border-radius: var(--card-border-radius);
  border: 2px solid var(--border-color);
}

[data-theme="forest"] .card::before {
  display: none;
}

[data-theme="forest"] .card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--glow-primary);
}

[data-theme="forest"] .hero-title em {
  background: linear-gradient(90deg, #2ecc71, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="forest"] .btn {
  border-radius: 0 15px 0 15px;
}

[data-theme="forest"] .manifesto-pillar {
  border-radius: 0 25px 0 25px;
  border: 2px solid var(--border-color);
}

[data-theme="forest"] .sidebar-nav a {
  border-left: none;
  border-radius: 0 20px 20px 0;
}

[data-theme="forest"] .sidebar-nav a:hover,
[data-theme="forest"] .sidebar-nav a.active {
  border-left: none;
  background: rgba(46, 204, 113, 0.1);
}

/* ===== THEME 5: MIDNIGHT (Elegant & Mysterious) ===== */
[data-theme="midnight"] {
  --primary: #d980fa;
  --primary-dark: #b93cf6;
  --primary-light: #e6b3ff;
  --secondary: #ff6b9d;
  --secondary-dark: #e0558b;
  --accent: #c8a2c8;
  --accent-warm: #f9ca24;
  --bg-primary: #0a0612;
  --bg-secondary: #140a1f;
  --bg-tertiary: #1e0f2e;
  --text-primary: #f3e5f5;
  --text-secondary: #e1bee7;
  --text-muted: #ce93d8;
  --text-dim: #ba68c8;
  --border-color: rgba(217, 128, 250, 0.2);
  --border-hover: rgba(217, 128, 250, 0.4);
  --glow-primary: rgba(217, 128, 250, 0.4);
  --glow-secondary: rgba(255, 107, 157, 0.4);
  --cursor-color: #d980fa;
  --cursor-glow: rgba(217, 128, 250, 0.4);
  --gradient-hero: linear-gradient(135deg, #d980fa 0%, #ff6b9d 100%);
  --grain-opacity: 0.02;
  --scanline-opacity: 0.4;
  
  /* Midnight layout - elegant, diamond cuts */
  --card-border-radius: 4px;
  --card-padding: 2rem;
  --section-spacing: 5rem;
  --animation-speed: 0.9;
}

/* Midnight-specific effects */
[data-theme="midnight"] .card {
  border-radius: var(--card-border-radius);
  clip-path: polygon(
    0 10px, 10px 0,
    calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px)
  );
}

[data-theme="midnight"] .card::before {
  display: none;
}

[data-theme="midnight"] .card:hover {
  filter: drop-shadow(0 0 20px var(--glow-primary));
}

[data-theme="midnight"] .hero-title em {
  background: linear-gradient(90deg, #d980fa, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="midnight"] .btn {
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  border: none;
}

[data-theme="midnight"] .manifesto-pillar {
  clip-path: polygon(
    0 15px, 15px 0,
    calc(100% - 15px) 0, 100% 15px,
    100% calc(100% - 15px), calc(100% - 15px) 100%,
    15px 100%, 0 calc(100% - 15px)
  );
}

[data-theme="midnight"] .sidebar {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 0 100%);
}

/* ===== THEME 6: MONOCHROME (Minimal & Sharp) ===== */
[data-theme="monochrome"] {
  --primary: #ffffff;
  --primary-dark: #cccccc;
  --primary-light: #f5f5f5;
  --secondary: #888888;
  --secondary-dark: #666666;
  --accent: #aaaaaa;
  --accent-warm: #cccccc;
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #999999;
  --text-dim: #666666;
  --border-color: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.3);
  --glow-primary: rgba(255, 255, 255, 0.3);
  --glow-secondary: rgba(136, 136, 136, 0.3);
  --cursor-color: #ffffff;
  --cursor-glow: rgba(255, 255, 255, 0.3);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  --grain-opacity: 0.03;
  --scanline-opacity: 0.5;
  
  /* Monochrome layout - sharp, brutalist */
  --card-border-radius: 0;
  --card-padding: 1.5rem;
  --section-spacing: 4rem;
  --animation-speed: 0.7;
}

/* Monochrome-specific effects */
[data-theme="monochrome"] .card {
  border-radius: 0;
  border: 1px solid var(--border-color);
  background: transparent;
}

[data-theme="monochrome"] .card::before {
  display: none;
}

[data-theme="monochrome"] .card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--primary);
}

[data-theme="monochrome"] .hero-title em {
  background: linear-gradient(90deg, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="monochrome"] .btn {
  border-radius: 0;
  text-transform: lowercase;
  letter-spacing: 0.2em;
}

[data-theme="monochrome"] .btn::before {
  display: none;
}

[data-theme="monochrome"] .btn:hover {
  background: var(--primary);
  color: var(--bg-primary);
}

[data-theme="monochrome"] .manifesto-pillar {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--border-color);
}

[data-theme="monochrome"] .sidebar {
  border-right: 1px solid var(--border-color);
}

[data-theme="monochrome"] .glitch::before,
[data-theme="monochrome"] .glitch::after {
  display: none;
}

/* ===== THEME 7: GOLDEN (Luxurious & Opulent) ===== */
[data-theme="golden"] {
  --primary: #f1c40f;
  --primary-dark: #d4ac0d;
  --primary-light: #f9e79f;
  --secondary: #e67e22;
  --secondary-dark: #ca6f1e;
  --accent: #f39c12;
  --accent-warm: #e74c3c;
  --bg-primary: #1a1205;
  --bg-secondary: #241a08;
  --bg-tertiary: #2e220c;
  --text-primary: #fef9e7;
  --text-secondary: #fcf3cf;
  --text-muted: #d4ac0d;
  --text-dim: #b7950b;
  --border-color: rgba(241, 196, 15, 0.2);
  --border-hover: rgba(241, 196, 15, 0.4);
  --glow-primary: rgba(241, 196, 15, 0.4);
  --glow-secondary: rgba(230, 126, 34, 0.4);
  --cursor-color: #f1c40f;
  --cursor-glow: rgba(241, 196, 15, 0.4);
  --gradient-hero: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
  --grain-opacity: 0.02;
  --scanline-opacity: 0.35;
  
  /* Golden layout - ornate, decorative */
  --card-border-radius: 8px;
  --card-padding: 2rem;
  --section-spacing: 5rem;
  --animation-speed: 1.3;
}

/* Golden-specific effects */
[data-theme="golden"] .card {
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), var(--secondary)) 1;
  position: relative;
}

[data-theme="golden"] .card::before {
  display: none;
}

[data-theme="golden"] .card::after {
  content: '✦';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.5;
}

[data-theme="golden"] .card:hover {
  box-shadow: 0 0 40px var(--glow-primary), inset 0 0 20px rgba(241, 196, 15, 0.1);
}

[data-theme="golden"] .hero-title em {
  background: linear-gradient(90deg, #f1c40f, #e67e22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="golden"] .btn {
  border: 2px solid var(--primary);
  position: relative;
}

[data-theme="golden"] .btn::before {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

[data-theme="golden"] .manifesto-pillar {
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--primary), transparent) 1;
  position: relative;
}

[data-theme="golden"] .manifesto-pillar::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

[data-theme="golden"] .section-title {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

[data-theme="golden"] .sidebar {
  border-right: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--primary), transparent) 1;
}

/* ===== THEME SWITCHER WIDGET ===== */
.theme-switcher {
  position: fixed;
  top: 5rem;
  left: 2rem;
  z-index: 450;
  font-family: 'Share Tech Mono', monospace;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  cursor: none;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--glow-primary);
}

.theme-icon {
  font-size: 1.2rem;
}

.theme-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.theme-switcher:hover .theme-dropdown,
.theme-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: none;
  transition: all 0.2s ease;
}

.theme-option:hover,
.theme-option.active {
  background: var(--bg-tertiary);
}

.theme-option.active {
  border: 1px solid var(--primary);
}

.theme-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.theme-option[data-theme="cyber"] .theme-color-preview {
  background: linear-gradient(135deg, #00ffaa 0%, #ff5aa0 100%);
}

.theme-option[data-theme="sunset"] .theme-color-preview {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
}

.theme-option[data-theme="ocean"] .theme-color-preview {
  background: linear-gradient(135deg, #48dbfb 0%, #54a0ff 100%);
}

.theme-option[data-theme="forest"] .theme-color-preview {
  background: linear-gradient(135deg, #2ecc71 0%, #a29bfe 100%);
}

.theme-option[data-theme="midnight"] .theme-color-preview {
  background: linear-gradient(135deg, #d980fa 0%, #ff6b9d 100%);
}

.theme-option[data-theme="monochrome"] .theme-color-preview {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
}

.theme-option[data-theme="golden"] .theme-color-preview {
  background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
}

.theme-info {
  display: flex;
  flex-direction: column;
}

.theme-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.theme-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== MOBILE THEME SWITCHER ===== */
@media (max-width: 1024px) {
  .theme-switcher {
    top: 6rem;
    left: 1rem;
  }
  
  .theme-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 768px) {
  .theme-switcher {
    position: relative;
    top: auto;
    left: auto;
    margin: 1rem;
  }
  
  .theme-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== THEME TRANSITIONS ===== */
body,
.main-wrapper,
.sidebar,
.card,
.btn,
.terminal,
.code-post,
.repo-card,
.member-card,
.hex,
.lang-chip,
.form-chip {
  transition: background-color 0.5s ease, 
              border-color 0.5s ease, 
              color 0.5s ease,
              box-shadow 0.5s ease,
              border-radius 0.5s ease,
              clip-path 0.5s ease;
}

#cursor-outer,
#cursor-inner {
  transition: border-color 0.5s ease, 
              background-color 0.5s ease,
              box-shadow 0.5s ease;
}

/* Theme-specific animations */
[data-theme="sunset"] .reveal {
  animation-duration: calc(0.8s * var(--animation-speed));
}

[data-theme="ocean"] .marquee-inner {
  animation-duration: 40s;
}

[data-theme="forest"] .card:hover {
  transition-duration: calc(0.4s * var(--animation-speed));
}

[data-theme="midnight"] .glitch {
  animation: none;
}

[data-theme="golden"] .activity-card {
  transition: all calc(0.4s * var(--animation-speed)) ease;
}
