/*
Theme Name: Dial-Up Dream
Theme URI: https://static-curations.com/dial-up-dream
Author: Antigravity AI
Author URI: https://google.com
Description: A high-fidelity, 90s-inspired dark mode theme with Nickelodeon aesthetics and CRT effects.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dial-up-dream
*/

:root {
  /* Deep Obsidian Palette from Retro Aggregator */
  --surface: #0f0f12;
  --surface-container: #1a1a1f;
  --surface-container-high: #25252b;
  --surface-container-highest: #303038;
  
  --primary-fixed: #b2ff2e; 
  --primary-container: #b2ff2e;
  --on-primary-container: #0d1a00;
  --on-primary-fixed: #0d1a00;
  
  --secondary-container: #ff6d1a; 
  --secondary-fixed-dim: #ff9d66;
  
  --tertiary: #ffffff;
  --on-tertiary-container: #9d5bff;
  --tertiary-container: #2d1052;
  
  --on-surface: #f1f1f0;
  --on-surface-variant: #b0b8a5;
  --on-background: #f1f1f0;
  
  --rounded: 0.75rem;
  --rounded-lg: 1.5rem;
  --rounded-xl: 2.5rem;
  --rounded-full: 9999px;
  
  --font-headline: 'Fredoka One', cursive;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Fonts from Website Design */
  --font-retro: 'Bangers', display;
  --font-creepy: 'Creepster', display;
  --font-outfit: 'Outfit', sans-serif;

  /* Colors from Website Design (for specific highlights) */
  --nick-orange: #FF6600;
  --nick-slime: #39FF14;
  --nick-purple: #8A2BE2;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-out-expo);
  --transition-fast: all 0.2s var(--ease-out-expo);

  --header-height: 6rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--surface);
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--on-background);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Material Icons */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
}
.icon-filled { font-variation-settings: 'FILL' 1; }

/* Typography */
.headline-xl { font-family: var(--font-headline); font-size: clamp(2.5rem, 8vw, 4rem); text-transform: uppercase; }
.headline-lg { font-family: var(--font-headline); font-size: clamp(1.5rem, 5vw, 2.25rem); text-transform: uppercase; }
.label-sm { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.mono-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }

.vt-font-creepy { font-family: var(--font-creepy); letter-spacing: 2px; }

.text-primary { color: var(--primary-fixed); }
.text-orange { color: var(--secondary-container); }
.text-white { color: var(--tertiary); }
.text-on-surface-variant { color: var(--on-surface-variant); }

/* Logo Styles (from Website Design) */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.8;
  padding-top: 1rem;
  transition: transform 0.3s var(--ease-out-expo);
}

.logo-top {
  font-size: 4rem;
  color: var(--nick-slime);
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 #000;
  transform: rotate(-4deg);
  z-index: 1;
  position: relative;
}

.logo-bottom {
  font-size: 3rem;
  background: linear-gradient(to right, var(--nick-orange), var(--nick-purple));
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #000;
  filter: drop-shadow(4px 4px 0 #000);
  transform: rotate(3deg) translateY(-5px);
  z-index: 2;
}

.hyphen {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 4px 4px 0 #000;
  -webkit-text-stroke: 1px #000;
  display: inline-block;
  margin: 0 0.1rem;
}

@media (max-width: 768px) {
  .logo-top { font-size: 2.5rem; -webkit-text-stroke: 1.5px #000; }
  .logo-bottom { font-size: 2rem; }
  .header { height: 5rem; }
}

.footer-logo {
  transform: scale(0.6);
  transform-origin: left center;
}

/* Header (from Retro Aggregator) */
.header {
  position: fixed;
  top: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2rem; height: var(--header-height);
  background: var(--nick-orange); /* Changed to Orange to match original slime design */
  border-bottom: none; /* Slime will handle the 'border' */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* THE SLIME DRIP FIX */
.header::after {
    content: '';
    position: absolute;
    bottom: -92px;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23FF6600'/%3E%3Cstop offset='35%25' stop-color='%2339FF14'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23FF6600'/%3E%3Cstop offset='35%25' stop-color='%2322AA00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,0 L1000,0 L1000,20 C 980,20 980,100 950,100 C 920,100 920,20 900,20 C 880,20 880,120 850,120 C 820,120 820,20 800,20 C 780,20 780,70 750,70 C 720,70 720,20 700,20 C 680,20 680,160 650,160 C 620,160 620,20 600,20 C 580,20 580,90 550,90 C 520,90 520,20 500,20 C 480,20 480,120 450,120 C 420,120 420,20 400,20 C 380,20 380,180 350,180 C 320,180 320,20 300,20 C 280,20 280,80 250,80 C 220,80 220,20 200,20 C 180,20 180,140 150,140 C 120,140 120,20 100,20 C 80,20 80,60 50,60 C 20,60 20,20 0,20 Z' fill='url(%23g2)'/%3E%3Cpath d='M0,0 L1000,0 L1000,20 C 980,20 980,150 950,150 C 920,150 920,20 900,20 C 880,20 880,80 850,80 C 820,80 820,20 800,20 C 780,20 780,180 750,180 C 720,180 720,20 700,20 C 680,20 680,60 650,60 C 620,60 620,20 600,20 C 580,20 580,140 550,140 C 520,140 520,20 500,20 C 480,20 480,200 450,200 C 420,200 420,20 400,20 C 380,20 380,50 350,50 C 320,50 320,20 300,20 C 280,20 280,160 250,160 C 220,160 220,20 200,20 C 180,20 180,90 150,90 C 120,90 120,20 100,20 C 80,20 80,130 50,130 C 20,130 20,20 0,20 Z' fill='url(%23g1)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 1000px 100%;
    pointer-events: none;
    z-index: -1;
}

/* Navigation Links (Updated for WordPress structure) */
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { list-style: none; display: block; }
.nav-links a { 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative; 
  text-decoration: none;
  color: #fff;
  font-family: var(--font-retro);
  font-size: 1.5rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  padding: 0 0.5rem;
}

/* Hide Home Link to match original design */
.nav-links li:first-child:contains("Home"),
.nav-links li.menu-item-home { display: none; }

.nav-links a:hover { 
  color: var(--nick-slime); 
  text-shadow: 0 0 10px var(--nick-slime), 2px 2px 0 #000;
  filter: brightness(1.2);
}

/* Active Page Underline / Neon Glow */
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  color: var(--nick-slime) !important;
  text-shadow: 0 0 15px var(--nick-slime);
}

.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--nick-slime);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--nick-slime);
}

/* Section Titles (from Website Design) */
.section-header-wrapper {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-family: var(--font-retro);
  color: #fff;
  background: var(--nick-purple);
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 8px 25px;
  text-transform: uppercase;
  display: inline-block;
  transform: rotate(-2deg);
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-title:hover {
  transform: rotate(0deg) scale(1.05);
  background: var(--nick-slime);
  color: #000;
  box-shadow: 0 0 15px var(--nick-slime);
}

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 5rem; }

.hero-section { 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 4rem;
  margin-top: 8rem; 
  margin-bottom: 0;
  min-height: 60vh;
}

@media (min-width: 1024px) {
  .hero-section {
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    padding: 0 4rem; /* Aligns with the inner padding of content-containers */
  }
}

.hero-text {
  flex: 1;
  max-width: 550px;
}

.hero-text h2 {
  font-size: 3.5rem;
  font-family: var(--font-retro);
  margin-bottom: 1.5rem;
  color: var(--nick-slime);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 2px 2px 0 rgba(0,0,0,0.5);
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    margin-top: 4rem;
    min-height: auto;
  }
  .hero-text h2 {
    font-size: 2.75rem;
    transform: rotate(-2deg);
  }
  .hero-text p {
    font-size: 1.1rem;
    padding: 1rem;
  }
  .imac-tv-container {
    max-width: 100%;
    transform: scale(0.9);
  }
  .imac-bezel {
    padding: 20px 20px 40px 20px;
  }
  .imac-screen {
    height: 250px;
  }
}

.content-section {
  padding: 1rem 1.5rem;
  max-width: 1400px;
}

.g3-btn {
  background: var(--nick-slime);
  color: #000;
  padding: 1.25rem 3rem;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  border: 4px solid #000;
  box-shadow: 0 6px 0 #000, 0 0 20px rgba(57, 255, 20, 0.4);
  font-family: var(--font-retro);
  transition: all 0.1s;
}

.g3-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000;
}

/* iMAC G3 TV CSS (Ported from Website Design) */
.imac-tv-container {
    perspective: 1200px;
    width: 100%;
    max-width: 550px;
}

.imac-bezel {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4) 0%, rgba(138, 43, 226, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 30px 30px 60px 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
}

.imac-screen {
    background: #0a0a0a;
    border-radius: 25px;
    height: 380px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
    border: 8px solid rgba(20, 20, 20, 0.8);
}

.imac-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.5;
}

.glare {
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    z-index: 11;
    pointer-events: none;
    border-radius: 25px;
    transform: rotate(15deg);
}

.imac-chin {
    position: absolute;
    bottom: 15px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 50px;
}

.speaker-grill {
    width: 80px;
    height: 35px;
    background: radial-gradient(circle, rgba(0,0,0,0.5) 2px, transparent 2.5px);
    background-size: 8px 8px;
    border-radius: 15px;
    opacity: 0.7;
}

.power-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(57, 255, 20, 0.9), rgba(40, 200, 10, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.5);
}

/* CRT TV Styles (from Retro Aggregator) */
.crt-housing {
  background: linear-gradient(145deg, #2c2c2e 0%, #1a1a1c 100%);
  border: 4px solid #111;
  box-shadow: inset 2px 2px 5px rgba(255,255,255,0.05), inset -2px -2px 10px rgba(0,0,0,0.5), 0 30px 60px rgba(0,0,0,0.9);
  position: relative; border-radius: 40px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; max-width: 60rem; width: 95%; margin: 0 auto;
}
.crt-bezel { background: #111; border-radius: 24px; padding: 12px; box-shadow: inset 0 0 20px #000; width: 100%; }
.crt-screen-container { position: relative; overflow: hidden; border-radius: 30px; background: #000; box-shadow: inset 0 0 50px rgba(0,0,0,1); aspect-ratio: 16 / 9; }
.crt-screen-curved { width: 100%; height: 100%; border-radius: 30px; transform: scale(1.03); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%); pointer-events: none; position: absolute; top: 0; left: 0; z-index: 10; }
.crt-scanlines { background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%); background-size: 100% 4px; z-index: 5; pointer-events: none; position: absolute; inset: 0; }
.vhs-overlay { background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03)); background-size: 100% 2px, 3px 100%; pointer-events: none; }
.crt-button { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, #3a3a3c, #1a1a1c); border: 1px solid #000; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.crt-dial { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #444, #111); border: 2px solid #000; position: relative; cursor: pointer; }
.crt-dial::after { content: ''; position: absolute; top: 4px; left: 50%; width: 2px; height: 8px; background: var(--primary-fixed); transform: translateX(-50%); }

/* Cards (from Retro Aggregator) */
.media-card {
  background: var(--surface-container); border-radius: var(--rounded); padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.03); transition: var(--transition-smooth); position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.media-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--primary-fixed); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(151, 252, 0, 0.2); }
.media-thumb { aspect-ratio: 16/9; border-radius: calc(var(--rounded) / 2); overflow: hidden; margin-bottom: 1.25rem; position: relative; background: #000; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.8s var(--ease-out-expo); }
.media-card:hover .media-thumb img { transform: scale(1.1); opacity: 1; }
.time-badge { position: absolute; bottom: 0.75rem; right: 0.75rem; background: rgba(0, 0, 0, 0.8); padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; color: var(--primary-fixed); border: 1px solid rgba(151, 252, 0, 0.3); }

.content-container { 
  background: rgba(45, 16, 82, 0.4); 
  border-radius: var(--rounded-xl); 
  padding: 2.5rem; 
  border: 1px solid rgba(157, 91, 255, 0.1); 
}

.pod-card { 
  background: var(--surface-container); 
  border-radius: var(--rounded); 
  padding: 1.25rem; 
  border: 1px solid rgba(255, 255, 255, 0.03); 
  transition: var(--transition-smooth); 
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.pod-card:hover { 
  transform: translateY(-8px);
  border-color: var(--secondary-container);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.pod-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: calc(var(--rounded) / 2);
  overflow: hidden;
}

.pod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.pod-card:hover .pod-thumb img {
  transform: scale(1.1);
}

.article-card { 
  background: var(--surface-container-high); 
  border-radius: var(--rounded); 
  border: 4px solid #000; 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-fixed);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--rounded) / 2);
  overflow: hidden;
  border: 2px solid #000;
}
.tactile-btn { box-shadow: 0 4px 0 0 #521900; transition: all 0.1s ease-in-out; cursor: pointer; border: none; }
.tactile-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 #521900; }

/* Interactive Elements */
.icon-btn { background: transparent; border: none; padding: 0.5rem; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.1); }
.social-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--secondary-container); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--secondary-container); transition: var(--transition-smooth); }
.social-btn:hover { background: var(--secondary-container); color: black; box-shadow: 0 0 15px var(--secondary-container); }

/* Footer */
footer { background: #000; border-top: 4px solid var(--primary-fixed); padding: 4rem 2rem; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }

/* Mobile Enhancements */
@media (max-width: 768px) {
  .grid-cols-4 { 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
  .content-section {
    padding: 2rem 1rem;
  }
  
  .content-container {
    padding: 1.5rem;
  }

  .section-header-wrapper {
    margin-bottom: 2rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.75rem;
    padding: 6px 15px;
  }

  .nav-links { display: none; }
  .header { padding: 0 1rem; }
  
  footer { 
    flex-direction: column; 
    gap: 2.5rem; 
    text-align: center; 
    padding: 3rem 1rem;
  }
  
  footer .logo-container {
    align-items: center !important;
    transform: scale(0.5) !important;
    margin: 0 auto;
  }

  .media-card, .pod-card, .article-card {
    padding: 1rem;
  }

  .headline-lg {
    font-size: 1.5rem;
  }
}
