/* VOCPhone Channel Download Page Styles
 * Shared styles for alpha/beta channel pages with portal design system
 */

/* Page wrapper */
.page-wrapper {
  min-height: 100vh;
  background: var(--portal-bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ============================================
   HERO SECTION
   ============================================ */
.channel-hero {
  background:
    linear-gradient(135deg, rgba(7, 61, 84, 0.3) 0%, rgba(10, 82, 112, 0.2) 100%),
    url('/assets/images/abstract_background.webp') center / cover no-repeat;
  background-color: #073d54;
  background-blend-mode: normal, overlay;
  color: #ffffff;
  text-align: center;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

.channel-hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.channel-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.channel-hero p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 24px;
}

.channel-hero p:last-of-type {
  margin-bottom: 0;
}

/* Channel badges */
.channel-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
  vertical-align: middle;
}

.channel-badge.beta {
  background: #f59e0b;
  color: #ffffff;
}

.channel-badge.alpha {
  background: #ef4444;
  color: #ffffff;
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  text-align: center;
}

.section-heading h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--portal-navy);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.section-heading p {
  font-size: 0.9375rem;
  color: var(--portal-text-muted);
  margin: 0;
}

/* ============================================
   PLATFORM CARDS GRID (3-column for desktop only)
   ============================================ */
.platform-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ============================================
   PLATFORM CARD
   ============================================ */
.platform-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius-card);
  box-shadow: var(--portal-shadow-card-sm);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  min-width: 0;
  overflow: hidden;
}

.platform-card:hover {
  box-shadow: var(--portal-shadow-card);
  transform: translateY(-4px);
}

.platform-card.highlighted {
  border-color: var(--portal-orange);
  box-shadow: var(--portal-shadow-card), 0 0 0 1px rgba(255, 109, 84, 0.1);
}

/* Card icon */
.platform-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.platform-card-icon svg {
  width: 36px;
  height: 36px;
}

.platform-card-icon.macos {
  background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
  color: #ffffff;
}

.platform-card-icon.windows {
  background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
  color: #ffffff;
}

.platform-card-icon.linux {
  background: linear-gradient(135deg, #e95420 0%, #f47b50 100%);
  color: #ffffff;
}

/* Card title */
.platform-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--portal-navy);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.platform-card-subtitle {
  font-size: 0.8125rem;
  color: var(--portal-text-muted);
  margin: 0 0 20px;
  line-height: 1.4;
}

/* Card downloads area */
.platform-card-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

/* Card meta */
.platform-card-meta {
  font-size: 0.75rem;
  color: var(--portal-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.platform-card-meta .separator {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--portal-text-muted);
  border-radius: 50%;
  opacity: 0.5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--portal-orange);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--portal-radius-button);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--portal-shadow-button);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  word-break: break-word;
}

.btn-primary:hover {
  background: var(--portal-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 109, 84, 0.45);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary:active {
  background: var(--portal-orange-dark);
  transform: translateY(0);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--portal-navy);
  text-decoration: none;
  border-radius: var(--portal-radius-button);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid var(--portal-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 100%;
  min-width: 0;
  word-break: break-word;
}

.btn-secondary:hover {
  border-color: var(--portal-teal);
  color: var(--portal-teal);
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-detail {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Unavailable state */
.platform-unavailable {
  padding: 16px;
  background: var(--portal-bg);
  border-radius: var(--portal-radius-sm);
  color: var(--portal-text-muted);
  font-size: 0.8125rem;
  width: 100%;
}

/* ============================================
   STABLE LINK CARD
   ============================================ */
.stable-link {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.stable-link-card {
  background: var(--portal-white);
  border-radius: var(--portal-radius-card);
  box-shadow: var(--portal-shadow-card-sm);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stable-link-card p {
  color: var(--portal-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.stable-link-card a {
  color: var(--portal-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.stable-link-card a:hover {
  color: var(--portal-navy);
  text-decoration: underline;
}

/* ============================================
   PAGE FOOTER
   ============================================ */
.page-footer {
  margin-top: auto;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--portal-border);
  background: var(--portal-white);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--portal-teal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--portal-navy);
  text-decoration: underline;
}

.footer-divider {
  color: var(--portal-border);
  font-size: 0.875rem;
}

.page-footer .terms-text {
  color: var(--portal-text-muted);
  font-size: 0.75rem;
  margin: 0;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.loading-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--portal-text-muted);
  font-size: 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--portal-border);
  border-top-color: var(--portal-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  max-width: 480px;
  margin: 80px auto;
  padding: 36px;
  text-align: center;
  background: var(--portal-white);
  border-radius: var(--portal-radius-card);
  box-shadow: var(--portal-shadow-card-sm);
}

.error-state h2 {
  font-size: 1.25rem;
  color: var(--portal-navy);
  margin-bottom: 12px;
}

.error-state p {
  color: var(--portal-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .channel-hero {
    padding: 36px 20px 32px;
  }

  .channel-hero h1 {
    font-size: 1.5rem;
  }

  .channel-hero p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px 40px;
    gap: 12px;
  }

  .platform-card {
    padding: 24px 16px;
  }

  .platform-card:hover {
    transform: none;
  }

  .platform-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .platform-card-icon svg {
    width: 30px;
    height: 30px;
  }

  .section-heading {
    padding: 32px 16px 4px;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

  .stable-link-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .stable-link {
    padding: 0 16px 40px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .channel-hero {
    padding: 32px 16px 28px;
  }

  .channel-hero h1 {
    font-size: 1.25rem;
  }

  .channel-hero p {
    font-size: 0.8125rem;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .platform-card {
    padding: 20px 16px;
  }

  .platform-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .platform-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .platform-card-title {
    font-size: 1rem;
  }

  .platform-card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  .platform-card-downloads {
    margin-bottom: 8px;
  }

  .section-heading {
    padding: 24px 16px 4px;
  }

  .page-footer {
    padding: 24px 16px;
  }
}
