/* ==========================================================================
   IEEEXtreme 20.0 — Official IEEE SCT SB Representation Portal
   Clean, No-Glow, Fully Responsive
   ========================================================================== */

:root {
  --bg-dark: #020e26;
  --bg-navy: #051a4a;
  --bg-surface: rgba(7, 26, 75, 0.55);

  --coral-primary: #ff4747;
  --coral-hover: #ff5e5e;
  --coral-subtle: rgba(255, 71, 71, 0.12);

  --cyan-accent: #38bdf8;
  --yellow-accent: #f59e0b;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20bd5a;
  --whatsapp-subtle: rgba(37, 211, 102, 0.12);

  --text-white: #ffffff;
  --text-dim: #cbd5e1;
  --text-muted: #8da2c0;

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.04);
  --grid-line-major: rgba(255, 255, 255, 0.08);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blueprint Background — no glow */
.blueprint-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% -10%, #0c3596 0%, #051a4f 55%, #020e26 100%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-major) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px,
    24px 24px,
    120px 120px,
    120px 120px;
}

/* Main Page Container */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(16px, 5vw, 24px);
}

/* Top Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-logo-left,
.header-logo-right {
  display: flex;
  align-items: center;
}

.logo-sct {
  height: clamp(26px, 4vw, 38px);
  width: auto;
  max-width: clamp(80px, 15vw, 120px);
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.logo-sct:hover { opacity: 1; }

.logo-ieee {
  height: clamp(36px, 5.5vw, 54px);
  width: auto;
  max-width: clamp(110px, 20vw, 180px);
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
}

.logo-ieee:hover { transform: scale(1.03); }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hero Section */
.hero-section {
  padding: clamp(20px, 4vw, 36px) 0 clamp(16px, 3vw, 24px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Edition Pill */
.edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  font-weight: 700;
  color: #fff;
  background: var(--coral-subtle);
  border: 1px solid var(--coral-primary);
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 12px;
}

.edition-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--coral-primary);
  flex-shrink: 0;
}

/* Title Image */
.title-image-wrapper {
  width: 100%;
  max-width: clamp(240px, 60vw, 480px);
  margin: 8px 0 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.title-image:hover { transform: scale(1.02); }

.tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: clamp(20px, 4vw, 28px);
}

/* Deadline Banner */
.deadline-banner {
  width: 100%;
  background: rgba(255, 71, 71, 0.08);
  border: 1px solid rgba(255, 71, 71, 0.3);
  border-radius: 14px;
  padding: clamp(12px, 3vw, 16px) clamp(14px, 3.5vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 4vw, 28px);
  text-align: left;
}

.deadline-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deadline-icon { font-size: clamp(1.1rem, 3vw, 1.5rem); }

.deadline-text-wrap {
  display: flex;
  flex-direction: column;
}

.deadline-title {
  font-size: clamp(0.68rem, 1.6vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--coral-hover);
  font-weight: 700;
}

.deadline-timestamp {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
}

.deadline-sub {
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.countdown-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(2, 14, 38, 0.85);
  padding: 8px clamp(10px, 2.5vw, 16px);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* About Box */
.xtreme-about-box {
  width: 100%;
  text-align: left;
  background: rgba(5, 22, 64, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(16px, 4vw, 24px);
  margin-bottom: clamp(20px, 4vw, 28px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-header {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 700;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-paragraph {
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: clamp(0.78rem, 1.8vw, 0.84rem);
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--coral-primary);
  flex-shrink: 0;
}

/* Registration Workflow */
.registration-workflow {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.workflow-card {
  background: rgba(4, 18, 54, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(14px, 3.5vw, 20px) clamp(14px, 3.5vw, 22px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}

.workflow-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(6, 24, 70, 0.65);
}

.workflow-card-whatsapp {
  background: rgba(6, 32, 38, 0.65);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.workflow-card-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.55);
  background: rgba(8, 42, 50, 0.78);
}

.workflow-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.workflow-badge {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.6vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--cyan-accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.workflow-badge.badge-whatsapp {
  color: #25d366;
  background: var(--whatsapp-subtle);
  border-color: rgba(37, 211, 102, 0.35);
}

.workflow-label {
  font-size: clamp(0.84rem, 2.2vw, 0.94rem);
  font-weight: 600;
  color: var(--text-white);
}

.workflow-note {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -2px;
}

/* Action Buttons — no glow/shadow */
.btn-action {
  width: 100%;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 700;
  padding: clamp(13px, 3vw, 16px) clamp(14px, 3.5vw, 22px);
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-official {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--border-card);
}

.btn-official:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-official:active { transform: translateY(0); }

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-whatsapp:active { transform: translateY(0); }

.whatsapp-icon {
  width: clamp(18px, 3vw, 22px);
  height: clamp(18px, 3vw, 22px);
  flex-shrink: 0;
  fill: currentColor;
}

.btn-arrow {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  transition: transform 0.2s;
}

.btn-action:hover .btn-arrow { transform: translateX(4px); }

/* Footer */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(16px, 3vw, 24px);
  margin-top: clamp(20px, 4vw, 32px);
  border-top: 1px solid var(--border-subtle);
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
}

.footer-link {
  color: var(--cyan-accent);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: #ffffff; }

/* Responsive */
@media (max-width: 520px) {
  .deadline-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown-badge {
    width: 100%;
    justify-content: center;
  }
  .workflow-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .page-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
