/* Header component styling */
:root {
  --primary-color: #4CAF50;
  --primary-hover: #3e8e41;
  --accent-color: #2E7D32;
  --text-color: #333;
  --light-bg: #f8f9fa;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* Style for navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
  background-color: var(--primary-color) !important;
  backdrop-filter: blur(10px);
}

/* Style for nav links */
.navbar .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s, transform 0.2s;
  background-color: transparent; /* Explicitly remove background color */
  border-radius: 0; /* Remove any border radius */
  font-family: 'Source Sans Pro', sans-serif;
  letter-spacing: 0.3px;
}

.navbar .nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  background-color: transparent; /* Ensure no background on hover */
}

/* Active link styling */
.navbar .nav-link.active {
  color: #ffffff;
  background-color: transparent; /* Ensure no background on active state */
}

.navbar .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* Brand styling */
.navbar-brand {
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.2s;
}

.navbar-brand .dictionary-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: #ffffff;
}

/* Add dictionary-themed decorative element */
.navbar::after {
  content: "Aa Bb Cc";
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: 'Playfair Display', serif;
  color: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  pointer-events: none;
}

/* Adjust content padding for fixed header */
body {
  padding-top: 70px;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
  .navbar .nav-link {
    padding: 0.5rem 0;
    margin: 0;
    background-color: transparent; /* Ensure no background on mobile */
  }
  
  .navbar .nav-link.active:after {
    height: 2px;
    bottom: 0;
  }
  
  .navbar::after {
    display: none;
  }
}