/* ============================================================================
   AmourFou News/Article Pages - Language Navigation & Sticky Header
   ============================================================================ */

/* Sticky Header */
.sticky-header-news {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #383838;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-button {
  background-color: #2D2D2D;
  color: #F5F5F5;
  padding: 8px 15px;
  border: 2px solid #CFB57C;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.language-button:hover {
  background-color: #454545;
  border-color: #E2D1A2;
}

.language-button .flag-icon {
  width: 24px;
  height: 16px;
}

/* Language Dropdown */
.language-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  background-color: #2D2D2D;
  border: 1px solid #555;
  border-radius: 5px;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  max-height: 400px;
  overflow-y: auto;
}

.language-dropdown.active {
  display: block;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #F5F5F5;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.language-dropdown a:hover {
  background-color: #454545;
}

.language-dropdown a .flag-icon {
  width: 24px;
  height: 16px;
}

/* Content Padding (to account for fixed header) */
body {
  padding-top: 0;
}

.container {
  margin-top: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sticky-header-news {
    padding: 0 1rem;
    height: 60px;
  }
  
  .sticky-header-news .logo {
    height: 35px;
  }
  
  .sticky-header-news .download-btn {
    height: 40px;
  }
  
  .language-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .language-button .flag-icon {
    width: 20px;
    height: 13px;
  }
  
  .language-dropdown {
    min-width: 180px;
  }
  
  .language-dropdown a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sticky-header-news {
    padding: 0 0.5rem;
  }
  
  .sticky-header-news .logo {
    height: 30px;
  }
  
  .sticky-header-news .download-btn {
    display: none; /* Hide download button on very small screens to save space */
  }
  
  .language-button span {
    display: none; /* Hide language code text on very small screens */
  }
  
  .language-button {
    padding: 6px 10px;
  }
}
