/* ============================================
   COMPONENTS - Shared components (Header, Footer, Notifications)
   ============================================ */

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 48, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header__inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
  padding: 0.6rem 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 0.6rem; 
  color: #fff; 
  text-decoration: none; 
  font-weight: 700; 
  letter-spacing: 0.5px; 
}

.brand__logo { 
  width: 34px; 
  height: 34px; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 12px #0008); 
}

.nav { 
  display: flex; 
  align-items: center; 
  gap: 0.9rem; 
}

.nav__link { 
  color: var(--text); 
  text-decoration: none; 
  padding: 0.4rem 0.6rem; 
  border-radius: 8px; 
  transition: all 0.3s ease; 
}

.nav__link:hover { 
  background: #ffffff12; 
}

/* Search Container */
.search-container {
  flex: 1;
  max-width: 450px;
  margin: 0 1.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.5rem 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-icon {
  color: rgba(255, 255, 255, 0.8);
  margin-right: 0.7rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box:focus-within .search-icon {
  color: white;
  transform: scale(1.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: white;
  padding: 0.3rem 0;
  font-weight: 400;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.search-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
  backdrop-filter: blur(10px);
}

.search-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.search-btn i {
  font-size: 0.85rem;
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 1rem;
}

.language-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.language-btn i.fa-chevron-down {
  font-size: 0.7rem;
  opacity: 0.8;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.8rem;
}

.language-option:hover {
  background: #f8f9fa;
}

.language-option.active {
  background: #e3f2fd;
  color: #1976d2;
}

.language-option img {
  width: 16px;
  height: auto;
  border-radius: 2px;
}

.language-flag {
  width: 16px;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

/* Login Button */
.login-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 0.5rem;
}

.login-btn i {
  font-size: 1rem;
  color: white;
  display: inline-block;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section {
  text-align: center;
}

.footer__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #3498db;
}

.footer__tagline {
  color: #bdc3c7;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: #3498db;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link i {
  font-size: 1.2rem;
  line-height: 1;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
}

/* ==================== NOTIFICATIONS ==================== */
.welcome-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 320px;
  background: linear-gradient(135deg, rgba(15, 26, 58, 0.95), rgba(11, 21, 64, 0.95));
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.coming-soon-notification .welcome-notification__progress {
  background: linear-gradient(90deg, #ff9800, #ffc107, #ffeb3b);
}

/* Notification stacking */
.welcome-notification.notification-position-1 { top: 100px; }
.welcome-notification.notification-position-2 { top: 220px; }
.welcome-notification.notification-position-3 { top: 340px; }
.welcome-notification.notification-position-4 { top: 460px; }

.welcome-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.welcome-notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.welcome-notification__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  position: relative;
}

.welcome-notification__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBounce 0.8s ease-out, iconPulse 2s ease-in-out infinite 1s;
}

.welcome-notification__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@keyframes iconBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  70% {
    transform: scale(0.9) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.welcome-notification__text {
  flex: 1;
}

.welcome-notification__text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.welcome-notification__text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.welcome-notification__close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.welcome-notification__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.welcome-notification__progress {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 100%;
  transform-origin: left;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .search-container,
  .language-selector,
  .login-btn {
    display: none;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .welcome-notification {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    top: 90px;
  }
}
