/**
 * Aktim - Header Base Styles
 * Unified design for all screen sizes
 * [Logo + Menu●] ............... 0212 876 1515
 *
 * @package    Aktim
 * @author     Mustafa Erdinc <mustafaerdinc@me.com>
 * @copyright  2024-2026 Bilgicler Yapi
 * @link       https://mustafaerdinc.com.tr
 */

/* -------------------------------------------
   Base Header Styles (Mobile First)
   ------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: 20px 0 0.75rem;
  z-index: 1000;
}

.site-header .navbar {
  padding: 0;
}

.site-header .container {
  max-width: 1200px;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

/* -------------------------------------------
   Navbar Content - Horizontal Layout
   ------------------------------------------- */
.navbar-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* -------------------------------------------
   Left Group: Logo + Menu Button (rounded pill)
   ------------------------------------------- */
.navbar-left-group {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: #f2f2f2;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  border-radius: 50px;
}

.navbar-left-group .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-left-group .logo-img {
  display: block;
  width: 84px;
  height: auto;
}

/* Tagline - Hidden on Mobile */
.navbar-tagline {
  display: none;
}

/* Menu Button */
.navbar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 0.6rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.navbar-menu-btn:hover,
.navbar-menu-btn:focus {
  background-color: var(--color-primary-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(154, 119, 68, 0.4);
}

.navbar-menu-btn:active {
  transform: scale(0.95);
}

.navbar-menu-btn i {
  display: inline-block;
}

/* -------------------------------------------
   Phone - Right side (white text with shadow)
   ------------------------------------------- */
.navbar-phone-wrapper {
  flex: 0 0 auto;
  text-align: right;
}

.navbar-phone {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: var(--font-light);
  letter-spacing: 1px;
  text-decoration: none;
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.navbar-phone .phone-prefix {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-phone .phone-main {
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-phone:hover .phone-prefix,
.navbar-phone:hover .phone-main {
  color: var(--color-primary);
}

/* Phone colors on light/white section */
body.on-light-section .navbar-phone .phone-prefix {
  color: #888;
  text-shadow: none;
}

body.on-light-section .navbar-phone .phone-main {
  color: var(--color-primary, #9a7744);
  text-shadow: none;
}

/* -------------------------------------------
   Menu Popup Overlay
   ------------------------------------------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: block;
  opacity: 0;
  visibility: hidden;
  /* No blur - clean overlay */
  background-color: transparent;
}

/* Position menu popup to align exactly with navbar-left-group */
.mobile-menu-overlay .mobile-menu-popup {
  position: absolute;
  top: 0.75rem;
  left: clamp(1rem, 4vw, 1.5rem);
}

/* On larger screens, center align with container */
@media (min-width: 576px) {
  .mobile-menu-overlay .mobile-menu-popup {
    left: calc((100% - min(1200px, 100% - clamp(2rem, 8vw, 3rem))) / 2 + clamp(1rem, 4vw, 1.5rem));
  }
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hide navbar-left-group when menu is open */
body.menu-open .navbar-left-group {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Menu Popup Card */
.mobile-menu-popup {
  background-color: var(--color-secondary);
  border-radius: 28px;
  width: auto;
  min-width: 280px;
  max-width: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.mobile-menu-overlay.is-open .mobile-menu-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header: Logo left, Close button right */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}

.mobile-menu-header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.mobile-menu-header .logo-img {
  display: block;
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mobile-menu-close:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(154, 119, 68, 0.4);
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

/* Navigation Links */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 0.5rem;
}

/* Primary Menu Items - Bold with spacing */
.mobile-menu-item {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: var(--font-semibold);
  text-decoration: none;
  padding: 0.625rem 0;
  opacity: 0;
  transform: translateY(10px);
  letter-spacing: 0.01em;
}

.mobile-menu-item:hover {
  color: var(--color-primary);
}

/* Section Links Container */
.mobile-menu-sections {
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Links - Same font as btn--outline */
.mobile-menu-section-link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-light);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
}

.mobile-menu-section-link:hover {
  color: var(--color-white);
  padding-left: 0.5rem;
}

/* CTA Phone */
.mobile-menu-cta {
  padding: 0.5rem 1rem 0.75rem;
}

.mobile-menu-phone {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: var(--font-light);
  letter-spacing: 1px;
  text-decoration: none;
  line-height: 1.2;
}

.mobile-menu-phone .phone-prefix {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-phone .phone-main {
  color: var(--color-white);
}

.mobile-menu-phone:hover .phone-prefix,
.mobile-menu-phone:hover .phone-main {
  color: var(--color-primary);
}

/* Social Icons in Menu (above the line) */
.mobile-menu-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.5rem 1rem;
}

.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 15px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu-social a:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* Footer in Menu */
.mobile-menu-footer {
  padding: 0.5rem 1rem 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.35rem;
  font-size: 10px;
}

.mobile-menu-footer .footer-brand-text {
  white-space: nowrap;
}

.mobile-menu-footer .footer-brand a {
  display: inline-flex;
  align-items: center;
}

.mobile-menu-footer .footer-brand img {
  height: 14px;
  width: auto;
}

.mobile-menu-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-menu-footer .copyright {
  color: rgba(255,255,255,0.5);
}

/* KVKK Policies - Horizontal scrollable row */
.menu-kvkk-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  padding-bottom: 2px;
}

.menu-kvkk-row::-webkit-scrollbar {
  display: none;
}

.menu-kvkk-row a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 0.15rem 0;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.menu-kvkk-row a:hover {
  color: var(--color-primary-light);
}

/* Dot separator between legal links */
.menu-kvkk-row a + a::before {
  content: "\00B7";
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.4rem;
  font-size: 11px;
}

/* Bilgiçler Logo at bottom - centered */
.mobile-menu-footer .footer-bilgicler-logo {
  display: inline-block;
  margin-top: 0.5rem;
}

.mobile-menu-footer .footer-bilgicler-logo img {
  height: 16px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.mobile-menu-footer .footer-bilgicler-logo:hover img {
  opacity: 1;
}
