/* ============================================================
   shared.css — styles used across all pages of karanmehra.live
   Import this on every sub-page. mockup-k.html / index.html
   contains its own inline copy of the overlapping rules for
   the homepage; sub-pages should only link this file.
   ============================================================ */

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

/* ---- BASE ---- */
body {
  background: #080604;
  min-height: 100vh;
  font-family: 'Courier Prime', monospace;
  overflow-x: hidden;
  position: relative;
}

/* heavy grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.65;
  mix-blend-mode: overlay;
}

/* ---- DARK WALL — backstage corridor ---- */
.wall {
  background-color: #080604;
  background-image:
    radial-gradient(ellipse at 88% 45%, rgba(255,160,40,0.22) 0%, rgba(200,100,10,0.12) 18%, transparent 40%),
    linear-gradient(to right, transparent 84%, rgba(255,180,60,0.08) 85%, rgba(255,200,80,0.18) 86%, rgba(255,180,60,0.06) 87%, transparent 88%),
    linear-gradient(to right, transparent 82%, rgba(0,0,0,0.6) 83%, rgba(0,0,0,0.8) 84%, transparent 85%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(0,0,0,0.45) 44px, rgba(0,0,0,0.45) 46px, transparent 46px, transparent 90px, rgba(0,0,0,0.35) 90px, rgba(0,0,0,0.35) 92px),
    repeating-linear-gradient(90deg, transparent, transparent 88px, rgba(0,0,0,0.3) 88px, rgba(0,0,0,0.3) 90px),
    linear-gradient(105deg, #111009 0%, #0d0b08 40%, #0a0806 70%, #0d0a07 100%);
  position: relative;
}
.wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 92% 8%, rgba(80,50,15,0.4) 0%, rgba(60,35,8,0.2) 20%, transparent 45%),
    radial-gradient(ellipse at 8% 55%, rgba(40,35,10,0.5) 0%, rgba(25,20,5,0.3) 25%, transparent 50%),
    radial-gradient(ellipse at 50% 95%, rgba(30,22,8,0.45) 0%, transparent 35%),
    linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 15%);
  pointer-events: none;
  z-index: 0;
}

/* ---- TOP NAV ---- */
.topnav {
  padding: 24px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
}
.topnav-back {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.topnav-back:hover { color: rgba(255,255,255,0.7); }
.topnav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.15);
}

/* ---- PAPER ---- */
.paper {
  position: relative;
  background: #ede2c8;
  padding: 36px 34px 48px;
  box-shadow:
    8px 12px 50px rgba(0,0,0,0.85),
    -4px 4px 20px rgba(0,0,0,0.5),
    inset 0 0 60px rgba(0,0,0,0.1),
    inset 40px 0 80px rgba(100,70,20,0.08);
  background-image:
    radial-gradient(ellipse at 10% 90%, rgba(140,100,50,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(160,130,80,0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 70%, rgba(120,90,40,0.12) 0%, transparent 40%),
    repeating-linear-gradient(transparent, transparent 31px, rgba(0,0,0,0.04) 31px, rgba(0,0,0,0.04) 32px);
}
.tape-strip {
  position: absolute;
  background: rgba(210,195,150,0.48);
  background-image: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.09) 3px, rgba(255,255,255,0.09) 4px);
  border: 1px solid rgba(180,165,120,0.3);
  height: 16px;
}

/* ---- SETLIST ---- */
.setlist-paper {
  padding: 36px 34px 52px;
  transform: rotate(-1.5deg);
  position: relative;
}
.setlist-paper .ruled {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent, transparent 31px, #c8bfa8 31px, #c8bfa8 32px);
  pointer-events: none;
  opacity: 0.45;
}
.setlist-label {
  font-family: 'Kalam', cursive;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.setlist-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(180,165,130,0.25);
  position: relative;
  z-index: 1;
}
.setlist-num  { font-family: 'Kalam', cursive; font-size: 12px; color: #aaa; min-width: 18px; }
.setlist-bit  { font-family: 'Kalam', cursive; font-size: 15px; color: #1a1410; flex: 1; line-height: 1.3; }
.setlist-bit.struck { text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; color: #777; }
.setlist-bit.closer { font-weight: 700; }
.setlist-mark { font-family: 'Kalam', cursive; font-size: 14px; color: #c0392b; }

/* ---- BIO PANEL ---- */
.eyebrow, .panel-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.panel-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  color: #fff;
  line-height: 0.92;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.panel-body {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 24px;
}
.section-label, .panel-section-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  margin-top: 18px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip, .skill-chip {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px;
  clip-path: polygon(0% 2px, 2px 0%, calc(100% - 2px) 0%, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0% calc(100% - 2px));
}
.small-list, .panel-festivals-list {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}

/* ---- GRUNGE BUTTONS (tape label style) ---- */
.grunge-btn {
  font-family: 'Kalam', cursive;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 11px 28px 9px;
  border: none;
  position: relative;
  transition: opacity 0.15s, filter 0.15s;
  cursor: pointer;
  display: inline-block;
  color: #1a1410;
  background: #e8dfc4;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 3px);
  clip-path: polygon(
    0% 2px, 1px 0%, 3px 3px, 2px 6px, 4px 9px, 2px 12px, 3px 15px, 1px 18px, 2px 21px, 0% 24px,
    0% 100%,
    calc(100% - 0px) calc(100% - 2px), calc(100% - 1px) calc(100% - 0px),
    calc(100% - 3px) calc(100% - 3px), calc(100% - 2px) calc(100% - 6px),
    calc(100% - 4px) calc(100% - 9px), calc(100% - 2px) calc(100% - 12px),
    calc(100% - 3px) calc(100% - 15px), calc(100% - 1px) calc(100% - 18px),
    calc(100% - 2px) calc(100% - 21px), calc(100% - 0px) calc(100% - 24px),
    100% 0%
  );
  box-shadow: 1px 2px 6px rgba(0,0,0,0.35);
}
.grunge-btn:hover { opacity: 0.85; filter: brightness(1.05); }
.grunge-btn-comedy { background-color: #e8dfc4; color: #5b21b6; }
.grunge-btn-music  { background-color: #e8dfc4; color: #c93c00; }
.grunge-btn-book   { background-color: #e8dfc4; color: #1a3a6b; }

/* ---- WATCH SECTION ---- */
.watch-label {
  display: inline-block;
  background: #ede2c8;
  background-image: radial-gradient(ellipse at 20% 80%, rgba(180,150,100,0.18) 0%, transparent 60%);
  font-family: 'Kalam', cursive;
  font-size: 28px;
  color: #1a1410;
  padding: 8px 24px 12px;
  transform: rotate(-1.5deg);
  box-shadow: 4px 5px 24px rgba(0,0,0,0.6);
  margin-bottom: 32px;
  position: relative;
}
.watch-label .tape-strip { top: -8px; left: 20px; width: 50px; transform: rotate(-3deg); }

.watch-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  margin-bottom: 80px;
}
.watch-main {
  background: #000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.watch-main video {
  width: 100%; min-height: 320px;
  object-fit: cover; display: block;
  filter: brightness(0.8) contrast(1.1) saturate(0.85);
  transition: filter 0.3s;
}
.watch-main:hover video { filter: brightness(0.95); }
.watch-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  pointer-events: none;
}
.watch-main-label {
  position: absolute; bottom: 16px; left: 16px;
  font-family: 'Kalam', cursive; font-size: 18px; color: rgba(255,255,255,0.85);
}
.watch-side { display: flex; flex-direction: column; gap: 4px; }
.watch-thumb {
  flex: 1; background: #1a1612; padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; min-height: 80px;
  border-left: 2px solid #2a2420; transition: background 0.2s;
}
.watch-thumb:hover { background: #221e1a; }
.thumb-num { font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,0.2); margin-bottom: 3px; }
.thumb-name { font-family: 'Kalam', cursive; font-size: 16px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.watch-thumb:hover .thumb-name { color: rgba(255,255,255,0.85); }

/* ---- BOOK CTA ---- */
.book-cta {
  text-align: center;
  padding: 60px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.book-cta-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.15);
  margin-bottom: 20px;
}

/* ---- MOBILE ---- */
@media (max-width: 700px) {
  .topnav { padding: 20px 20px; }
  .grunge-btn { font-size: 17px; padding: 9px 18px 7px; letter-spacing: 1px; }
  .watch-grid { grid-template-columns: 1fr; }
  .watch-side { flex-direction: column; }
  .setlist-paper { transform: rotate(-0.5deg); }
}
