/* =======================================
   MatPulse Competition SEO Pages
   /competitions + /competitions/:slug
   ======================================= */

/* ---- Hero ---- */
.ce-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.ce-event-hero {
  padding: 80px 0 60px;
}

.ce-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,229,196,0.07) 0%, transparent 70%),
    linear-gradient(rgba(0,229,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,196,0.04) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 10%, transparent 100%);
}

.ce-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-breadcrumb {
  margin-bottom: 20px;
}

.ce-breadcrumb-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.ce-breadcrumb-link:hover { color: var(--accent); }

.ce-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.ce-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.ce-hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--fg);
}

.ce-accent { color: var(--accent); }

.ce-event-subhead {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--fg-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.ce-hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 36px;
}

.ce-cta-btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.ce-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ---- Event vitals row ---- */
.ce-event-vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.ce-vital {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--fg-muted);
}

.ce-vital svg { color: var(--accent); flex-shrink: 0; }

/* ---- Hero stats ---- */
.ce-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.ce-hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.ce-hero-stat:first-child { padding-left: 0; }

.ce-hero-stat-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}

.ce-hero-stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}

.ce-hero-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ---- Status badges ---- */
.ce-event-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.ce-status-upcoming {
  background: rgba(255,184,0,0.12);
  color: var(--amber);
  border: 1px solid rgba(255,184,0,0.3);
}

.ce-status-live {
  background: rgba(255,77,109,0.12);
  color: var(--coral);
  border: 1px solid rgba(255,77,109,0.3);
}

.ce-status-completed {
  background: rgba(255,255,255,0.06);
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.ce-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

.ce-dot-live {
  background: var(--coral);
  box-shadow: 0 0 6px var(--coral);
}

/* ---- Countdown ---- */
.ce-countdown-section {
  background: rgba(0,229,196,0.04);
  border-top: 1px solid rgba(0,229,196,0.1);
  border-bottom: 1px solid rgba(0,229,196,0.1);
  padding: 32px 0;
}

.ce-countdown-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.ce-countdown-label {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ce-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ce-count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.ce-count-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}

.ce-count-unit {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.ce-count-sep {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 40px;
  color: var(--fg-muted);
  opacity: 0.4;
  line-height: 1;
  padding-bottom: 14px;
}

/* ---- Email capture ---- */
.ce-capture-section {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1625 100%);
}

.ce-capture-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.ce-capture-h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--fg);
  line-height: 1.2;
}

.ce-capture-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.ce-capture-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ce-capture-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.ce-capture-input:focus {
  border-color: var(--accent);
}

.ce-capture-input::placeholder { color: var(--fg-muted); }

.ce-capture-btn {
  padding: 13px 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.ce-capture-btn:hover { opacity: 0.9; }

.ce-capture-success {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  padding: 16px;
}

/* ---- Events grid (hub) ---- */
.ce-events-section {
  padding: 80px 0;
  background: var(--bg);
}

.ce-events-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--fg);
}

.ce-section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.ce-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ce-event-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ce-event-card:hover {
  border-color: rgba(0,229,196,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.ce-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ce-event-year {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--fg-muted);
}

.ce-event-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 16px;
}

.ce-event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ce-event-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-muted);
}

.ce-event-detail svg { color: var(--accent); flex-shrink: 0; }

.ce-event-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ce-event-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ce-stat-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}

.ce-stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ce-event-cta {
  margin-top: auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

/* ---- About section ---- */
.ce-about-section {
  padding: 72px 0;
  background: #080f1a;
}

.ce-about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-about-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.ce-about-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}

.ce-detail-row {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ce-detail-row:last-child { border-bottom: none; }

.ce-detail-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--fg-muted);
  width: 90px;
  flex-shrink: 0;
}

.ce-detail-val {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}

/* ---- FAQ ---- */
.ce-faq-section {
  padding: 72px 0;
  background: var(--bg);
}

.ce-faq-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 32px;
}

.ce-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ce-faq-item:last-child { border-bottom: none; }

.ce-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.ce-faq-q:hover { background: rgba(255,255,255,0.02); }

.ce-faq-q[aria-expanded="true"] {
  background: rgba(0,229,196,0.04);
  color: var(--accent);
}

.ce-faq-arrow {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--accent);
}

.ce-faq-a {
  padding: 0 24px 20px;
}

.ce-faq-a p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- Why section (hub) ---- */
.ce-why-section {
  padding: 80px 0;
  background: #080f1a;
}

.ce-why-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.ce-why-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
}

.ce-why-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.ce-why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 10px;
}

.ce-why-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- Tools section ---- */
.ce-tools-section {
  padding: 72px 0;
  background: #080f1a;
}

.ce-tools-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.ce-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.ce-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.ce-tool-card:hover {
  border-color: rgba(0,229,196,0.25);
  transform: translateY(-2px);
}

.ce-tool-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ce-tool-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 8px;
}

.ce-tool-card p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .ce-hero-inner,
  .ce-events-inner,
  .ce-capture-inner,
  .ce-about-inner,
  .ce-faq-inner,
  .ce-tools-inner,
  .ce-why-inner,
  .ce-countdown-inner { padding: 0 20px; }

  .ce-hero { padding: 64px 0 48px; }
  .ce-event-hero { padding: 56px 0 40px; }

  .ce-hero-h1 { font-size: 32px; }

  .ce-hero-stats { flex-wrap: wrap; gap: 12px; }
  .ce-hero-stat { padding: 0; }
  .ce-hero-stat-div { display: none; }

  .ce-count-val { font-size: 36px; }
  .ce-count-box { padding: 0 12px; }

  .ce-event-vitals { flex-direction: column; gap: 10px; }
  .ce-capture-form { flex-direction: column; }
  .ce-capture-input { min-width: unset; }

  .ce-about-section,
  .ce-faq-section,
  .ce-events-section,
  .ce-tools-section,
  .ce-why-section { padding: 52px 0; }
}
