@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  z-index: 100;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 101;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modern-search-bar {
  display: flex;
  align-items: center;
  border: 1px solid rgba(38, 58, 92, 0.2);
  border-radius: 24px;
  padding: 0.5rem 1rem;
  background-color: #f7f9fc;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-input {
  flex: 1;
  border: none;
  background-color: transparent;
  font-size: 1rem;
  padding: 0.5rem;
  outline: none;
}

.modern-clear {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #888;
  font-size: 1.2rem;
}

body {
  min-height: 100vh;
  background: linear-gradient(130deg, #fbfdff 0%, #f4f6fb 35%, #e8effa 100%);
  font-family: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  color: #111d2e;
}

.landing-shell {
  position: relative;
  min-height: 100vh;
}

.landing-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(255,255,255,0));
  filter: blur(50px);
  top: -60px;
  left: 10%;
}

.landing-glow--right {
  left: auto;
  right: 2%;
  top: 160px;
  background: radial-gradient(circle, rgba(255, 205, 115, 0.5), rgba(255, 205, 115, 0));
}

.landing {
  position: relative;
  z-index: 10;
}

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.content--speakers {
  align-items: stretch;
  max-width: min(1320px, 100%);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.75rem;
  color: #6f7c99;
}

h1 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.65rem, 4vw, 3.9rem);
  color: #12213b;
  line-height: 1.15;
  margin: 0;
}

.highlight {
  color: #2c6dd3;
}

.lede {
  max-width: 640px;
  font-size: 1.13rem;
  color: #3b4a66;
  margin: 0 auto;
}

.glass-shell {
  border-radius: 36px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(17, 29, 46, 0.08);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
  padding: clamp(2.2rem, 4vw, 3rem);
}

.speakers-section {
  width: 100%;
}

.glass-inner {
  background: #fdfdfd;
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(120, 138, 168, 0.15);
}

.speakers-list {
  width: 100%;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 2vw, 2.5rem);
  padding: clamp(1.5rem, 2vw, 2.5rem) 0;
}

.speaker-card {
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
  border-radius: 20px;
  border: 1px solid rgba(18, 33, 59, 0.08);
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 40px rgba(8, 16, 33, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.speaker-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.speaker-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(28, 78, 139, 0.2);
}

.speaker-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.speaker-link {
  font-size: 0.9rem;
  color: #1e2f5b;
  text-decoration: none;
  font-weight: 600;
}

.speaker-link:hover {
  text-decoration: underline;
}

.search {
  margin-bottom: 0.5rem;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 58, 92, 0.2);
  background: linear-gradient(180deg, #ffffff, #f3f6fb);
}

.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #12213b;
}

.search-input input::placeholder {
  color: #8b97ad;
}

.search-input input:focus {
  outline: none;
}

.clear-btn {
  border: none;
  background: transparent;
  color: #9aa4b7;
  font-size: 1.2rem;
  padding: 0 0.2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-input:focus-within .clear-btn,
.clear-btn.visible {
  opacity: 1;
}

.notification-shell {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 50;
}

.notification-card {
  min-width: 240px;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  animation: fadeInUp 0.4s ease;
}

.notification-notice {
  background: linear-gradient(135deg, #0d47a1, #1e88e5);
}

.notification-alert {
  background: linear-gradient(135deg, #b71c1c, #ef5350);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel {
  background: #0c1725;
  border-radius: 24px;
  color: #f6fbff;
  padding: 2rem;
  box-shadow: 0 22px 45px rgba(5, 8, 22, 0.45);
}

.panel h2 {
  font-size: 1.8rem;
  margin: 0.9rem 0 0.6rem;
}

.panel p {
  margin: 0;
  line-height: 1.6;
}

.panel-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: #adc3e7;
}

.panel-meta span {
  position: relative;
  padding-left: 1.2rem;
}

.panel-meta span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #67c2ff;
}

.results-anchor {
  position: relative;
  width: 100%;
}

.search-results-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255,255,255,0.95);
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(171, 195, 224, 0.11);
  border: 1px solid rgba(150, 180, 230, 0.12);
  overflow: hidden;
  position: absolute;
  left: 0; right: 0;
  z-index: 10;
  margin-top: 0.5em;
  max-height: 20rem;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.9em 1.55em;
  border-bottom: 1px solid #f0f4fa;
  font-size: 1.05em;
  color: #233452;
  background: transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f5f9fd;
  transform: translateY(-1px);
}

.speaker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 8px 0 rgba(130, 150, 180, 0.1);
  border: 1px solid #ddeafb;
  background-color: #dbe8fa;
}

.add-speaker-btn {
  display: inline-flex; /* Better alignment */
  background: #1e2f5b;
  color: #f7fbff;
  font-weight: 600;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  border: none;
  font-size: 0.9em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.13s ease;
}

.add-speaker-btn:hover {
  background: #fff;
  color: #1e2f5b;
  transform: translateY(-1px);
}

.clear-btn {
  background: none;
  border: none;
  color: #9aa4b7;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.clear-btn.visible {
  opacity: 1;
}
