/* =====================================================================
   ODYSSEY — Competitions Page Stylesheet
   Global Engineering Challenges & Autonomous Robotics Competitions
   ===================================================================== */

/* ---------------------------------------------------------------------
   Page Layout & Background
   --------------------------------------------------------------------- */
.competitions-hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
  overflow: hidden;
}

.competitions-hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.competitions-hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(4px);
}

.competitions-hero .inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.competitions-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
  margin: 16px 0 20px;
  letter-spacing: -0.01em;
}

.competitions-hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto;
}

/* Starfield ambient animation background */
.comp-starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(249, 115, 22, 0.12), transparent 60%),
    radial-gradient(900px 600px at 80% 50%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(800px 500px at 20% 90%, rgba(52, 211, 153, 0.08), transparent 60%),
    var(--bg-0);
}

/* ---------------------------------------------------------------------
   Page 7 Replicating Cards: Suggested Quick Cards
   --------------------------------------------------------------------- */
.suggested-cards-section {
  position: relative;
  z-index: 2;
  padding: 20px 0 60px;
}

.suggested-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.comp-preview-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.comp-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(249, 115, 22, 0.15);
}

.comp-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.comp-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.comp-preview-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.comp-preview-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.comp-preview-card:hover .comp-preview-icon-link {
  background: var(--amber);
  color: #000;
  transform: scale(1.1);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
  margin-bottom: 16px;
}

.status-badge.participating {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}

.status-badge.participating::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-green 2s infinite;
}

.status-badge.preparing {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan);
}

.status-badge.preparing::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes pulse-green {
  0% { opacity: 0.6; }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.6; }
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
  transition: gap 0.3s ease;
}

.comp-preview-card:hover .learn-more-btn {
  gap: 10px;
}

/* ---------------------------------------------------------------------
   Detailed Competition Sections
   --------------------------------------------------------------------- */
.competition-detail-card {
  position: relative;
  z-index: 2;
  background: rgba(13, 17, 32, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 44px;
  margin-bottom: 60px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .competition-detail-card {
    padding: 24px 18px;
  }
}

.comp-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.comp-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
}

.comp-focus-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--amber);
  font-weight: 500;
}

.comp-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .comp-grid-2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.comp-subheading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comp-subheading::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--amber);
  border-radius: 2px;
}

.comp-body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Objectives Grid */
.objectives-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.objective-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.obj-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Tech Grid */
.tech-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tech-pill:hover {
  transform: translateY(-2px);
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--amber);
}

.tech-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------------------------------------------------------------------
   Faculty Coordinators & Team Roster
   --------------------------------------------------------------------- */
.coordinators-box {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.coordinators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.coord-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.coord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
}

.coord-info h5 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}

.coord-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.coord-info a {
  font-size: 0.82rem;
  color: var(--cyan);
  text-decoration: underline;
}

/* Team Roster Grid */
.roster-container {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.roster-card {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.roster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
}

.roster-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.roster-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roster-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 2px 0 4px;
}

.roster-dept {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
}

.roster-id {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: monospace;
}

/* Institutional Approval Strip */
.approval-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.1), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.approval-badge-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.approval-seal {
  font-size: 1.3rem;
}

/* ---------------------------------------------------------------------
   Why We Compete Section
   --------------------------------------------------------------------- */
.why-compete-section {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
}

.why-compete-box {
  background: linear-gradient(135deg, rgba(13, 17, 32, 0.9) 0%, rgba(8, 10, 18, 0.95) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 28px;
  padding: 56px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .why-compete-box {
    padding: 36px 20px;
  }
}

.why-compete-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.why-compete-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.5;
  color: #fff;
  max-width: 920px;
  margin: 20px auto 30px;
  position: relative;
  z-index: 1;
}

.why-compete-quote span {
  color: var(--amber);
  font-style: italic;
}

.pillars-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 36px auto 0;
  position: relative;
  z-index: 1;
}

.pillar-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}

.pillar-mini .icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pillar-mini h4 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

/* Quote band & CTA positioning */
.quote-band {
  position: relative;
  z-index: 3;
}
