/* =====================================================
   BLOG POST HEADER - BRAND DESIGN
   Poppins Font, Teal #17D2C2, Dark Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables - Brand Tokens */
:root {
  --brand: #17D2C2;
  --brand-300: #47E0D2;
  --brand-600: #12B7AB;
  --brand-gradient: linear-gradient(135deg, #12B7AB 0%, #17D2C2 50%, #47E0D2 100%);
  --bg-900: #0A0A0A;
  --bg-800: #121212;
  --surface-700: #1C1C1E;
  --border-600: #2A2A2C;
  --text: #FFFFFF;
  --text-2: #C7C7CC;
  --muted: #8E8E93;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =====================================================
   HEADER NAVBAR
   ===================================================== */
.mainheader-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-600);
  font-family: var(--font-sans);
}

.mainheader-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.mainheader-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

/* =====================================================
   LOGO
   ===================================================== */
.mainheader-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mainheader-logo:hover {
  transform: scale(1.05);
}

.mainheader-logo-img {
  height: 32px;
  width: auto;
}

/* =====================================================
   DESKTOP NAVIGATION
   ===================================================== */
.mainheader-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mainheader-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mainheader-nav-link:hover {
  background: var(--surface-700);
  color: var(--text);
}

.mainheader-nav-link.highlight {
  color: var(--brand-300);
}

.mainheader-nav-link.highlight:hover {
  background: rgba(23, 210, 194, 0.1);
  color: var(--brand);
}

.mainheader-nav-link svg {
  flex-shrink: 0;
}

/* =====================================================
   DESKTOP ACTIONS (BUTTONS)
   ===================================================== */
.mainheader-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mainheader-btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-600);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mainheader-btn-secondary:hover {
  background: var(--surface-700);
  border-color: var(--brand-300);
}

.mainheader-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 10px;
  color: var(--bg-900);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(23, 210, 194, 0.3);
  cursor: pointer;
}

.mainheader-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 210, 194, 0.4);
}

/* =====================================================
   MOBILE MENU BUTTON
   ===================================================== */
.mainheader-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mainheader-mobile-btn:hover {
  background: var(--surface-700);
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mainheader-mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-900);
  z-index: 999;
  overflow-y: auto;
  display: none;
}

.mobile-menu-content {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* Mobile Navigation Links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface-700);
  border: 1px solid var(--border-600);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--bg-800);
  border-color: var(--brand-300);
}

.mobile-nav-link svg {
  flex-shrink: 0;
  color: var(--brand-300);
}

/* Mobile Actions */
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-action-btn.primary {
  background: var(--brand-gradient);
  color: var(--bg-900);
  border: none;
  box-shadow: 0 4px 12px rgba(23, 210, 194, 0.3);
}

.mobile-action-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(23, 210, 194, 0.4);
}

.mobile-action-btn.secondary {
  background: var(--surface-700);
  border: 1px solid var(--border-600);
}

.mobile-action-btn.secondary:hover {
  background: var(--bg-800);
  border-color: var(--brand-300);
}

.mobile-action-btn.outline {
  background: transparent;
  border: 1px solid var(--border-600);
}

.mobile-action-btn.outline:hover {
  background: var(--surface-700);
  border-color: var(--brand-300);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-600);
  margin: 8px 0;
}

/* Mobile Platform Info */
.mobile-platform-info {
  padding: 24px;
  background: var(--surface-700);
  border: 1px solid var(--border-600);
  border-radius: 12px;
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-300);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* =====================================================
   RESPONSIVE - DESKTOP vs MOBILE
   ===================================================== */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mainheader-mobile-btn {
    display: block;
  }

  .mainheader-content {
    min-height: 56px;
  }

  .mainheader-logo-img {
    height: 28px;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}
