/* ==========================================================================
   HACKATEER EXPLORE WORKSPACE (Premium White Theme - Creative Glassmorphism)
   ========================================================================== */

/* ──────────────────────────────────────────────
   CSS VARIABLES & DESIGN SYSTEM
   ────────────────────────────────────────────── */
:root {
  /* Premium light/white palette */
  --bg-base:        #FEFEFD;        /* Off-white base, matching landing section background */
  --bg-surface:     #ffffff;        /* Pure white */
  --bg-raised:      #f8fafc;        /* Soft slate/grey for highlights */
  --bg-overlay:     rgba(254, 254, 253, 0.9);

  /* Accents from landing page */
  --accent-indigo:  #6366f1;
  --accent-purple:  #a855f7;
  --accent-cyan:    #06b6d4;
  --accent-pink:    #ec4899;
  --accent-green:   #10b981;
  --accent-blue:    #3B82F6;
  --accent-navy:    #151F57;

  /* Glass in light theme */
  --glass-bg:       rgba(255, 255, 255, 0.75);
  --glass-border:   rgba(15, 23, 42, 0.06);
  --glass-shadow:   0 8px 30px rgba(26, 22, 80, 0.03), 0 2px 8px rgba(26, 22, 80, 0.01);
  --glass-hover-border: rgba(99, 102, 241, 0.3);

  /* Text colors for light theme */
  --text-primary:   #1a162b;       /* Dark slate primary text */
  --text-secondary: #4b485c;       /* Medium grey description text */
  --text-tertiary:  #8a8aaa;       /* Light grey/placeholder text */

  /* Fonts */
  --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  'Space Grotesk', sans-serif;
  --font-head:  'Space Grotesk', var(--font-sans);

  /* Transition timing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
}

/* ──────────────────────────────────────────────
   RESET & SYSTEM BASICS
   ────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: #ffffff;
  padding-top: 0;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

::selection {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Custom Cursor Tracker (Aligned with Hero Cursor) */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

.custom-cursor.hovered {
  width: 14px;
  height: 14px;
  background-color: var(--accent-navy);
}

.custom-cursor-follower.hovered {
  width: 48px;
  height: 48px;
  border-color: rgba(21, 31, 87, 0.4);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor, .custom-cursor-follower {
    display: none;
  }
}

/* ──────────────────────────────────────────────
   NAVIGATION BAR (Premium Light Glassmorphic)
   ────────────────────────────────────────────── */
.navbar-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(26, 22, 43, 0.05);
  border-radius: 50px;
  padding: 10px 32px;
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
}

.navbar-container.scrolled {
  top: 8px;
  background: rgba(254, 254, 253, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

.navbar {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  background-color: var(--bg-surface);
  transition: var(--transition-fast);
}

.icon-action-btn:hover {
  border-color: var(--glass-hover-border);
  color: var(--text-primary);
  background-color: rgba(15, 23, 42, 0.03);
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-pink);
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  background-color: rgba(15, 23, 42, 0.02);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.user-profile-menu {
  position: relative;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.navbar-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--glass-border);
}

.status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-surface);
}

.status-dot.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* ──────────────────────────────────────────────
   SPOTLIGHT BANNER (Glowing Orbs & Dot Matrix)
   ────────────────────────────────────────────── */
.banner-section {
  position: relative;
  background: 
    radial-gradient(ellipse 65% 48% at 50% 0%, rgba(59, 130, 246, 0.20) 0%, transparent 100%), /* Blue ambient shadow */
    radial-gradient(ellipse 45% 28% at 50% 0%, rgba(26, 22, 43, 0.24) 0%, transparent 100%),  /* Black shadow */
    #ffffff;
  border-bottom: none;
  padding: 180px 24px 80px;
  overflow: hidden;
}

/* Ambient Radial Blurred Orbs */
.banner-mesh-gradient {
  display: none;
}

/* Dot matrix blueprint background */
.banner-dot-matrix {
  display: none;
}

.banner-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.banner-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 14px;
}

.banner-title {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 9vw, 7.2rem);
  font-weight: 400;
  color: #1a162b;
  text-shadow: 0 10px 30px rgba(26, 22, 43, 0.12), 0 2px 4px rgba(26, 22, 43, 0.04);
  text-align: center;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.015em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.title-word {
  display: block;
}

.accent-glow {
  color: #1a162b;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.banner-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Bento Spotlight Grid */
.banner-bento-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  width: 100%;
}

.bento-main-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.5);
}

.bento-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.bento-main-card:hover .bento-card-bg {
  transform: scale(1.05);
}

.bento-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 22, 43, 0.95) 15%, rgba(26, 22, 43, 0.2) 70%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  text-align: left;
}

.bento-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--accent-blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.bento-card-content h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.bento-card-content p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  margin-bottom: 12px;
}

.bento-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.bento-meta i {
  margin-right: 4px;
}

.bento-meta .time-label {
  color: var(--accent-cyan);
}

.bento-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-side-item {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  text-align: left;
  transition: all 0.3s var(--ease-out);
}

.bento-side-item:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(26, 22, 80, 0.06);
}

.side-item-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-indigo);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bento-side-item h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bento-side-item p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────
   EXPLORER CONTROLS (Glass Search)
   ────────────────────────────────────────────── */
.explorer-controls-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0 24px;
}

.explorer-controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.explorer-search-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.search-box-minimal {
  display: flex;
  align-items: center;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  width: 320px;
  transition: all 0.25s var(--ease-out);
  outline: none;
}

.search-box-minimal:focus-within {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  outline: none;
}

.search-box-minimal i {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 12px;
}

.search-box-minimal input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.search-box-minimal input::placeholder {
  color: var(--text-secondary);
}

.total-cohorts-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-navy);
  background-color: rgba(21, 31, 87, 0.05);
  border: 1px solid rgba(21, 31, 87, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(21, 31, 87, 0.02);
}

/* ──────────────────────────────────────────────
   COHORTS GRID CARDS (Interactive Lift)
   ────────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 100px 24px;
}

.explore-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.explore-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45); /* Matching navbar background */
  backdrop-filter: blur(20px); /* Matching navbar blur */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45); /* Matching navbar border */
  border-radius: 28px; /* Smooth large rounded corners */
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(26, 22, 43, 0.05); /* Matching navbar shadow */
  display: flex;
  flex-direction: row;
  padding: 32px;
  gap: 24px;
  min-height: 280px;
  box-sizing: border-box;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out);
  cursor: pointer;
}

.explore-card:hover {
  background: rgba(255, 255, 255, 0.65); /* Less translucent on hover */
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 48px 0 rgba(26, 22, 43, 0.1);
  transform: translateY(-8px);
}

.card-left-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.25;
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.card-meta .separator {
  color: var(--text-tertiary);
}

.card-features {
  display: flex;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid rgba(21, 31, 87, 0.06);
  padding-top: 20px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  font-size: 1.15rem;
  color: var(--accent-blue);
}

.feature-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-navy);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.feature-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.card-right-col {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 160px;
}

.card-illustration-container {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(21, 31, 87, 0.02);
}

.card-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.explore-card:hover .card-illustration {
  transform: scale(1.04);
}

.card-right-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
  justify-content: flex-end;
}

.registration-pill {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(21, 31, 87, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.registration-pill i {
  font-size: 0.75rem;
}

.card-right-bottom .btn-share-event {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background-color: transparent;
  color: var(--accent-blue);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.25s var(--ease-out);
  font-size: 0.95rem;
}

.card-right-bottom .btn-share-event:hover {
  color: var(--accent-indigo);
  transform: scale(1.15);
}

.card-right-bottom .btn-share-event.copied {
  color: var(--accent-green);
}

/* ──────────────────────────────────────────────
   MODAL OVERLAY DIALOGS (Glassmorphic Card)
   ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 22, 43, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(26, 22, 80, 0.08);
  transform: translateY(20px);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.modal-card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.btn-close-modal {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background-color: var(--accent-navy);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 14px rgba(21, 31, 87, 0.2);
}

.btn-close-modal:hover {
  background-color: #233482;
  transform: scale(0.98);
}

.text-green {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

/* ──────────────────────────────────────────────
   RESPONSIVE DESIGN
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 10px 24px;
    width: calc(100% - 24px);
  }

  .banner-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 20px;
  }
  
  .banner-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .banner-desc {
    margin: 0 auto;
  }

  .banner-bento-spotlight {
    margin: 0 auto;
    max-width: 640px;
  }
  
  .explore-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .navbar-container {
    padding: 8px 16px;
    border-radius: 24px;
    top: 10px;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .nav-logo-img {
    height: 36px !important;
  }

  .live-clock {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .explore-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .explore-card {
    flex-direction: column-reverse;
    height: auto;
    min-height: auto;
    aspect-ratio: auto;
    padding: 24px;
    gap: 20px;
  }
  
  .card-right-col {
    width: 100%;
    min-width: 100%;
    align-items: stretch;
  }
  
  .card-illustration-container {
    height: 140px;
  }
  
  .card-right-bottom {
    margin-top: 12px;
    justify-content: space-between;
  }
  
  .card-features {
    gap: 12px;
    padding-top: 16px;
  }
  
  .banner-section {
    padding: 140px 20px 50px;
  }
  
  .banner-title {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }
  
  .explorer-controls-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .explorer-search-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-box-minimal {
    flex-grow: 1;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .banner-bento-spotlight {
    grid-template-columns: 1fr;
  }

  .bento-main-card {
    height: 200px;
  }

  .live-clock {
    display: none;
  }
}
