/* style.css - Design tokens & custom overrides */
/* OPC Router + OPCTurkey business-grade palette */

:root {
  --brand-500: #004A99;
  --brand-600: #003d7a;
  --brand-700: #00305c;
  --brand-50: #e8f1f9;
  --brand-100: #d1e3f3;
  --brand-200: #a3c7e7;
  --turkey-500: #C41E3A;
  --accent: #00838F;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --transition-base: 0.2s ease;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations not in default Tailwind */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page transition states managed by JS classes, but ensure smooth properties */
#app {
  transition-property: opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

/* Print styles - Remove unnecessary UI when printing */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  /* Ensure links show URLs when printing */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    opacity: 0.7;
  }
  
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-50);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-200);
}

/* Focus visible - WCAG AA compliant */
*:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

/* Remove tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Blog post share buttons – FontAwesome icons + platform colors */
.share-whatsapp {
  background-color: #25d366;
}
.share-whatsapp:hover {
  background-color: #20bd5a;
}

.share-facebook {
  background-color: #1877f2;
}
.share-facebook:hover {
  background-color: #166fe5;
}

.share-x {
  background-color: #0f1419;
}
.share-x:hover {
  background-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.share-email {
  background-color: #ea4335;
}
.share-email:hover {
  background-color: #d93a2c;
}