@import "style.css";
/* ============================================================
   BioLeague Competition UI
   ============================================================ */

/* Ensure light-mode variables exist even if the imported stylesheet
   uses a non-standard selector for :root. */
:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-card: #ffffff;
  --bg-logo: #ffffff;
  --bg-input: #F9FAFB;
  --text: #111827;
  --text-muted: #4b5563;
  --text-faint: #9ca3af;
  --border: #E5E7EB;
  --border-soft: #f3f4f6;
  --navbar-bg: rgb(253, 253, 253);
  --navbar-scrolled: rgba(255, 255, 255, 0.98);
  --dropdown-bg: #ffffff;
  --hover-bg: #f3f4f6;
  --partner-bg: #f9fafb;
  --contact-bg: #F9FAFB;
  --icon-bg: #f3f4f6;
  --icon-color: #4b5563;
  --social-btn-bg: #f3f4f6;
}

/* Hero */
.bl-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom, #0a0e27 0%, #1a1f3a 65%, #0f1429 100%);
}

.bl-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.75;
  animation: bl-orb-float 9s ease-in-out infinite;
}

.bl-orb--1 {
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(53, 128, 98, 0.22) 0%, transparent 70%);
  top: -14rem;
  left: -18rem;
}

.bl-orb--2 {
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(57, 176, 144, 0.14) 0%, transparent 70%);
  bottom: -10rem;
  right: -12rem;
  animation-delay: 3s;
}

.bl-orb--3 {
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(29, 88, 88, 0.18) 0%, transparent 70%);
  top: 25%;
  left: 55%;
  animation-delay: 7s;
}

@keyframes bl-orb-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

.bl-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 176, 144, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 176, 144, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.65;
}

.bl-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 84rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.bl-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(57, 176, 144, 0.12);
  border: 1px solid rgba(57, 176, 144, 0.3);
  color: #39b090;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bl-hero__title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.bl-hero__title span {
  background: linear-gradient(to right, #39b090, #4daf82);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 640px) {
  .bl-hero__title {
    font-size: 4.2rem;
  }
}

.bl-hero__subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 56rem;
  line-height: 1.75;
  margin-bottom: 2.1rem;
}

.bl-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .bl-hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.bl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(57, 176, 144, 0.35);
  background: rgba(57, 176, 144, 0.06);
  color: #e7edf5;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bl-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  background: rgba(57, 176, 144, 0.12);
}

/* Sections */
.bl-section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
}

@media (min-width: 640px) {
  .bl-section {
    padding: 5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bl-section {
    padding: 6rem 2rem;
  }
}

.bl-inner {
  max-width: 84rem;
  margin: 0 auto;
}

.bl-section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.bl-section__head h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .bl-section__head h2 {
    font-size: 3rem;
  }
}

.bl-section__head p {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 44rem;
  margin: 0 auto;
}

.bl-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .bl-grid-2 {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

/* Prize / info cards */
.bl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.bl-card:hover {
 transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 0 15px rgba(57, 176, 144, 0.4),
    0 0 30px rgba(57, 176, 144, 0.3),
    0 0 60px rgba(57, 176, 144, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.15);

  border-color: rgba(57, 176, 144, 0.6);
}


.bl-card {
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}

.bl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(57, 176, 144, 0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bl-card:hover::after {
  opacity: 1;
}

.bl-card:hover {
  transform: translateY(-6px) scale(1.02);
}




.bl-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.bl-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.bl-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bl-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
  line-height: 1.7;
}

.bl-list__dot {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #358062, #39b090);
}

/* PDF Cards */
.pdf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pdf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pdf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pdf-card {
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
}

.pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(53, 128, 98, 0.35);
}



.pdf-card {
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}

.pdf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(57, 176, 144, 0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pdf-card:hover::after {
  opacity: 1;
}

.pdf-card:hover {
  transform: translateY(-6px) scale(1.02);
}



.pdf-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pdf-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(53, 128, 98, 0.12), rgba(57, 176, 144, 0.12));
  border: 1px solid rgba(53, 128, 98, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.pdf-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pdf-card__meta {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.pdf-card__title {
  font-size: 1.06rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.pdf-card__desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.pdf-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pdf-card__actions {
    flex-direction: row;
  }
}

.pdf-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 0.95rem;
}

.pdf-card__btn:active {
  transform: translateY(0);
}

.pdf-card__btn--primary {
  background: linear-gradient(135deg, #358062, #1D5858);
  color: #fff;
  border-color: rgba(53, 128, 98, 0.35);
  box-shadow: 0 10px 22px rgba(53, 128, 98, 0.25);
}

.pdf-card__btn--primary:hover {
  transform: translateY(-2px);
}

.pdf-card__btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-soft);
}

.pdf-card__btn--ghost:hover {
  background: rgba(53, 128, 98, 0.05);
  border-color: rgba(53, 128, 98, 0.35);
  transform: translateY(-2px);
}

.pdf-card__btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* PDF Modal */
.pdf-modal__content {
  max-width: 1100px !important;
  width: 95% !important;
  max-height: 92vh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.pdf-modal__body {
  padding: 0;
  background: #ffffff;
  height: 100%;
  display: flex;
}

body.dark-mode .pdf-modal__body {
  background: #0f1117;
}

.pdf-modal__frame {
  flex: 1;
  width: 100%;
  height: 100%;
  height: 450px;
  border: 0;
  background: #fff;
}

body.dark-mode .pdf-modal__frame {
  /* Best-effort "dark reading" for embedded PDF rendering */
  filter: invert(1) hue-rotate(180deg) saturate(0.9);
}

.pdf-modal__toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem;
}

/* Form */
.bl-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  padding: 2.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.bl-form h3 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.bl-form p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.bl-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bl-form__grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.2px;
}

.field label .req {
  color: #dc2626;
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(57, 176, 144, 0.65);
  box-shadow: 0 0 0 4px rgba(57, 176, 144, 0.15);
  background: var(--bg);
}

.bl-form__actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.bl-status {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.bl-status.show {
  display: block;
}

.bl-status.success {
  background: rgba(57, 176, 144, 0.12);
  border-color: rgba(57, 176, 144, 0.3);
}

.bl-status.error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.22);
}

