html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0px;
}

.dashboard-card {
    border: none;
    border-radius: 14px;
    transition: all .25s ease;
    overflow: hidden;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

.dashboard-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

/* ===== HOME HERO ===== */
.hero-logo {
    max-height: 180px;
}

.hero-title {
    letter-spacing: -0.2px;
}

.hero-sub {
    max-width: 720px;
    margin: 0 auto;
}

/* ===== SEARCH HERO ===== */
.search-wrap {
    position: relative;
}

.search-hero-card {
    background: #fff;
    border: 1px solid rgba(13,110,253,.22);
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(13,110,253,.18), 0 10px 30px rgba(0,0,0,.08);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

    .search-hero-card::before {
        content: "";
        position: absolute;
        inset: -40px;
        background: radial-gradient(circle at 30% 20%, rgba(13,110,253,.18), transparent 55%);
        pointer-events: none;
    }

.search-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.2px;
    margin-bottom: 10px;
}

.search-hero-sub {
    font-size: .92rem;
    color: #6c757d;
    margin-bottom: 14px;
}

.search-input-wrap {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: .75;
    pointer-events: none;
}

#searchBox.search-hero-input {
    height: 66px;
    border-radius: 999px;
    padding-left: 52px;
    padding-right: 118px;
    font-size: 1.15rem;
    border: 2px solid rgba(13,110,253,.20);
    box-shadow: 0 10px 26px rgba(13,110,253,.10);
}

    #searchBox.search-hero-input:focus {
        border-color: rgba(13,110,253,.55);
        box-shadow: 0 0 0 .25rem rgba(13,110,253,.16);
    }

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    background: linear-gradient(135deg,#0d6efd,#0b5ed7);
    box-shadow: 0 10px 22px rgba(13,110,253,.20);
}

    .search-btn:hover {
        filter: brightness(1.03);
    }

    .search-btn:active {
        transform: translateY(-50%) scale(.98);
    }

#loading {
    border-radius: 14px;
}

#searchResults {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

/* autocomplete */
.ac-item {
    transition: background .12s ease;
}

    .ac-item:hover {
        background: #f8f9fa;
    }

    .ac-item.active, .ac-item[aria-selected="true"] {
        background: rgba(13,110,253,.08);
    }

/* chips */
.chip-btn {
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
    user-select: none;
}

    .chip-btn:hover {
        transform: translateY(-1px);
    }

/* sticky: sadece wrapper */
@media (max-width: 767.98px) {
    .search-sticky {
        position: sticky;
        top: 10px;
        z-index: 1100;
    }

    #searchBox.search-hero-input {
        height: 62px;
        font-size: 1.05rem;
    }

    .search-btn {
        height: 50px;
        padding: 0 16px;
    }

    #searchResults {
        position: absolute;
        left: 0;
        right: 0;
        max-height: 55vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ac-item, .chip-btn {
        transition: none;
    }
}

/* ✅ Auth sayfalarında footer ile çakışma olmasın */
.page-auth main {
    padding-bottom: 24px !important;
}

.page-auth footer.footer {
    position: relative;
    z-index: 1;
}

/* ===== Minimal search hero ===== */

.search-hero-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

.bb-quick-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Chip */
.bb-chip {
    display: inline-block;
    padding: 6px 12px;
    font-size: .86rem;
    border-radius: 999px;
    border: 1px solid rgba(13,110,253,.15);
    background: rgba(13,110,253,.06);
    color: #0d6efd;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

    .bb-chip:hover {
        background: rgba(13,110,253,.12);
        transform: translateY(-1px);
    }

    /* Popüler linkler muted */
    .bb-chip.muted {
        background: rgba(0,0,0,.03);
        border-color: rgba(0,0,0,.06);
        color: rgba(0,0,0,.65);
    }

        .bb-chip.muted:hover {
            background: rgba(0,0,0,.05);
        }

/* Popüler satır: tek satır + yatay scroll */
.bb-pop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

/* Popüler ikon */
.bb-pop-ico {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: 0 0 auto;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
}

/* Scrollbar ince */
.bb-pop-row::-webkit-scrollbar {
    height: 6px;
}

.bb-pop-row::-webkit-scrollbar-thumb {
    border-radius: 999px;
}