/*
 * Shared Styles for Exista HTML Standalone Pages
 * Used by: Blog articles (/blog/*.html) and EVS Documentation (/docs/exista-visibility-score/*.html)
 * Maintains consistent branding with React app
 */

/* CSS Variables - Consistent with React app */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

/* =================================
   SITE HEADER (Main Navigation)
   ================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.site-header .logo:hover {
  transform: scale(1.02);
}

.site-header .logo img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.site-header .logo:hover img {
  transform: scale(1.1) rotate(6deg);
}

.site-header .logo-text {
  display: flex;
  flex-direction: column;
}

.site-header .logo-brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.site-header .logo-brand .io {
  color: var(--blue-700);
}

.site-header .logo-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 0.125rem;
}

/* Navigation */
.site-header nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-header nav {
    display: flex;
  }
}

.site-header nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--blue-700);
}

.site-header nav .cta-button {
  background: var(--blue-700);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header nav .cta-button:hover {
  background: var(--blue-800);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: white;
  border-top: 1px solid var(--gray-100);
  margin-top: 1rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--blue-700);
}

.mobile-nav .cta-button {
  background: var(--blue-700);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

/* =================================
   SITE FOOTER (Main Footer)
   ================================= */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--gray-200);
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.site-footer .footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Footer Brand */
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer .footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.site-footer .footer-brand .logo img {
  width: 40px;
  height: 40px;
}

.site-footer .footer-brand .logo-brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.site-footer .footer-brand .logo-brand .io {
  color: var(--blue-700);
}

.site-footer .footer-brand .logo-text {
  display: flex;
  flex-direction: column;
}

.site-footer .footer-brand .logo-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 0.125rem;
}

.site-footer .footer-brand .description {
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 400px;
}

/* Social Links */
.site-footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer .social-links a:hover {
  background: var(--blue-700);
  color: white;
  border-color: var(--blue-700);
  transform: translateY(-2px);
}

/* Footer Navigation Columns */
.site-footer .footer-column h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.site-footer .footer-column nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .footer-column a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.site-footer .footer-column a:hover {
  color: var(--blue-700);
}

.site-footer .footer-column p {
  color: var(--gray-600);
  font-size: 0.9375rem;
  margin: 0;
}

/* Footer Bottom */
.site-footer .footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.site-footer .footer-bottom a {
  color: var(--blue-700);
  text-decoration: none;
}

.site-footer .footer-bottom .logo-brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.site-footer .footer-bottom .logo-brand .io {
  color: var(--blue-700);
}

/* =================================
   EVS HEADER (For EVS Docs)
   ================================= */

.evs-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.evs-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evs-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.evs-header .logo:hover {
  transform: scale(1.02);
}

.evs-header .logo img {
  width: 40px;
  height: 40px;
}

.evs-header .logo-brand {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.evs-header .logo-brand .io {
  color: var(--blue-700);
}

.evs-header .logo-text {
  display: flex;
  flex-direction: column;
}

.evs-header .logo-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 0.125rem;
}

.evs-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.evs-header nav a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.evs-header nav a:hover {
  color: var(--blue-700);
}

.evs-header nav .cta-button {
  background: var(--blue-700);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.evs-header nav .cta-button:hover {
  background: var(--blue-800);
}

/* =================================
   UTILITY CLASSES
   ================================= */

.body-with-header {
  padding-top: 80px; /* Account for fixed header */
}

/* Responsive utilities */
@media (max-width: 767px) {
  .site-header .container {
    flex-wrap: wrap;
  }

  .evs-header nav {
    display: none;
  }
}

/* Icon Styles (for social media icons) */
.icon-linkedin::before { content: "in"; }
.icon-instagram::before { content: "📷"; }
.icon-twitter::before { content: "𝕏"; }
.icon-email::before { content: "✉"; }
