/* MOBİL ÖZEL STİLLER - index2.php için */

/* Desktop'ta input normal çalışsın */
@media (min-width: 768px) {
  .mobile-search-input {
    pointer-events: auto !important;
    cursor: text !important;
  }
  
  .mobile-search-modal {
    display: none !important;
  }
}

/* Mobilde hero alanı ve başlık aşağı gelsin */
@media (max-width: 767.98px) {
  .hero-home6.py-0 {
    padding-top: 20px !important;
  }

  .hero-title-mobile {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Mobilde açıklama metni gizlensin */
@media (max-width: 767.98px) {
  .hide-mobile {
    display: none !important;
  }
}

/* En çok arananlar sonrasında her şey mobilde gizli kalsın */
@media (max-width: 767.98px) {
  .hide-after-popular-mobile {
    display: none !important;
  }
}

/* Mobilde img-3.png resmi gizlensin */
@media (max-width: 767.98px) {
  img[src="img/bg/img-3.png"],
  img[src*="img-3.png"] {
    display: none !important;
  }
}

/* Mobilde popular-pill ikonlarının görünmesini garanti et */
@media (max-width: 767.98px) {
  .popular-pill-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #325bee !important;
    margin-right: 6px !important;
  }
  
  /* Mobilde popular-pill butonları bitişik olsun */
  .popular-searches {
    gap: 6px !important;
    row-gap: 4px !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
  }
  
  .popular-pill {
    padding: 2px 10px !important;
    margin: 5px 5px !important;
  }
  
  /* Mobilde Ara butonu gizlensin */
  .advance-search-tab .col-md-3,
  .advance-search-tab .col-lg-4,
  .advance-search-tab .col-xl-3 {
    display: none !important;
  }
  
  .advance-search-tab .col-md-9,
  .advance-search-tab .col-lg-8,
  .advance-search-tab .col-xl-9 {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Desktop'ta modal gizli olsun */
.mobile-search-modal {
  display: none;
}

/* Mobil Arama Modal - Modern App Tasarımı */
@media (max-width: 767.98px) {
  .mobile-search-modal {
    display: block;
  }
  .mobile-search-input {
    cursor: pointer;
    caret-color: transparent; /* Cursor'u gizle */
  }
  
  .mobile-search-input:focus {
    outline: none;
    border-color: inherit;
  }
  
  .mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-search-modal.active {
    display: block;
    opacity: 1;
  }
  
  .mobile-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }
  
  .mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .mobile-search-modal.active .mobile-search-container {
    transform: translateY(0);
  }
  
  .mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .mobile-search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #222222;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s ease;
  }
  
  .mobile-search-close:hover {
    background: #f5f5f5;
  }
  
  .mobile-search-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    flex: 1;
    text-align: center;
    padding-right: 40px;
  }
  
  .mobile-search-input-wrapper {
    position: relative;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mobile-search-input-wrapper .icon {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 18px;
    z-index: 1;
  }
  
  .mobile-search-field {
    width: 100%;
    padding: 14px 16px 14px 50px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    color: #222222;
    background: #fafafa;
    transition: all 0.2s ease;
    font-family: "Nunito", sans-serif;
  }
  
  .mobile-search-field:focus {
    outline: none;
    border-color: #325bee;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(50, 91, 238, 0.1);
  }
  
  .mobile-search-content {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0;
  }
  
  .mobile-trending-searches {
    padding: 20px;
  }
  
  .trending-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 16px;
  }
  
  .trending-title .icon {
    color: #325bee;
    font-size: 18px;
  }
  
  .trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .trending-list li {
    margin-bottom: 8px;
  }
  
  .trending-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    color: #222222;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }
  
  .trending-list li a:hover,
  .trending-list li a:active {
    background: #f0f0f0;
    border-color: #e0e0e0;
    transform: translateX(4px);
  }
  
  .trending-list li a i {
    color: #325bee;
    font-size: 14px;
  }
  
  .mobile-search-results {
    padding: 20px;
  }
  
  .results-title {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 16px;
  }
  
  .results-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .results-list li {
    margin-bottom: 8px;
  }
  
  .results-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    color: #222222;
    font-size: 15px;
    transition: all 0.2s ease;
  }
  
  .results-list li a:hover,
  .results-list li a:active {
    background: #f0f0f0;
    transform: translateX(4px);
  }
  
  .results-list li a i {
    color: #999999;
    font-size: 14px;
  }
  
  .results-list li.no-results {
    padding: 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
  }
}

/* Mobil Sabit Talep Oluştur Butonu - FAB Style */
@media (max-width: 767.98px) {
  .mobile-fab-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    width: calc(100% - 60px);
    max-width: 350px;
    animation: slideUpFAB 0.4s ease-out;
  }
  
  @keyframes slideUpFAB {
    from {
      transform: translateX(-50%) translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
  }
  
  .mobile-fab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #325bee;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(50, 91, 238, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Nunito", sans-serif;
    border: none;
    cursor: pointer;
  }
  
  .mobile-fab-link:hover {
    background: #1e4bb8;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(30, 75, 184, 0.5);
  }
  
  .mobile-fab-link:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(50, 91, 238, 0.3);
  }
  
  .mobile-fab-link i {
    font-size: 18px;
    color: #ffffff;
  }
  
  .mobile-fab-link span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
  }
  
  .mobile-fab-link:hover span,
  .mobile-fab-link:hover i {
    color: #ffffff !important;
  }
  
  /* Scroll'da buton görünürlüğü */
  .mobile-fab-button.hide-on-scroll {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  /* Body'ye padding ekle ki buton içeriğin üstüne gelmesin */
  body {
    padding-bottom: 90px;
  }
}

/* Desktop'ta buton gizli */
@media (min-width: 768px) {
  .mobile-fab-button {
    display: none !important;
  }
}

