/*
Theme Name: Salient Child
Template: salient
Description: Metacut child theme
Author: Ogulcan Gunes
Version: 1.0
*/

/* Girişli kullanıcıda auth butonlarını gizle */
body.metacut-logged-in .nectar-header-buttons,
body.metacut-logged-in .nectar-header-buttons .nectar-button {
  display: none !important;
}

/* Metacut profile menu temel görünüm */
.metacut-profile-menu > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
}

/* Mobil görünüm */
@media (max-width: 991px) {
  .metacut-profile-menu > a .menu-title-text {
    display: none !important;
  }

  .metacut-profile-menu > a i {
    margin-right: 0 !important;
    font-size: 1.2em !important;
  }

  .metacut-profile-menu > a {
    width: 40px !important;
    height: 40px !important;
    justify-content: center !important;
    border-radius: 10px !important;
    padding: 0 !important;
  }

  .metacut-profile-menu ~ .metacut-profile-menu {
    display: none !important;
  }

  .metacut-profile-menu .sub-menu {
    z-index: 99999 !important;
    min-width: 220px;
  }

  #header-outer #nectar-user-account {
    display: none !important;
  }

  body.metacut-logged-in #header-outer a[href*="/metacut/login.php"],
  body.metacut-logged-in #header-outer a[href*="/metacut/register.php"],
  body.metacut-logged-in #header-outer a[href*="wp-login.php"] {
    display: none !important;
  }
}

/* Desktopta mobil profil görünmesin */
@media (min-width: 1000px) {
  .metacut-mobile-profile {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .metacut-mobile-profile .sub-menu {
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    background: #fff !important;
    min-width: 220px !important;
    z-index: 99999 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    padding: 8px 0 !important;
  }

  .metacut-mobile-profile.metacut-open .sub-menu {
    display: block !important;
  }

  .metacut-mobile-profile {
    position: relative !important;
  }

  .metacut-mobile-profile .sub-menu li {
    display: block !important;
    width: 100% !important;
  }

  .metacut-mobile-profile .sub-menu li a {
    display: block !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
  }
}
/* Girişliyken header button alanındaki login/register kalıntılarını gizle */
body.metacut-logged-in #header-outer a[href*="/metacut/login.php"],
body.metacut-logged-in #header-outer a[href*="/metacut/register.php"] {
  display: none !important;
}

/* Girişsizken hesap itemını gizle */
body.metacut-logged-out #header-outer a[href="#"] {
  /* bunu istersen kaldırabiliriz; genelde PHP zaten itemı siliyor */
}

/* Mobilde sadece ikon göstermek istersen */
@media (max-width: 991px) {
  #header-outer .menu-item a .menu-title-text {
    white-space: nowrap;
  }
}