/**
 * Aktim - Mobile Header
 * Mobile-only styles (< 992px)
 *
 * @package    Aktim
 * @author     Mustafa Erdinc <mustafaerdinc@me.com>
 * @copyright  2024-2026 Bilgicler Yapi
 * @link       https://mustafaerdinc.com.tr
 */

@media (max-width: 991.98px) {
  .site-header {
    position: relative;
    background-color: transparent;
    padding: 0.75rem 0;
    z-index: 100;
  }

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

  .site-header .container {
    max-width: 1200px;
  }

  /* -------------------------------------------
     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)
     ------------------------------------------- */
  .navbar-left-group {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #f2f2f2;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    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: 150px;
    height: auto;
  }

  /* Menu Button - Just + icon */
  .navbar-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 0.75rem;
    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 - Mobile Style (right side, white)
     ------------------------------------------- */
  .navbar-phone-mobile {
    flex: 0 0 auto;
  }

  .navbar-phone-wrapper {
    text-align: left;
  }

  .navbar-phone {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: color var(--transition-fast);
  }

  .navbar-phone .phone-prefix {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

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

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

  /* -------------------------------------------
     Desktop elements hidden on mobile
     ------------------------------------------- */
  .navbar-brand-wrapper,
  .navbar-tagline-wrapper {
    display: none;
  }

  /* -------------------------------------------
     Mobile Menu Popup with Blur Background
     ------------------------------------------- */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.3);
  }

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

  /* Menu Popup Card */
  .mobile-menu-popup {
    background-color: var(--color-secondary);
    border-radius: 20px;
    width: 280px;
    max-width: 85%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    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 + Close */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

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

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

  .mobile-menu-close {
    width: 38px;
    height: 38px;
    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;
    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.5rem 1rem 1rem;
  }

  .mobile-menu-item {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 0;
    opacity: 0;
    transform: translateY(10px);
  }

  .mobile-menu-item:hover {
    color: #c4a76c;
  }

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

  .mobile-menu-phone {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    font-size: 35px;
    font-weight: 700;
    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 */
  .mobile-menu-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .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.75rem 1rem 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    text-align: center;
  }

  .mobile-menu-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.5rem;
    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);
  }

  .mobile-menu-footer .kvkk-link {
    color: var(--color-white);
    text-decoration: underline;
    opacity: 0.7;
  }

  .mobile-menu-footer .kvkk-link:hover {
    opacity: 1;
  }

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

  .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;
  }
}
