/* 1BakaBird Streamingplan - Clean & Human-Crafted Aesthetic */

/* Tailwind Preflight override: ensures html2canvas calculates accurate font baseline metrics */
img {
  display: inline-block !important;
}

:root {
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme: Raven Dark (Default, Clean & Grounded) */
  --bg-main: #0c0e14;
  --bg-surface: #141721;
  --bg-surface-elevated: #1a1e2b;
  --bg-card: #151824;
  --bg-card-hover: #1c2030;
  --border-subtle: #232738;
  --border-hover: #32384e;
  
  --accent-primary: #6366f1;       /* Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-gold: #f59e0b;          /* Raven Eye Amber */
  --accent-live: #10b981;          /* Emerald */
  --accent-offline: #8b5cf6;       /* Muted Violet */

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --embed-color: 0x6366f1;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-primary);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grounded Surface Panels (No cartoon blur) */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.glass-input {
  background: rgba(12, 14, 20, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.glass-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Tasteful, Human-Crafted Buttons */
.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: var(--border-subtle);
  border-color: var(--border-hover);
  color: #ffffff;
}

.btn-discord {
  background: #5865F2;
  color: #ffffff;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
  transform: translateY(-1px);
}

/* Schedule Canvas Container - Clean, crisp, poster-quality */
#schedule-canvas-target {
  width: 1200px !important;
  min-width: 1200px !important;
  max-width: 1200px !important;
  min-height: 675px;
  box-sizing: border-box;
  background-color: #0d0f17;
  position: relative;
  overflow: hidden;
  user-select: none;
  flex-shrink: 0 !important;
  font-family: var(--font-primary) !important;
  color: var(--text-primary) !important;
}

.preview-viewport-wrapper {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Human-designed Schedule Card Styling (Clean, structured, matte) */
.stream-card {
  background: #141722;
  border: 1px solid #232738;
  border-radius: 14px;
  transition: border-color 0.2s ease;
  overflow: visible;
  word-break: normal;
  overflow-wrap: break-word;
}

.stream-card h3,
.stream-card h4,
.stream-card p,
.stream-card span {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.stream-card-live {
  background: #141824;
  border: 1px solid #252b40;
  border-top: 2.5px solid #10b981;
}

.stream-card-special {
  background: #181726;
  border: 1px solid #2f2a42;
  border-top: 2.5px solid #f59e0b;
}

.stream-card-offline {
  background: #12141d;
  border: 1px solid #1f2230;
  border-top: 2.5px solid #64748b;
  opacity: 0.95;
}

/* Status Badges - Solid backgrounds to prevent html2canvas alpha clipping glitches */
.status-pill-live {
  background-color: #0c2b20;
  color: #34d399;
  border: 1px solid #176348;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-pill-special {
  background-color: #2b1f0c;
  color: #fbbf24;
  border: 1px solid #6e4e16;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-pill-offline {
  background-color: #171a25;
  color: #94a3b8;
  border: 1px solid #2d3348;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Subtle, tasteful tag badges */
.tag-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  background-color: #1a1e2b;
  color: #cbd5e1;
  border: 1px solid #2e3448;
  white-space: nowrap;
}

.preview-date-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.preview-community-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.preview-time-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  background-color: #181b27;
  border: 1px solid #272d40;
  border-radius: 9999px;
  padding: 3px 12px;
  line-height: 1.3;
}
.preview-time-pill svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
}

.preview-time-pill-special {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fcd34d;
  background-color: #2b1f0c;
  border: 1px solid #6e4e16;
  border-radius: 9999px;
  padding: 3px 12px;
  line-height: 1.3;
}
.preview-time-pill-special svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
}

.preview-week-badge {
  display: inline-block;
  background-color: #161925;
  border: 1px solid #272d40;
  border-radius: 8px;
  padding: 6px 14px;
  line-height: 1.3;
}
.preview-week-badge svg {
  display: inline-block;
  vertical-align: -2.5px;
  margin-right: 6px;
}

.preview-twitch-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background-color: #161925;
  border: 1px solid #272d40;
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.2;
  margin-right: 8px;
}
.preview-twitch-badge svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
}

.preview-streamer-subtitle {
  display: inline-block;
  font-size: 12px;
  color: #94a3b8;
  vertical-align: middle;
}

.preview-discord-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: #a5b4fc;
  background-color: #1f2038;
  border: 1px solid #3b3d68;
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 1.3;
}
.preview-discord-pill svg {
  display: inline-block;
  vertical-align: -1.5px;
  margin-right: 4px;
}

/* Pulse indicator (Subtle, not blinding) */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.92); }
}
.live-pulse {
  animation: softPulse 2.5s infinite ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0e1017;
}
::-webkit-scrollbar-thumb {
  background: #232738;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #373e56;
}
