/* ── ADMIN DOWNLOAD PAGE SPECIFIC STYLES ─────────────────────────────────── */

/* ── Internal Page Hero (matches about/academics pattern exactly) ─── */
.download-hero-section {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(26, 46, 74, 0.7) 100%);
  color: var(--white);
  padding-top: calc(80px + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero content */
.download-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(245, 158, 11, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.download-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.download-hero-eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--gold);
}

.download-hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 700;
}

.download-hero-title {
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.download-hero-desc {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── GATE SECTION ─────────────────────────────────────────────────── */
.gate-section {
  background-color: var(--off-white);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .gate-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.gate-wrapper {
  display: flex;
  justify-content: center;
}

/* ── LOCK CARD ────────────────────────────────────────────────────── */
/* Uses the same glassmorphism card pattern as the design system */
.lock-card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  width: 100%;
  max-width: 460px;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.lock-icon-container {
  width: 68px;
  height: 68px;
  background-color: rgba(230, 81, 0, 0.08);
  color: var(--gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
  transition: transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}

.lock-card:hover .lock-icon-container {
  transform: scale(1.08) rotate(-5deg);
  background-color: var(--gold);
  color: var(--white);
}

.lock-icon-container svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.lock-card-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.lock-title {
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: 6px;
}

.lock-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── GATE FORM ────────────────────────────────────────────────────── */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 6px;
}

.password-input {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.password-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(10, 22, 40, 0.07);
}

.password-input.input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.error-message {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--error);
  margin-top: 4px;
}

.error-message.visible {
  display: flex;
}

.error-message svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Unlock button reuses the site's .btn-primary pattern */
.btn-unlock {
  width: 100%;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  background-color: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

.btn-unlock:hover {
  background-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.35);
}

.btn-unlock:active {
  transform: scale(0.98);
}

.btn-unlock svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── SHAKE ANIMATION ─────────────────────────────────────────────── */
.shake {
  animation: shakeAnim 0.48s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-7px); }
  30%, 60%, 90% { transform: translateX(7px); }
}

/* ── DOWNLOADS SECTION (revealed after auth) ────────────────────── */
/* Note: display:none/block is toggled by download.js.               */
/* CSS only handles the opacity + translate transition.               */
.downloads-section {
  background-color: var(--off-white);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .downloads-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.downloads-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Platform grid — 3 columns on desktop, stacked on mobile */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

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

/* ── PLATFORM CARD ───────────────────────────────────────────────── */
/* Extends the .card component */
.platform-card {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.platform-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(230, 81, 0, 0.15);
}

/* Platform icon — matches feature-icon-container pattern */
.platform-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(230, 81, 0, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.platform-card:hover .platform-icon {
  transform: scale(1.1) rotate(3deg);
  background-color: var(--gold);
  color: var(--white);
}

.platform-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Platform badge — matches section-subtitle label style */
.platform-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.platform-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.platform-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: var(--space-md);
}

.platform-meta-item {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.platform-meta-item strong {
  color: var(--navy);
  font-weight: 600;
}

/* Download button — matches .btn-outline pattern with gold tint */
.btn-platform-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  margin-top: auto;
  background-color: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-platform-download:hover {
  background-color: var(--navy-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-platform-download:active {
  transform: scale(0.97);
}

.btn-platform-download svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── SECURITY NOTE ───────────────────────────────────────────────── */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.security-note svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: var(--gold);
}
