:root {
  /* Default Theme (can be overridden) */
  --primary-color: #3b82f6; /* Default Blue */
  --bg-color: #0f172a;      /* Dark Slate */
  --card-bg: #1e293b;       /* Lighter Slate */
  --text-color: #f8fafc;    /* White-ish */
  --text-muted: #94a3b8;    /* Muted text */
  --accent-glow: rgba(59, 130, 246, 0.5);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius: 8px;
}

/* Lego Theme - Yellow Accent */
body.theme-lego {
  --primary-color: #fbbf24; /* Amber/Yellow */
  --accent-glow: rgba(251, 191, 36, 0.5);
}

/* Trading Theme - Cyberpunk Green Accent */
body.theme-trading {
  --primary-color: #10b981; /* Emerald/Green */
  --accent-glow: rgba(16, 185, 129, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 600;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
  opacity: 1; /* Override default link hover opacity */
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-full {
  width: 100%;
  display: block;
}

/* HOMEPAGE V1: Card Grid */
.hero-v1 {
  text-align: center;
  padding: 4rem 0;
}

.hero-v1 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.category-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.category-card.lego-card {
  border-top: 4px solid #fbbf24;
}

.category-card.trading-card {
  border-top: 4px solid #10b981;
}

/* HOMEPAGE V2: Split Screen */
.split-container {
  display: flex;
  height: calc(100vh - var(--header-height));
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* Break out of container */
  margin-top: -2rem; /* Negate main padding */
}

.split-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: flex 0.3s ease;
  position: relative;
  overflow: hidden;
}

.split-side:hover {
  flex: 1.2;
}

.split-lego {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.split-trading {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.split-lego h2 { color: #fbbf24; }
.split-trading h2 { color: #10b981; }

/* HOMEPAGE V3: Minimalist List */
.minimal-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 60vh;
  gap: 1rem;
}

.minimal-item {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  cursor: pointer;
  line-height: 1.1;
}

.minimal-item:hover {
  color: var(--primary-color);
  transform: translateX(20px);
}

/* LINKTREE / CATEGORY LAYOUT */
.linktree-container {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 3px solid var(--primary-color);
  margin: 0 auto 1rem;
  /* Placeholder for actual image */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s;
}

.link-btn:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

/* VIDEO HUB LAYOUT */
.video-hub-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-meta {
  margin-bottom: 2rem;
}

.video-meta h1 {
  margin-bottom: 0.5rem;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* UTILITIES */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }

  .hero-v1 h1 {
    font-size: 2rem;
  }

  .split-container {
    flex-direction: column;
    height: auto;
    margin: 0 -1rem; /* Reset margin for mobile */
    width: auto;
  }

  .split-side {
    padding: 4rem 1rem;
  }

  .minimal-item {
    font-size: 2.5rem;
  }
}
