﻿/* --- Search suggestions dropdown --- */
#subCategories {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    max-height: 400px; /* dikey scroll için sınır */
    overflow-y: auto; /* dikey scroll kalsın */
    overflow-x: hidden; /* yatay scroll olmasın */
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: auto; /* genişliği JS ile input genişliğine eşitleyeceğiz */
    box-sizing: border-box;
}

#subCategories .searchOption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    color: #222;
    font-size: 14px;
    width: 100%;
    column-gap: 12px;
}

#subCategories .searchOption:hover {
    background: #fafafa;
}

.hic-option-left {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0; /* sağ bloğa alan bırak */
}

.hic-option-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hic-option-root {
    margin-left: auto; /* en sağa hizala */
    padding-left: 0;
    display: inline-flex;
    align-items: center;
    background-color: #ee8502; /* badge arka planı */
    color: #fff; /* badge yazı rengi */
    border-radius: 9999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Elemanlar arası ayırıcı çizgi */
#subCategories .searchOption + .searchOption {
    border-top: 1px solid #f0f0f0;
}

/* Gizleme sınıfı - jQuery hide yerine sınıf kullan */
.hic-hidden {
    display: none !important;
}

/* Loading state */
.hic-search-loading {
    color: #666;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 14px;
    width: 100%;
    text-align: center;
}
.hic-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e6e6e6;
    border-top-color: #ee8502;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: hic-spin 0.8s linear infinite;
}
@keyframes hic-spin { to { transform: rotate(360deg); } }

/* Empty state */
.hic-search-empty {
    color: #999;
    font-size: 13px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 14px;
    width: 100%;
    text-align: center;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}


/* --- Layout shared styles --- */
.layout-body {
    font-family: 'Montserrat-Regular', sans-serif !important;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 600;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.whatsapp-float:active {
    transform: scale(.98);
}

.whatsapp-float:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    display: block;
}

body.mobile-overlay-active .whatsapp-float {
    z-index: 500;
}

.whatsapp-float.pulse {
    animation: wa-pulse 2.6s infinite;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 420px) {
    .whatsapp-float {
        width: 68px;
        height: 68px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float svg {
        width: 34px;
        height: 34px;
    }
}

.referans-btn-inline,
a[data-ref-code-trigger] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff !important;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease;
    text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(255, 87, 34, .2);
}

a[data-ref-code-trigger]:hover,
.referans-btn-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 87, 34, .35);
    color: #fff !important;
}

.referans-modal {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(31, 45, 61, 0.2);
}

.referans-modal .modal-header {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    border-bottom: none;
}

.referans-modal .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.referans-modal .close {
    color: #fff;
    opacity: .8;
}

.referans-modal .modal-body {
    padding: 24px 28px;
    background: #fafafa;
}

.referans-info {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.referans-info h6 {
    margin: 0 0 8px;
    font-weight: 700;
    color: #ff7043;
}

.referans-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #5f6368;
}

#referansKoduInput {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 14px;
    font-weight: 600;
    letter-spacing: .4px;
}

#referansKoduInput:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25);
}

.referans-modal .modal-footer {
    border-top: none;
    padding: 18px 28px;
    background: #fff;
}

#referansKoduSubmit {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
}

#referansKoduSubmit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

#referansKoduError,
#referansKoduSuccess {
    border-radius: 12px;
    padding: 12px 14px;
}

.text-accent {
    color: #EE8502;
}

.menu-link {
    text-decoration: none;
    color: inherit;
}

.menu-link:hover {
    text-decoration: none;
    color: #EE8502;
}

