/* =========================================
   EVENTS PAGE – GOT WINTERFELL THEME
   - Cold Dark UI
   - Frost glass panels
   - Icy blue glow
========================================= */

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.logo-img-only {
  width: 120px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logos-img-only {
  width: 120px;
  height: 100px;
  object-fit: contain;
}

.glow-bullets {
  list-style: none;
  padding-left: 0;
}

.glow-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

.glow-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #6c63ff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(108, 99, 255, 0.8);
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* CTA */
.cta-button {
  background: var(--accent-color);
  color: #05070b !important;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: 0.35s;
  box-shadow: 0 0 22px var(--accent-glow);
}

.cta-button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px var(--accent-glow);
}

.cta-button.active {
  background: linear-gradient(135deg, #9fd6ff, #cfeaff);
  box-shadow: 0 0 35px var(--accent-glow);
}

/* ================= FILTER MENU ================= */
.menu {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 140px auto 3rem;
  flex-wrap: wrap;
}

.menu button {
  background: rgba(159, 214, 255, 0.08);
  border: 1px solid rgba(159, 214, 255, 0.22);
  color: var(--text-secondary);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-tech);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.35s;
}

.menu button:hover {
  color: #fff;
  box-shadow: 0 0 22px var(--accent-glow);
  transform: translateY(-2px);
}

.menu button.active {
  background: var(--accent-color);
  color: #05070b;
  font-weight: 800;
  box-shadow: 0 0 28px var(--accent-glow);
}

/* ================= EVENT CARDS GRID ================= */
.cards {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* ================= RULE COLORS ================= */
.rule-prelims {
  color: #cfeaff;
}

.rule-mains {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ================= CARD ================= */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(8, 12, 18, 0.55);
  border: 1px solid rgba(159, 214, 255, 0.18);
  cursor: pointer;
  transition: 0.45s ease;
  box-shadow: 0 0 30px rgba(159, 214, 255, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 0, 0, 0.85)
  );
  z-index: 1;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(15%) contrast(110%);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 1.3rem;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Hover */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 55px rgba(159, 214, 255, 0.35),
    0 0 80px rgba(159, 214, 255, 0.2);
  border-color: rgba(159, 214, 255, 0.45);
}

/* ================= MODAL BACKDROP ================= */
.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.event-modal.active {
  display: flex;
}

/* ================= MODAL CONTAINER ================= */
.modal-content {
  width: 95%;
  max-width: 1050px;
  max-height: 90vh;
  overflow-y: auto;

  background: rgba(8, 12, 18, 0.75);
  border: 1px solid rgba(159, 214, 255, 0.25);
  border-radius: 26px;

  box-shadow:
    0 0 40px rgba(159, 214, 255, 0.25),
    0 0 120px rgba(159, 214, 255, 0.12);

  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= MODAL HEADER ================= */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid rgba(159, 214, 255, 0.2);
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent-color);
  letter-spacing: 1px;
  text-shadow: 0 0 18px var(--accent-glow);
}

.close-modal {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

/* ================= MODAL BODY ================= */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  padding: 2rem;
}

/* Image */
.event-image-container img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(159, 214, 255, 0.25);
  box-shadow: 0 0 30px rgba(159, 214, 255, 0.25);
}

/* ================= MODAL NAV ================= */
.modal-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.modal-nav-item {
  flex: 1;
  padding: 0.6rem;
  background: rgba(159, 214, 255, 0.08);
  border: 1px solid rgba(159, 214, 255, 0.22);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-tech);
}

.modal-nav-item.active,
.modal-nav-item:hover {
  background: var(--accent-color);
  color: #05070b;
  font-weight: 800;
}
/* ================= MODAL SECTIONS ================= */
.modal-section {
  display: none;
}

.modal-section.active {
  display: block;
}

/* ================= DETAILS ================= */
.details-item {
  margin-bottom: 1.3rem;
}

.details-item h4 {
  color: var(--accent-color);
  margin-bottom: 0.3rem;
  font-family: var(--font-tech);
}

.details-item p {
  color: var(--accent-color);
  line-height: 1.6;
}


/* ================= RULES ================= */
.rule-item {
  margin-bottom: 1.5rem;
}

.rule-item h4 {
  color: var(--accent-color);
  margin-bottom: 0.3rem;
}

/* ================= CONTACTS ================= */
.contacts-list {
  display: grid;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
   background: rgba(159, 214, 255, 0.08);
  border: 1px solidrgba(159, 214, 255, 0.22);
  padding: 1.1rem;
  border-radius: 18px;
}

.contact-icon {
  font-size: 1.8rem;
   color: var(--accent-color);
}

.contact-info h4 {
  margin-bottom: 0.2rem;
}

.contact-info p {
  font-size: 0.9rem;
 color: var(--accent-color);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .event-highlights {
    grid-template-columns: 1fr;
  }
}
