/* ==========================================================================
   Minecraft-Events Live by Zanarka - Glassmorphism & Custom Airbnb Calendar
   ========================================================================== */

:root {
  --bg-dark: #090c12;
  --bg-card: rgba(16, 21, 31, 0.85);
  --bg-card-hover: rgba(26, 33, 49, 0.95);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 72, 0, 0.5);
  
  --primary-lava: #ff4800;
  --primary-glow: #ff7700;
  --accent-purple: #9d4edd;
  --accent-cyan: #00f5d4;
  --accent-gold: #ffb703;
  --accent-green: #2ecc71;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 14px;
  --radius-md: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 72, 0, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(157, 78, 221, 0.1) 0%, transparent 45%);
  color: var(--text-main); font-family: var(--font-body); line-height: 1.6; min-height: 100vh;
}

.container { width: 92%; max-width: 1240px; margin: 0 auto; padding: 0 1rem; }

.navbar {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px);
  background: rgba(9, 12, 18, 0.85); border-bottom: 1px solid var(--border-glass); padding: 0.9rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--text-main); text-decoration: none; }
.logo-tag { background: linear-gradient(135deg, var(--primary-lava), var(--accent-purple)); color: white; padding: 3px 8px; border-radius: 5px; font-size: 0.75rem; font-weight: 700; }
.logo-by { font-size: 0.82rem; font-weight: 700; color: var(--accent-gold); background: rgba(255, 183, 3, 0.12); border: 1px solid var(--accent-gold); padding: 2px 8px; border-radius: 12px; font-style: italic; }

/* Custom Airbnb Visual Calendar Grid */
.airbnb-calendar-box {
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px;
}
.airbnb-month-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.airbnb-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.airbnb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.airbnb-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.03); color: var(--text-main); transition: var(--transition);
}
.airbnb-day:hover { background: rgba(255, 72, 0, 0.3); }
.airbnb-day.empty { background: transparent; cursor: default; pointer-events: none; }
.airbnb-day.range-start, .airbnb-day.range-end { background: var(--primary-lava) !important; color: white !important; font-weight: 800; box-shadow: 0 0 10px rgba(255, 72, 0, 0.8); }
.airbnb-day.in-range { background: rgba(255, 72, 0, 0.25) !important; color: white; border-radius: 0; }

/* Itch.io Timeline */
.itch-calendar-card {
  background: var(--bg-card); border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2.5rem;
  backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(255, 72, 0, 0.15);
}
.itch-calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.itch-timeline-scroll { overflow-x: auto; padding-bottom: 10px; }
.itch-timeline-body { position: relative; min-width: 950px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-md); border: 1px solid var(--border-glass); padding: 1rem 0; }
.itch-days-row { display: grid; grid-template-columns: repeat(12, 1fr); border-bottom: 1px solid var(--border-glass); padding-bottom: 8px; margin-bottom: 12px; }
.itch-day-cell { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }

.itch-now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4800; box-shadow: 0 0 10px #ff4800, 0 0 20px #ff7700; z-index: 10; pointer-events: none; }
.itch-now-badge { position: absolute; top: 4px; transform: translateX(-50%); background: #ff4800; color: white; font-weight: 800; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; box-shadow: 0 0 8px rgba(255, 72, 0, 0.8); }

.itch-rows-container { display: flex; flex-direction: column; gap: 12px; }
.itch-event-row { position: relative; height: 52px; background: rgba(255, 255, 255, 0.02); }
.itch-event-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 8px; background: linear-gradient(90deg, #ff4800, #d90429); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); transition: var(--transition); overflow: hidden; }
.itch-event-bar.multisession-bar { background: rgba(157, 78, 221, 0.15); border: 1px dashed rgba(157, 78, 221, 0.6); box-shadow: none; }

.inner-slots-track { position: absolute; inset: 0; pointer-events: none; }
.inner-slot-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px rgba(255, 72, 0, 0.6); pointer-events: auto; cursor: pointer; }
.inner-slot-bar::before, .inner-slot-bar::after { content: none !important; }
.inner-slot-bar:hover { transform: scale(1.05); filter: brightness(1.2); z-index: 20; }
.inner-slot-bar[data-tooltip]:hover::after { content: attr(data-tooltip) !important; position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: #0f1422; color: #fff; border: 1px solid var(--accent-purple); padding: 8px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; white-space: pre-wrap; text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,0.8); pointer-events: none; z-index: 100; width: max-content; max-width: 240px; }
.inner-slot-bar.open-now { box-shadow: 0 0 14px #00f5d4; animation: pulse-glow 1.5s infinite; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 8px #00f5d4; } 50% { box-shadow: 0 0 16px #00f5d4, 0 0 24px #2ecc71; } 100% { box-shadow: 0 0 8px #00f5d4; } }
.slot-label { font-size: 0.72rem; font-weight: 800; color: #000; text-transform: uppercase; white-space: nowrap; padding: 0 4px; }
.slot-label::before, .slot-label::after { content: none !important; display: none !important; }

.itch-bar-overlay { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; }
.itch-bar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.itch-bar-info { display: flex; flex-direction: column; white-space: nowrap; }
.itch-bar-title { font-size: 0.82rem; font-weight: 800; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.itch-bar-host { font-size: 0.68rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.wizard-steps { display: flex; gap: 8px; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 12px; }
.wizard-step { flex: 1; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); padding: 6px; border-radius: 6px; background: rgba(255,255,255,0.03); }
.wizard-step.active { background: linear-gradient(135deg, var(--primary-lava), var(--accent-purple)); color: white; }
.wizard-page { display: none; }
.wizard-page.active { display: block; }
.form-input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass); border-radius: var(--radius-md); color: white; font-family: inherit; }

.jam-tabs-container { margin: 1.5rem 0 1.5rem; border-bottom: 1px solid var(--border-glass); }
.jam-tabs { display: flex; gap: 1.5rem; overflow-x: auto; }
.jam-tab-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; padding: 10px 4px; cursor: pointer; position: relative; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.jam-tab-btn:hover { color: var(--text-main); }
.jam-tab-btn.active { color: var(--primary-glow); }
.jam-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-lava), var(--accent-purple)); border-radius: 3px 3px 0 0; }
.tab-badge { background: rgba(255, 255, 255, 0.1); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.card-img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-lava), #d90429); color: white; box-shadow: 0 4px 15px rgba(255, 72, 0, 0.35); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-main); border: 1px solid var(--border-glass); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--accent-purple); color: white; padding: 12px 22px; border-radius: var(--radius-md); font-weight: 600; box-shadow: 0 8px 25px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 500; }
.toast.show { opacity: 1; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 400; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card { background: #0f1422; border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 2rem; width: 90%; max-width: 520px; position: relative; }
