/* Complete Navbar & Search Overlay Styles - Extracted from index.html */
/* This file contains all the critical inline CSS needed for blog pages */

:root {
  /* Deep Burgundy-Purple Primary Palette */
  --primary: #4E102F;
  --primary-50: #faf8f9;
  --primary-100: #f4f0f2;
  --primary-200: #e9dde2;
  --primary-300: #d6c2ca;
  --primary-400: #bf9ca8;
  --primary-500: #4E102F;
  --primary-600: #6b1d42;
  --primary-700: #7d2350;
  --primary-800: #8f2a5e;
  --primary-900: #a1316c;
  
  /* Warm Taupe Secondary Palette */
  --secondary: #8b7d73;
  --secondary-50: #faf9f8;
  --secondary-100: #f5f3f1;
  --secondary-200: #ebe6e2;
  --secondary-300: #ddd4cd;
  --secondary-400: #c9bab0;
  --secondary-500: #8b7d73;
  --secondary-600: #6d5f55;
  --secondary-700: #524740;
  --secondary-800: #3a332e;
  --secondary-900: #2b2520;
  
  /* Platinum / Silver Accent Colors */
  --accent: #E5E4E2;      /* Platinum */
  --accent-light: #f3f4f6; /* Soft silver highlight */
  --accent-dark: #9ca3af;  /* Muted deep silver */
  
  /* Enhanced Opacity System */
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  
  --black-05: rgba(0, 0, 0, 0.05);
  --black-10: rgba(0, 0, 0, 0.1);
  --black-15: rgba(0, 0, 0, 0.15);
}

/* Enhanced Search Overlay Styles */
.search-overlay {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.search-overlay.active .search-modal {
  transform: scale(1);
  opacity: 1;
}

/* Search Particles Animation */
.search-particle {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  25% { transform: translateY(-20px) rotate(90deg); opacity: 0.6; }
  50% { transform: translateY(-10px) rotate(180deg); opacity: 0.8; }
  75% { transform: translateY(-30px) rotate(270deg); opacity: 0.4; }
}

/* Search Modal Animations */
.search-modal {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Search Input Enhancements */
.search-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(78, 16, 47, 0.1);
}

/* Scrollbar styles moved to typography-system.css for unified design */

/* Search Result Items */
.search-result-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(78, 16, 47, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.search-result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(78, 16, 47, 0.15);
  border-color: rgba(78, 16, 47, 0.2);
}

/* Enhanced Search Button Styles */
.search-btn {
  position: relative;
  min-width: 44px;
  min-height: 44px;
}

.search-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-btn:hover::before {
  opacity: 1;
}

.search-btn:active {
  transform: scale(0.95);
}

/* Loading Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navbar Outer Layer - Exact from index.html */
.navbar {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02), 
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

/* Navbar Shine Animation - Exact from index.html */
.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.navbar:hover::after {
  left: 100%;
}

/* Nav-Container - Exact from index.html */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem !important;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.02) 0%, 
    rgba(255, 255, 255, 0.01) 50%, 
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 0 0 20px 20px;
  pointer-events: none;
}

/* Nav Links Container - Right Aligned */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

/* Logo Container - Complete Glassmorphic Styling */
.logo {
  font-family: "Helvetica", "Arial", sans-serif !important;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 0.5rem 1rem !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  transition: all 0.4s ease-in-out !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* Logo Text Styling */
.logo h1,
.logo .text-lg {
  font-family: "Helvetica", "Arial", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Logo Shimmer Effect */
.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(137, 47, 85, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

/* Logo Hover Effect */
.logo:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05),
              0 1px 0 rgba(255, 255, 255, 0.6) inset !important;
  background: rgba(255, 255, 255, 0.65) !important;
  border-color: rgba(78, 16, 47, 0.05) !important;
  text-decoration: none;
}

.logo:hover::before {
  left: 100%;
}

/* Logo Image Styling */
.logo img {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 4px 6px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important;
}

/* Nav-Link Styling - Exact from index.html */
.nav-link {
  font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
  color: #4E102F !important;
  text-decoration: none;
  font-weight: 700 !important; /* Bold text for navigation links */
  font-size: 0.9rem;
  transition: all 0.4s ease-in-out !important;
  letter-spacing: 0.25px;
  position: relative;
  padding: 0.6rem 1rem !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin: 0 0.25rem;
  overflow: hidden;
}

/* Shimmer effect on nav links */
.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(137, 47, 85, 0.2),
    transparent
  );
  transition: left 0.4s ease;
}

/* Platinum / Silver accent underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #E5E4E2;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Burgundy glow border hover effect */
.nav-link:hover {
  color: #4E102F !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #873157 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 15px rgba(135, 49, 87, 0.6),
              0 0 25px rgba(135, 49, 87, 0.4),
              0 0 35px rgba(135, 49, 87, 0.2),
              inset 0 0 10px rgba(135, 49, 87, 0.1) !important;
}

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

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button Styling */
#mobile-menu-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

#mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#mobile-menu-button:active {
  transform: scale(0.95);
}

/* Page Hero Section - Ensure Background Displays */
.page-hero {
  position: relative !important;
  background: #4E102F !important; /* Solid burgundy background */
  overflow: hidden !important;
  min-height: 400px;
  z-index: 1;
}

.page-hero .absolute.inset-0 {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-hero > .absolute.inset-0:first-of-type {
  background: rgba(0, 0, 0, 0.2) !important;
  z-index: 2;
}

.page-hero > .absolute.inset-0:nth-of-type(2) {
  opacity: 0.1;
  z-index: 2;
}

.page-hero > .relative {
  position: relative !important;
  z-index: 10 !important;
}

/* Professional Typography for Hero Sections */
.page-hero h1 {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-hero p {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

/* Breadcrumb Professional Styling */
.page-hero nav {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.page-hero nav a {
  transition: color 0.2s ease;
  text-decoration: none;
}

.page-hero nav a:hover {
  color: #E5E4E2 !important;
}

/* Article Meta Professional Styling */
.page-hero .flex.items-center.justify-center {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .flex.items-center.justify-center i {
  opacity: 0.9;
}

/* Responsive Adjustments - Match index.html */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0.4rem 0.8rem !important;
  }
  
  .nav-links {
    gap: 2rem;
    margin-right: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.8rem !important;
  }
  
  .search-btn {
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 10px !important;
  }
  
  .search-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.6rem !important;
  }
  
  .search-btn {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 8px !important;
  }
  
  .search-btn svg {
    width: 16px;
    height: 16px;
  }
}
