/* Header Styles - Updated 2024 - FORCE REFRESH - User Avatar and Section Title Fixes */
.app-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo:hover {
  opacity: 0.8;
  color: white;
  text-decoration: none;
}

.header-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.header-logo:hover .header-icon {
  transform: scale(1.1);
}

.logo-text {
  background: linear-gradient(45deg, #ffffff, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu,
.auth-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffd700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.header-nav-link.active {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation count badges */
.nav-count {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(233, 69, 96, 0.3);
  text-shadow: none;
  line-height: 1.2;
}

.header-nav-link:hover .nav-count {
  background: linear-gradient(135deg, #ff6b6b, #e94560);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.header-signup-btn {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
}

.header-signup-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #e94560);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.5);
}

.header-logout-btn {
  background: linear-gradient(135deg, #dc3545, #e94560);
  color: white;
  border: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.header-logout-btn:hover {
  background: linear-gradient(135deg, #e94560, #dc3545);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

/* Main content adjustment */
.main-content {
  padding-top: 20px;
  padding-bottom: 20px; /* Minimal space for footer */
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding-bottom: 20px; /* Minimal space for footer on mobile */
  }
  
  .header-container {
    padding: 0 16px;
    height: 56px;
  }
  
  .header-icon {
    width: 20px;
    height: 20px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .header-right {
    gap: 12px;
  }
  
  .user-menu,
  .auth-menu {
    gap: 12px;
  }
  
  .header-nav-link,
  .header-signup-btn,
  .header-logout-btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .header-nav-link.active {
    padding-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding-bottom: 60px; /* Even smaller footer on small mobile */
  }
  
  .header-container {
    padding: 0 12px;
  }
  
  .header-icon {
    width: 18px;
    height: 18px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .header-nav-link {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  
  .header-signup-btn,
  .header-logout-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
} 

/* Language Switcher Styles */
.language-switcher {
  margin-right: 20px;
  position: relative;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.language-btn:active {
  transform: translateY(0);
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.language-dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.language-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.language-dropdown:hover .language-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffd700;
  text-decoration: none;
}

.language-option.active {
  background-color: rgba(102, 126, 234, 0.2);
  color: #ffd700;
  font-weight: 600;
}

/* Responsive design for language switcher */
@media (max-width: 768px) {
  .language-switcher {
    margin-right: 10px;
  }
  
  .language-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .language-dropdown-menu {
    min-width: 140px;
  }
  
  .language-option {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.user-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
  width: 20px !important;
  height: 20px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.7rem !important;
  color: white;
}

.user-name {
  font-size: 0.9rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid #1a1a2e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.user-dropdown-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  overflow: hidden;
  z-index: 1000;
  animation: slideDown 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-section {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-section:last-child {
  border-bottom: none;
}

.user-dropdown-menu .dropdown-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 4px;
  background: #1a1a2e !important;
  background-image: none !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  color: white !important;
  text-transform: none !important;
  letter-spacing: 0;
  margin: 0;
  border: none;
  -webkit-text-fill-color: white !important;
  text-shadow: none !important;
}

.user-dropdown-menu .section-icon {
  font-size: 0.85rem !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  text-shadow: none !important;
}

.user-dropdown-menu .section-title {
  font-size: 0.85rem !important;
  color: white !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  -webkit-text-fill-color: white !important;
  text-shadow: none !important;
  background: none !important;
  background-image: none !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  position: relative;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.item-icon {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.item-text {
  flex: 1;
}

.item-badge {
  background: #ff6b6b;
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
}

.notification-item {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.notification-item:hover {
  background: #ffeaa7;
}

.logout-form {
  margin: 0;
  padding: 0;
}

.logout-form button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.logout-item {
  color: #dc3545;
}

.logout-item:hover {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive design for user dropdown */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .user-dropdown-toggle {
    padding: 6px 10px;
  }
  
  .user-name {
    display: none;
  }
  
  .user-dropdown-menu {
    width: 220px;
    right: -10px;
  }
  
  .dropdown-item {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .user-dropdown-menu {
    width: 200px;
    right: -20px;
  }
  
  .dropdown-section-header {
    padding: 6px 10px 4px;
  }
  
  .dropdown-item {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
} 

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

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

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffd700;
  text-decoration: none;
}

.mobile-nav-link.active {
  color: #ffd700;
  border-left: 3px solid #ffd700;
  padding-left: 17px;
  background-color: rgba(255, 215, 0, 0.1);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Mobile navigation count badges */
.mobile-nav-link .nav-count {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(233, 69, 96, 0.3);
  text-shadow: none;
  line-height: 1.2;
  display: inline-block;
}

.mobile-nav-link:hover .nav-count {
  background: linear-gradient(135deg, #ff6b6b, #e94560);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Mobile Menu Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-container {
    position: relative;
  }
} 