/* dark-2 – Midnight Painterly Theme */

:root {
  --bg-main: #0b1418;
  --bg-dark: #0a1219;
  --accent-teal: #2dd4bf;      /* Bright teal-cyan glow */
  --accent-deep: #14b8a6;      /* Slightly deeper teal */
  --accent-crimson: #ef4444;   /* Subtle red/crimson pop */
  --accent-orange: #fb923c;    /* Warm sunset orange */
  --glass: rgba(10, 18, 25, 0.58);
  --border: rgba(45, 212, 191, 0.18);
  --glow-teal: rgba(45, 212, 191, 0.28);
}

/* Deep painterly midnight background */
.main {
  background: linear-gradient(135deg, #0b1418 0%, #0c1821 40%, #0a131a 100%);
  position: relative;
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 70%, rgba(20,184,166,.22), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45,212,191,.18), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(239,68,68,.09), transparent 60%);
  animation: slow-drift 38s ease-in-out infinite alternate;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes slow-drift {
  to { transform: translate(18px, -18px) rotate(0.6deg); }
}

/* Glass cards with soft teal glow and painterly depth */
.grid article {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all .5s ease;
  box-shadow: 
    0 10px 35px rgba(0,0,0,.7),
    0 0 25px rgba(45,212,191,.12);
}

.grid article:hover {
  transform: translateY(-12px);
  border-color: rgba(45,212,191,.45);
  box-shadow: 
    0 28px 60px rgba(0,0,0,.85),
    0 0 45px var(--glow-teal);
}

.grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, 
    rgba(45,212,191,.20), 
    rgba(20,184,166,.14), 
    rgba(239,68,68,.08));
  opacity: 0;
  transition: opacity .6s ease;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.grid article:hover::after {
  opacity: 1;
}

/* Images feel vibrant yet moody */
.grid article img {
  transition: all .6s ease;
  filter: brightness(.92) contrast(1.15) saturate(1.1);
}

.grid article:hover img {
  transform: scale(1.055);
  filter: brightness(1.08) contrast(1.22) saturate(1.25)
          drop-shadow(0 0 30px rgba(45,212,191,.45));
}

/* Sidebar – deep and atmospheric */
.sidebar {
  background: linear-gradient(to bottom, #0c151a, #0a131b);
  border-right: 1px solid rgba(45,212,191,.25);
  box-shadow: 
    inset 0 0 70px rgba(45,212,191,.1),
    0 0 40px rgba(0,0,0,.8);
}

/* Gradient text: teal → crimson/orange sunset feel */
.sidebar h1,
.sidebar h2,
.sidebar h3 {
  background: linear-gradient(90deg, 
    #2dd4bf 0%, 
    #14b8a6 40%, 
    #fb923c 80%, 
    #ef4444 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 
    0 0 25px rgba(45,212,191,.4),
    0 2px 6px rgba(0,0,0,.6);
  font-weight: 700;
  letter-spacing: -0.3px;
}