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

body {
  background-color: #000000;
  color: #ffffff;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  overflow-x: hidden;
}

/* Typography */
.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.765);
  gap: 0.9rem;
}

.main-title span {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.9;
  padding: 5px 10px;
}

/* Navbar */
.navbar {
  position: relative;
  /* position: absolute;
  top: 0;
  z-index: 100; */
  width: 100%;
  background: #000000;
  padding: 13px 40px;
}

.navbar nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  gap: 15px;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), #020617);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  border: solid 1px #000000;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 160ms ease,
    box-shadow 220ms ease;
}

.nav-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.36), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.nav-chip span {
  position: relative;
  z-index: 1;
}

.nav-chip .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316e6;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}

.nav-chip:hover {
  border: solid 1px rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle at 20% 0%, rgba(15, 23, 42, 0.96), #020617);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.nav-chip:hover::before {
  opacity: 1;
}

.nav-chip:active {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.8);
}

.nav-chip:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.9);
  outline-offset: 2px;
}

.navbar a:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: block;
  margin-top: 0;
}

.hero-content-wrapper {
  padding-top: 1px;
  max-width: 1280px;
  margin: 0 auto;
  height: 100vh;
  background: url("images/losing_gamble_hero_bg.jpg?v=3") no-repeat top center;
  background-size: contain;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  display: block;
  margin: 25vh auto auto auto;
  max-width: 800px;
  position: relative;
  z-index: 2;
}


/* Content Section */
.content-section {
  padding: 100px 20px;
}

.video-thumb-container {
  margin: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 5px;
}

.video-card {
  cursor: pointer;
  max-width: 550px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #000000;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.95), #020617)
    padding-box;
  backdrop-filter: blur(26px);
}

.video-card:hover {
  transform: translateY(-5px);
}

.thumbnail-container {
  position: relative;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.video-card:hover .thumbnail {
  filter: brightness(0.7);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(139, 0, 0, 0.9); /* Dark Red */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  z-index: 10;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.video-card:hover .play-button {
  background: rgba(197, 0, 0, 0.9); /* Dark Red */
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid white;
  margin-left: 5px;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card-description {
  font-size: 16px;
  color: #ffffff;
  opacity: 1;
  margin-bottom: 12px;
  line-height: 1.5;
  text-shadow: 3px 3px 25px #000000;
}

.metadata {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.5;
  letter-spacing: 1px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

#publicationsModal {
  max-height: 100vh;
  overflow-y: scroll;
  padding-top: 40px;
  align-items: start;
}

.modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer {
  text-align: center;
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 1px;
  margin-top: 60px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 10px;
}

/* Publications Modal Specific Styles */
.pub-modal-content {
  background: radial-gradient(circle at 0 0, rgb(2 3 5 / 98%), #000000);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(249, 115, 22, 0.1);
}

.publications-list h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.publications-list ul {
  list-style: none;
  padding: 0;
}

.publications-list li {
  margin-bottom: 15px;
}

.publications-list a {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.publications-list a:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateX(5px);
}

.pub-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.publications-list a:hover .pub-title {
  color: #f97316;
}

.pub-source {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.publications-list a:hover .pub-source {
  color: #f97316;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 15px;
  }
  .silhouette {
    height: 50vh;
    opacity: 0.4;
  }
  .silhouette-left {
    left: -10%;
  }
  .silhouette-right {
    right: -10%;
  }

  .main-title {
    font-size: 3rem;
    flex-direction: column;
    gap: 0rem;
    margin-top: 30px;
  }

  .page-content {
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
