/* Base & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #7b9943; /* Spillere Green 500 */
  --primary-dark: #627a35; /* Spillere Green 600 */
  --primary-light: #f4f7ed; /* Spillere Green 50 */

  --secondary-color: #4e612b; /* Spillere Green 700 */

  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */

  --bg-light: #f8fafc; /* Slate 50 */
  --white: #ffffff;

  --font-sans: "Inter", sans-serif;
}

html,
body {
  font-family: var(--font-sans);
  line-height: 1.5;
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
}

/* Utilities (Tailwind-like subset for pure CSS) */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton & Staggered Animations */
.skeleton {
  background: linear-gradient(
    90deg,
    #f1f5f9 25%,
    #e2e8f0 50%,
    #f1f5f9 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: 0.75rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-stagger-item {
  opacity: 0;
  transform: translateY(10px);
  animation: staggerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Bottom Bar Assets */
.mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 -4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Sidebar / Navbar Active State */
.nav-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Sticky Header Shrink Effect */
#navbar {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#header-content {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar img {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-shrink {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1) !important;
}

.navbar-shrink #header-content {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.navbar-shrink img {
  height: 3.5rem !important; /* Smaler logo on scroll */
}

@media (min-width: 768px) {
  .navbar-shrink img {
    height: 4rem !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .view-section {
    padding-top: 2rem;
  }
}

/* Exam Search Animation */
.exam-item:hover {
  transform: translateY(-2px);
}

/* Partner Grid Grayscale Transition */
#partners-grid > div {
  transition: all 0.3s ease;
}

/* Swiper Customization */
.swiper-pagination-bullet {
  background: #4e612b !important; /* Spillere Green 700 for better contrast */
  opacity: 0.5 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 8px !important; /* Increase spacing */
}

.swiper-pagination-bullet-active {
  background: #4e612b !important;
  opacity: 1 !important;
  width: 28px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

/* Hide default Swiper icons since we are using Lucide */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

.swiper-button-next,
.swiper-button-prev {
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #f8fafc !important;
  transform: scale(1.1);
}

/* Mobile Optimizations - Touch Targets */
@media (max-width: 1024px) {
  .nav-link,
  button,
  a:not(.social-link) {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  #mobile-menu a {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Better touch targets for footer links */
  footer a {
    padding: 4px 0;
    display: inline-block;
  }
}

/* Improve Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7b9943;
  outline-offset: 2px;
}
