/**
 * Pauhu Shared Styles
 * Common styles for all pauhu.com pages (landing + MKdocs)
 * Ensures consistent header, footer, and banner across the site
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES - Brand Colors
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --pauhu-navy: #002855;
  --pauhu-navy-dark: #001a3d;
  --pauhu-navy-light: #003d7a;
  --pauhu-white: #ffffff;
  --pauhu-gray-50: #f8fafc;
  --pauhu-gray-100: #f1f5f9;
  --pauhu-gray-400: #94a3b8;
  --pauhu-gray-500: #64748b;
  --pauhu-gray-900: #0f172a;
  --pauhu-orange: #f97316;
  --pauhu-orange-dark: #ea580c;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BODY LAYOUT - Flex column for sticky footer
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .main, .hero, .md-main {
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAGING BANNER - Yellow notification bar
   ═══════════════════════════════════════════════════════════════════════════ */

.pauhu-staging-banner {
  background: #fecc03;
  color: #1e293b;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  z-index: 200;
}

.pauhu-staging-banner strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY HEADER - Landing pages
   ═══════════════════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--pauhu-navy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY FOOTER - Landing pages
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background-color: var(--pauhu-navy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMON FOOTER STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 1rem;
  color: #ffffff;
}

.footer-copyright a {
  color: #ffffff;
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.copy-vat {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  vertical-align: middle;
  opacity: 0.7;
}

.copy-vat:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--pauhu-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Mobile footer
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .eu-badges {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EU ECOSYSTEM BADGES
   ═══════════════════════════════════════════════════════════════════════════ */

.eu-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.eu-badges-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eu-logos-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.eu-badges-text {
  font-size: 1rem;
  color: #ffffff;
}

.eu-badge {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: opacity 0.2s ease;
}

.eu-badge:hover {
  color: var(--pauhu-white);
}

.pauhu-badge img {
  height: 30px;
  width: auto;
}

.eu-logo img {
  height: 30px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.eu-logo:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .eu-badges {
    gap: 1rem;
    padding: 1rem;
  }

  .eu-badges-row {
    flex-wrap: wrap;
  }

  .eu-logos-row {
    gap: 1rem;
  }
}
