/**
 * FocusLead Landing Pages - Common Styles v2.3.1218
 * Tüm static sayfalar için ortak navbar ve theme toggle stilleri
 * localStorage ile sayfa geçişlerinde tema tutarlılığı
 * 
 * v2.3.1218: Ana sayfa header'ı ile 1:1 uyumlu
 *           - Ürünler dropdown stilleri
 *           - Dil seçici stilleri
 *           - Mobil drawer sağdan açılma (ana sayfa ile aynı)
 */

/* ===== NAVBAR HEADER ===== */
.fl-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 64px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* v2.3.1340: Container wrapper - ana sayfa ile aynı genişlik */
.fl-navbar-container {
  max-width: 1200px;  /* MUI Container lg ile aynı */
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fl-navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.fl-navbar-logo img {
  height: 32px;
  width: auto;
}

.fl-navbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fl-navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-navbar-link {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.fl-navbar-link:hover {
  color: #00897B;
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-navbar-link.active {
  color: #00897B;
  background-color: rgba(0, 137, 123, 0.15);
}

.fl-navbar-btn {
  background-color: #00897B;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fl-navbar-btn:hover {
  background-color: #00796B;
  transform: translateY(-1px);
}

/* ===== PRODUCTS DROPDOWN ===== */
.fl-products-dropdown {
  position: relative;
}

.fl-products-btn {
  display: flex;
  align-items: center;
}

.fl-products-btn .fl-chevron-up {
  display: none;
}

.fl-products-dropdown.open .fl-products-btn .fl-chevron-down {
  display: none;
}

.fl-products-dropdown.open .fl-products-btn .fl-chevron-up {
  display: inline-flex;
}

.fl-products-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
}

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

.fl-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.fl-product-item:hover {
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fl-product-label {
  font-size: 14px;
  font-weight: 500;
}

/* ===== LANGUAGE DROPDOWN ===== */
.fl-lang-dropdown {
  position: relative;
}

.fl-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #b0b0b0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
}

.fl-lang-btn:hover {
  color: #00897B;
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
}

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

.fl-lang-item {
  display: block;
  padding: 10px 16px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.fl-lang-item:hover {
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-lang-item.active {
  color: #00897B;
  background-color: rgba(0, 137, 123, 0.15);
}

/* ===== THEME TOGGLE ===== */
.fl-theme-toggle {
  background-color: rgba(0, 137, 123, 0.1);
  border: 1px solid rgba(0, 137, 123, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.fl-theme-toggle:hover {
  background-color: rgba(0, 137, 123, 0.2);
  transform: scale(1.05);
}

.fl-theme-toggle svg {
  width: 20px;
  height: 20px;
  color: #00897B;
}

.fl-theme-toggle .sun-icon { display: none; }
.fl-theme-toggle .moon-icon { display: block; }

/* ===== MENU TOGGLE (Mobile) ===== */
.fl-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #e0e0e0;
}

.fl-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== LOGO SWAP ===== */
.fl-logo-light { display: none; }
.fl-logo-dark { display: block; }

/* ===== MOBILE DRAWER (Right Side - Ana sayfa ile aynı) ===== */
.fl-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  visibility: hidden;
}

.fl-mobile-drawer.open {
  visibility: visible;
}

.fl-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fl-mobile-drawer.open .fl-drawer-backdrop {
  opacity: 1;
}

.fl-drawer-content {
  position: absolute;
  top: 0;
  right: 0 !important;  /* v2.3.1252: Kesinlikle sağdan açılma */
  left: auto !important;  /* v2.3.1252: Sol tarafı iptal et */
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background-color: #1e1e1e;
  transform: translateX(100%) !important;  /* v2.3.1252: Sağa doğru gizli */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.fl-mobile-drawer.open .fl-drawer-content {
  transform: translateX(0) !important;  /* v2.3.1252: Açıkken görünür */
}

.fl-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fl-drawer-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #9e9e9e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-drawer-close svg {
  width: 24px;
  height: 24px;
}

.fl-drawer-links {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.fl-drawer-link {
  display: block;
  padding: 14px 16px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.fl-drawer-link:hover {
  background-color: rgba(0, 137, 123, 0.1);
}

/* ===== MOBILE PRODUCTS SECTION ===== */
.fl-drawer-section-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.fl-drawer-section-btn:hover {
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-drawer-section-btn .fl-chevron-up {
  display: none;
}

.fl-drawer-section-btn.open .fl-chevron-down {
  display: none;
}

.fl-drawer-section-btn.open .fl-chevron-up {
  display: inline-flex;
}

.fl-drawer-products {
  display: none;
  padding-left: 16px;
  padding-bottom: 8px;
}

.fl-drawer-products.open {
  display: block;
}

.fl-drawer-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.fl-drawer-product-item:hover {
  color: #00897B;
  background-color: rgba(0, 137, 123, 0.1);
}

.fl-drawer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 8px 16px;
}

.fl-drawer-footer {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fl-drawer-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background-color: #00897B;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.fl-drawer-btn:hover {
  background-color: #00796B;
}

/* ===== LIGHT MODE OVERRIDES ===== */
body.light-mode .fl-navbar {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .fl-navbar-link,
body.light-mode .fl-lang-btn {
  color: #666;
}

body.light-mode .fl-navbar-link:hover,
body.light-mode .fl-lang-btn:hover {
  color: #00897B;
}

body.light-mode .fl-logo-dark { display: none; }
body.light-mode .fl-logo-light { display: block; }

body.light-mode .fl-theme-toggle .sun-icon { display: block; }
body.light-mode .fl-theme-toggle .moon-icon { display: none; }

body.light-mode .fl-products-menu,
body.light-mode .fl-lang-menu {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .fl-product-item,
body.light-mode .fl-lang-item {
  color: #333;
}

body.light-mode .fl-drawer-content {
  background-color: #ffffff;
}

body.light-mode .fl-drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .fl-drawer-close {
  color: #666;
}

body.light-mode .fl-drawer-link,
body.light-mode .fl-drawer-section-btn {
  color: #333;
}

body.light-mode .fl-drawer-product-item {
  color: #666;
}

body.light-mode .fl-drawer-divider {
  background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .fl-menu-toggle {
  color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fl-navbar-center {
    display: none;
  }
  
  .fl-navbar-actions .fl-navbar-link:not(.fl-theme-toggle):first-child,
  .fl-navbar-actions .fl-navbar-btn,
  .fl-lang-dropdown {
    display: none;
  }
  
  .fl-menu-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .fl-navbar {
    padding: 0 16px;
  }
}

/* ===== BODY PADDING FOR FIXED NAVBAR ===== */
body {
  padding-top: 64px;
}
