/* =============== PROFESSIONAL CSS FOR POPBRIZ GLOBAL =============== */

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --light-bg: #f8fafc;
  --dark-text: #1e293b;
  --light-text: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1.5rem;
  position: relative;
}

/* Logo Styles */
#navbar__logo {
  flex-shrink: 0;
  transition: var(--transition);
}

#navbar__logo img {
  height: 2.5rem;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

#navbar__logo:hover img {
  transform: scale(1.05);
}

/* Home Button - Always Visible */
.home-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-icon {
  font-size: 1.125rem;
}

.home-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 500px;
  margin: 0 1rem;
}

.search-container input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 0.875rem;
  outline: none;
  background: white;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-container input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#searchBtn {
  padding: 0.75rem 1.25rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

#searchBtn:hover {
  background: #eab308;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.search-text {
  font-size: 0.875rem;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 0.875rem;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.premium-link {
  background: linear-gradient(135deg, var(--accent-color), #fbbf24);
  color: #1e293b !important;
  font-weight: 600;
}

.premium-link:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.crown {
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Navbar Right */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Cart Button */
.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.cart-icon {
  font-size: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid var(--primary-dark);
}

/* =============== DROPDOWN HAMBURGER MENU =============== */

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  flex-direction: column;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1003;
}

.hamburger-line {
  width: 1.25rem;
  height: 2px;
  background: white;
  transition: var(--transition);
  border-radius: 1px;
}

.hamburger:hover .hamburger-line {
  background: rgba(255, 255, 255, 0.8);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown Mobile Navigation */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 1.5rem;
  width: 280px;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  max-height: 400px;
}

.mobile-nav-content {
  padding: 1rem 0;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-link {
  color: var(--dark-text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--light-bg);
  border-left-color: var(--primary-blue);
  color: var(--primary-blue);
}

.mobile-home-link {
  background: var(--light-bg);
  font-weight: 600;
}

.mobile-nav-link.premium-link {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404 !important;
  font-weight: 600;
  margin: 0.5rem 1rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-color);
}

.mobile-nav-link.premium-link:hover {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  transform: translateX(5px);
}

.nav-icon {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
}

/* Mobile Overlay - NO BLUR */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  /* NO backdrop-filter - removed blur completely */
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
main {
  min-height: calc(100vh - 76px);
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Content Loader */
.content-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.content-loader p {
  color: var(--secondary-color);
  font-size: 1rem;
}

.main-content-wrapper {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar__container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  
  .search-container {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .navbar__container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .search-container {
    margin: 0;
    max-width: none;
  }
  
  .home-text {
    display: none;
  }
  
  .home-btn {
    padding: 0.625rem;
  }
  
  .search-text {
    display: none;
  }
  
  #searchBtn {
    padding: 0.75rem;
  }
  
  .navbar-right {
    gap: 0.5rem;
  }
  
  /* Mobile nav positioning for smaller screens */
  .mobile-nav {
    right: 1rem;
    width: 260px;
  }
}

@media (max-width: 480px) {
  .navbar__container {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  #navbar__logo img {
    height: 2rem;
  }
  
  .home-btn {
    padding: 0.5rem;
  }
  
  .search-container {
    display: none;
  }
  
  .cart-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .mobile-nav {
    right: 0.5rem;
    width: 240px;
  }
  
  main {
    padding: 1rem 0.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 360px) {
  .mobile-nav {
    width: 220px;
    right: 0.5rem;
  }
  
  .mobile-nav-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Cart Count Animation */
@keyframes bounce {
  0%, 20%, 60%, 100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-8px) scale(1.1);
  }
  80% {
    transform: translateY(-4px) scale(1.05);
  }
}

.cart-count.updated {
  animation: bounce 0.6s ease;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}