/* Palette Variables */
:root {
  --c0: #001219;
  --c1: #005f73;
  --c2: #0a9396;
  --c3: #94d2bd;
  --c4: #e9d8a6;
  --c5: #ee9b00;
  --c6: #ca6702;
  --c7: #bb3e03;
  --c8: #ae2012;
  --c9: #9b2226;
}

/* Base */
html, body { height: 100%; }
body {
  background: #f7f8fa; /* clean, neutral light */
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**************
 UI Elements
**************/
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--c5), var(--c6));
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(238,155,0,0.25);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(238,155,0,0.32); }

.hero-media { position: relative; height: 320px; border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .hero-media { height: 420px; } }
.hero-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero-frame {
  position: absolute; inset: 0; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 40px rgba(0,0,0,0.35);
}
.hero-overlay {
  position: absolute; inset: 0; border-radius: 1rem;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), rgba(255,255,255,0.25) 40%, rgba(255,255,255,0) 70%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--c2), var(--c5));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Glassmorphism Card */
.card {
  position: relative;
  border-radius: 1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.06);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.card .media { height: 180px; background-size: cover; background-position: center; }
.card .body { padding: 0.9rem 1rem; }
.card .name { font-weight: 700; }
.card .meta { color: rgba(15,23,42,0.65); font-size: 0.9rem; }
.card .badge { position: absolute; top: 10px; right: 10px; background: rgba(155,34,38,0.9); padding: 0.25rem 0.5rem; border-radius: 0.5rem; font-size: 0.75rem; }
.card a.stretched { position: absolute; inset: 0; }
.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.25); }

/* Coming soon overlay */
.card .overlay {
  position: absolute; inset: 0; background: rgba(0, 18, 25, 0.45);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; letter-spacing: 0.02em;
}

/* Decorative blobs */
.blob { display: none; position: fixed; z-index: -1; filter: blur(40px); opacity: 0.5; }
.blob-a { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, rgba(148,210,189,0.45), transparent 60%); left: -120px; top: 80px; animation: float 22s ease-in-out infinite; }
.blob-b { width: 560px; height: 560px; background: radial-gradient(circle at 70% 30%, rgba(233,216,166,0.45), transparent 60%); right: -180px; top: 200px; animation: float 28s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -25px, 0); }
}

/* Subtle noise overlay */
.noise-overlay {
  display: none;
  pointer-events: none; position: fixed; inset: 0; z-index: -1; opacity: 0.03;
  background-image: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120">\
      <filter id="n">\
        <feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/>\
        <feColorMatrix type="saturate" values="0"/>\
      </filter>\
      <rect width="100%" height="100%" filter="url(%23n)" opacity="0.35"/>\
    </svg>');
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .card:hover, .hero-image { animation: none !important; transform: none !important; }
}

/* Theme toggle button */
.theme-toggle {
  position: fixed; top: 1rem; right: 1rem; z-index: 50;
  width: 40px; height: 40px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}
.theme-toggle:hover { filter: brightness(1.02); box-shadow: 0 8px 22px rgba(0,0,0,0.18); }

/* Dark mode overrides */
body.dark {
  background: #0d1117; /* solid professional dark */
  color: #e5e7eb;
}
.dark .theme-toggle { background: rgba(17,24,39,0.9); color: #e5e7eb; border-color: rgba(255,255,255,0.08); }
.dark .noise-overlay { opacity: 0.06; }

.dark .card {
  background: rgba(17,24,39,0.85);
  border: 1px solid rgba(255,255,255,0.06);
}
.dark .card .meta { color: rgba(226,232,240,0.7); }
.dark .card .overlay { background: rgba(0,0,0,0.5); }
.dark .hero-frame { border-color: rgba(255,255,255,0.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 40px rgba(0,0,0,0.6); }
