/* Clean Header Styles - Inspired by learn-haskell.blog */

/* Header Top Section with Social Links */
.header-top {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 0.5rem 0;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  color: #A8D8B9;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.social-link:hover {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.1);
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ff88;
  text-align: center;
  margin: 2rem 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-subtitle {
  font-size: 1.3rem;
  color: #00ff88;
  text-align: center;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.site-description {
  font-size: 1.1rem;
  color: #A8D8B9;
  text-align: center;
  margin: 0 0 2rem 0;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced Navigation Styling */
.main-nav {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(10px);
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0;
  position: relative;
}

.nav-link {
  color: #A8D8B9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.nav-link.active {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.nav-link i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-link span {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-link.external {
  position: relative;
}

.external-icon {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #A8D8B9;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
  background: #00ff88;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .header-top {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .site-title {
    font-size: 2rem;
    margin: 1.5rem 0 0.5rem 0;
  }
  
  .site-subtitle {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    padding: 0 1rem;
  }
  
  .site-description {
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    padding: 0 1rem;
  }
  
  .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    max-width: 100%;
  }
  
  .nav-item {
    flex: 0 0 auto;
  }
  
  .nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .nav-link i {
    font-size: 0.8rem;
  }
  
  .nav-link span {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .site-title {
    font-size: 1.75rem;
  }
  
  .site-subtitle {
    font-size: 1rem;
  }
  
  .site-description {
    font-size: 0.95rem;
  }
  
  .nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
