﻿/* ============================================
   ANASAYFA MODERN SEARCH BAR STYLES
   homeSearch.css - v1.0
   ============================================ */

/* CSS Variables */
:root {
    --search-primary: #FF6F0F;
    --search-primary-dark: #e56000;
    --search-primary-light: #ff8c3f;
    --search-height: 60px;
    --search-radius: 8px;
    --search-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --search-shadow-focus: 0 12px 40px rgba(255, 111, 15, 0.35);
    --search-transition: all 0.2s ease;
}

/* ============================================
   HERO SEARCH WRAPPER
   ============================================ */
.hero-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    z-index: 10000;
}

    /* ============================================
   SEARCH INPUT GROUP - Ana Container
   ============================================ */
    .hero-search-wrapper .search-input-group {
        display: flex;
        align-items: stretch;
        border-radius: var(--search-radius);
        overflow: visible;
        background-color: white;
        box-shadow: var(--search-shadow);
        height: 64px;
        position: relative;
        z-index: 10001; /* ❌ 1050 → ✅ 10001 */
        transition: box-shadow 0.2s ease;
    }


        .hero-search-wrapper .search-input-group:hover {
            box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
        }

        .hero-search-wrapper .search-input-group.focused {
            box-shadow: var(--search-shadow-focus);
            transform: translateY(-3px);
        }

    /* ============================================
   SEARCH SELECT - Sol Taraftaki Dropdown
   ============================================ */
    .hero-search-wrapper .search-select {
        flex: 0 0 200px;
        max-width: 200px;
        position: relative;
        border-right: 1px solid #eee;
        background-color: #f9f9f9;
        border-radius: var(--search-radius) 0 0 var(--search-radius);
    }

        .hero-search-wrapper .search-select::after {
            content: '';
            position: absolute;
            top: 15%;
            right: 0;
            height: 70%;
            width: 1px;
            background: linear-gradient(to bottom, transparent, #ddd, transparent);
        }

        .hero-search-wrapper .search-select select {
            width: 100%;
            height: 100%;
            padding: 0 40px 0 18px;
            border: none;
            background-color: transparent;
            color: #333;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF6F0F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 18px;
            transition: var(--search-transition);
        }

            .hero-search-wrapper .search-select select:focus {
                outline: none;
                background-color: #f5f5f5;
            }

            .hero-search-wrapper .search-select select:hover {
                background-color: #f5f5f5;
            }

            .hero-search-wrapper .search-select select optgroup {
              
                color: var(--search-primary);
                background-color: #f9f9f9;
                padding: 8px 0;
            }

            .hero-search-wrapper .search-select select option {
                font-weight: 400;
                color: #333;
                padding: 10px 15px;
                background-color: white;
            }

    /* ============================================
   SEARCH INPUT - Arama Alanı
   ============================================ */
    .hero-search-wrapper .search-input {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        min-width: 0;
    }

        .hero-search-wrapper .search-input input {
            width: 100%;
            height: 100%;
            padding: 0 70px 0 20px;
            border: none;
            font-size: 16px;
            color: #333;
            background-color: transparent;
            transition: var(--search-transition);
        }

            .hero-search-wrapper .search-input input::placeholder {
                color: #999;
                font-weight: 400;
            }

            .hero-search-wrapper .search-input input:focus {
                outline: none;
                background-color: #fafafa;
            }

            .hero-search-wrapper .search-input input:not(:placeholder-shown) {
                background-color: #fafafa;
            }

        /* ============================================
   SEARCH BUTTON - Arama Butonu
   ============================================ */
        .hero-search-wrapper .search-input button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            height: 54px;
            width: 54px;
            background: linear-gradient(135deg, var(--search-primary), var(--search-primary-light));
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            border-radius: 6px;
            align-items: center;
            justify-content: center;
            transition: var(--search-transition);
            box-shadow: 0 2px 8px rgba(255, 111, 15, 0.3);
        }

            .hero-search-wrapper .search-input button:hover {
                background: linear-gradient(135deg, var(--search-primary-dark), var(--search-primary));
                transform: translateY(-50%) scale(1.05);
                box-shadow: 0 4px 12px rgba(255, 111, 15, 0.4);
            }

            .hero-search-wrapper .search-input button:active {
                transform: translateY(-50%) scale(0.98);
            }

            .hero-search-wrapper .search-input button i {
                font-size: 20px;
            }

    /* ============================================
   AUTOCOMPLETE RESULTS - Otomatik Tamamlama
   ============================================ */
    .hero-search-wrapper .search-autocomplete-results {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        width: 100%;
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 99999 !important; /* ❌ 2000 → ✅ 99999 */
        overflow: hidden;
        max-height: 650px;
        overflow-y: auto;
        display: none;
        animation: slideDown 0.25s ease-out;
    }

        .hero-search-wrapper .search-autocomplete-results.active {
            display: block;
        }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Autocomplete Scrollbar */
.hero-search-wrapper .search-autocomplete-results::-webkit-scrollbar {
    width: 6px;
}

.hero-search-wrapper .search-autocomplete-results::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.hero-search-wrapper .search-autocomplete-results::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

    .hero-search-wrapper .search-autocomplete-results::-webkit-scrollbar-thumb:hover {
        background: var(--search-primary);
    }

/* ============================================
   SEARCH TYPE TABS - Kitap Arama / Literatür Butonları
   ============================================ */
.search-type-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .search-type-tabs .btn.btn-block {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 28px;
        min-width: 180px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 8px;
        color: #333;
        font-size: 14px;
      
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        white-space: nowrap;
        flex: 1;
        margin: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .search-type-tabs .btn.btn-block:hover {
            background: white;
            color: var(--search-primary);
            text-decoration: none;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .search-type-tabs .btn.btn-block.active {
            background: var(--search-primary) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(255, 111, 15, 0.4);
        }

            .search-type-tabs .btn.btn-block.active:hover {
                background: var(--search-primary-dark) !important;
            }

        .search-type-tabs .btn.btn-block i {
            font-size: 16px;
            padding: 0;
            margin-right: 6px;
        }

/* ============================================
   QUICK LINKS
   ============================================ */
.search-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.search-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.7rem;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

    .search-quick-link:hover {
        background: var(--search-primary);
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 111, 15, 0.4);
    }

    .search-quick-link i {
        font-size: 14px;
        color: var(--search-primary);
        transition: color 0.3s ease;
    }

    .search-quick-link:hover i {
        color: white;
    }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        box-shadow: var(--search-shadow);
    }

    50% {
        box-shadow: 0 8px 40px rgba(255, 111, 15, 0.25);
    }
}

.hero-search-wrapper .search-input-group.pulse {
    animation: pulse 2s infinite;
}

/* Focus ring for accessibility */
.hero-search-wrapper .search-select select:focus-visible,
.hero-search-wrapper .search-input input:focus-visible,
.hero-search-wrapper .search-input button:focus-visible {
    outline: 2px solid var(--search-primary);
    outline-offset: 2px;
}

/* ============================================
   DARK OVERLAY UYUMU
   ============================================ */

/* ============================================
   AUTOCOMPLETE RESULTS - fastSearchV1 Stilleri
   ============================================ */
.search-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .search-results-table thead {
        background-color: #f7f8fc;
        position: sticky;
        top: 0;
        z-index: 10;
    }

        .search-results-table thead tr {
            border-bottom: 2px solid #e1e4eb;
        }

        .search-results-table thead th {
            padding: 12px 15px;
          
            color: #1a2b3c;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.75em;
            background-color: #f7f8fc;
            text-align: left;
        }

    .search-results-table tbody tr {
        transition: background-color 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
    }

        .search-results-table tbody tr:hover {
            background-color: #fff8f5;
        }

        .search-results-table tbody tr:last-child {
            border-bottom: none;
        }

    .search-results-table tbody td {
        padding: 12px 15px;
        vertical-align: middle;
        color: #4a5568;
    }

        .search-results-table tbody td a {
            color: #333;
            text-decoration: none;
            transition: color 0.2s ease;
            display: block;
        }

            .search-results-table tbody td a:hover {
                color: var(--search-primary);
            }

            .search-results-table tbody td a span.text-dark {
                color: #666;
                font-size: 0.85em;
                display: block;
                margin-top: 4px;
            }

.search-result-book-image {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results-table tbody tr:hover .search-result-book-image {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.search-results-section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
    padding: 12px 18px;
  
    color: #1a2b3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8em;
    border-top: 1px solid #e1e4eb;
    border-bottom: 1px solid #e1e4eb;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .search-results-section-header::before {
        content: '';
        width: 4px;
        height: 18px;
        background: linear-gradient(180deg, var(--search-primary), var(--search-primary-light));
        border-radius: 2px;
    }

/* ============================================
   CARDS CONTAINER
   ============================================ */
.search-results-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 18px;
    background-color: #ffffff;
}

.search-results-card {
    background-color: #f7f8fc;
    border-radius: 25px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid transparent;
}

    .search-results-card:hover {
        background-color: var(--search-primary);
        color: white;
        border-color: var(--search-primary);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255,111,15,0.2);
    }

    .search-results-card a,
    .search-results-card a.writer-link {
        display: flex;
        align-items: center;
        padding: 10px 18px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s ease;
        width: 100%;
    }

    .search-results-card:hover a,
    .search-results-card:hover a.writer-link {
        color: white;
    }

a.search-results-card {
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

    a.search-results-card:hover {
        color: white;
        text-decoration: none;
    }

.search-results-icon {
    margin-right: 8px;
    color: var(--search-primary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.search-results-card:hover .search-results-icon {
    color: white;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.search-results-loading,
.search-results-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4a5568;
    background-color: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    .search-results-loading i,
    .search-results-empty i {
        font-size: 2.5em;
        color: var(--search-primary);
        animation: autocomplete-pulse 1.5s infinite;
    }

    .search-results-empty i {
        animation: none;
        opacity: 0.6;
    }

@keyframes autocomplete-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.search-results-info-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.8em;
    padding: 12px 18px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
}

/* ============================================
   ANASAYFA AUTOCOMPLETE - DROPDOWN STYLE
   ============================================ */
#heroAutocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 99999 !important; /* ✅ 9999 → 99999 !important */
    overflow: hidden;
    max-height: 75vh;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    #heroAutocomplete.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        overflow: auto;
    }

/* Header */
.hero-autocomplete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .hero-autocomplete-header h3 {
        margin: 0;
        font-size: 15px;
        color: black;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .hero-autocomplete-header h3 i {
            font-size: 16px;
        }

.hero-autocomplete-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-autocomplete-close:hover {
        background: rgba(255,255,255,0.35);
        transform: rotate(90deg);
    }

/* Body */
.hero-autocomplete-body {
    padding: 16px;
    max-height: calc(75vh - 60px);
    overflow-y: auto;
}

    .hero-autocomplete-body::-webkit-scrollbar {
        width: 5px;
    }

    .hero-autocomplete-body::-webkit-scrollbar-track {
        background: #f5f5f5;
    }

    .hero-autocomplete-body::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 3px;
    }

        .hero-autocomplete-body::-webkit-scrollbar-thumb:hover {
            background: var(--search-primary);
        }

/* ============================================
   SONUÇ GRID SİSTEMİ
   ============================================ */
.hero-results-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

    .hero-results-grid.only-entities {
        grid-template-columns: 1fr;
    }

        .hero-results-grid.only-entities .hero-results-sidebar {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

/* ============================================
   KİTAPLAR
   ============================================ */
.hero-results-books {
    min-width: 0;
}

.hero-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
  
    color: #1a2b3c;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

    .hero-section-title .icon-box {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, var(--search-primary), #ff8a3f);
        color: white;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    .hero-section-title .count-badge {
        margin-left: auto;
        background: #f0f0f0;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 11px;
        color: #666;
        font-weight: 500;
    }

/* Kitap Listesi */
.hero-book-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Kitap Kartı - Yatay (Masaüstü) */
.hero-book-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

    .hero-book-item:hover {
        background: #fff;
        border-color: var(--search-primary);
        box-shadow: 0 4px 12px rgba(255, 111, 15, 0.12);
        transform: translateX(3px);
    }

.hero-book-cover {
    width: 45px;
    height: 65px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.hero-book-info {
    flex: 1;
    min-width: 0;
}

.hero-book-title {
    font-size: 13px;
  
    color: #1a2b3c;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.hero-book-meta {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hero-book-meta .publisher {
        color: var(--search-primary);
        font-weight: 500;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-book-meta .year-badge {
        background: #f0f0f0;
        padding: 2px 8px;
        border-radius: 4px;
      
        color: #555;
        font-size: 10px;
    }

.hero-book-arrow {
    color: #ccc;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hero-book-item:hover .hero-book-arrow {
    color: var(--search-primary);
    transform: translateX(3px);
}

/* ============================================
   YAZARLAR / YAYINCILAR
   ============================================ */
.hero-results-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-entity-section {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 12px;
}

.hero-entity-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-entity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #333;
}

    .hero-entity-card:hover {
        background: linear-gradient(135deg, var(--search-primary) 0%, #ff8a3f 100%);
        border-color: transparent;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 111, 15, 0.25);
    }

.hero-entity-icon {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--search-primary);
    font-size: 12px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.hero-entity-card:hover .hero-entity-icon {
    background: rgba(255,255,255,0.25);
    color: white;
}

.hero-entity-name {
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-entity-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
    font-size: 10px;
}

.hero-entity-card:hover .hero-entity-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* SADECE YAZAR/YAYINCI */
.hero-results-only-entities {
    width: 100%;
}

    .hero-results-only-entities .hero-entity-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
/* BOŞ DURUM */
.hero-empty-state {
    text-align: center;
    padding: 40px 20px;
}

    .hero-empty-state .empty-icon {
        width: 60px;
        height: 60px;
        background: #f5f5f5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px auto;
    }

        .hero-empty-state .empty-icon i {
            font-size: 24px;
            color: #ccc;
        }

    .hero-empty-state p {
        font-size: 14px;
        color: #888;
        margin: 0 0 20px 0;
    }

.hero-empty-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* YÜKLENİYOR */
.hero-loading-state {
    text-align: center;
    padding: 40px 20px;
}

    .hero-loading-state .loading-spinner {
        width: 36px;
        height: 36px;
        border: 3px solid #f0f0f0;
        border-top-color: var(--search-primary);
        border-radius: 50%;
        animation: heroSpin 0.8s linear infinite;
        margin: 0 auto 16px auto;
    }

@keyframes heroSpin {
    to {
        transform: rotate(360deg);
    }
}

.hero-loading-state p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ============================================
   BİLGİ NOTU
   ============================================ */
.hero-info-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff8f0;
    border-radius: 8px;
    border-left: 3px solid var(--search-primary);
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

    .hero-info-note i {
        color: var(--search-primary);
        margin-right: 6px;
    }

/* ============================================
   API MESAJ ALANI
   ============================================ */
.hero-search-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    margin: 12px 0 0 0;
    background: #fff8f0;
    border-radius: 8px;
    border-left: 3px solid var(--search-primary);
    font-size: 10px;
    color: #666;
    line-height: 1.5;
}

    .hero-search-message i {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .hero-search-message span {
        flex: 1;
    }

/* ============================================
   FOOTER BUTONLAR
   ============================================ */
.hero-autocomplete-footer {
    display: none;
}

.hero-section-footer {
    padding: 10px 0 0 0;
    text-align: center;
}

.hero-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
  
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

    .hero-more-btn.books-btn {
        background: var(--search-primary);
        color: white;
    }

        .hero-more-btn.books-btn:hover {
            background: #e56000;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(255, 111, 15, 0.3);
            color: white;
            text-decoration: none;
        }

    .hero-more-btn.authors-btn {
        background: #2c3e50;
        color: white;
    }

        .hero-more-btn.authors-btn:hover {
            background: #1a252f;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(44, 62, 80, 0.3);
            color: white;
            text-decoration: none;
        }

    .hero-more-btn i {
        font-size: 11px;
    }

        .hero-more-btn i.btn-arrow {
            font-size: 10px;
            opacity: 0.7;
            transition: transform 0.2s ease;
        }

    .hero-more-btn:hover i.btn-arrow {
        transform: translateX(2px);
        opacity: 1;
    }

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media screen and (max-width: 768px) {
    .hero-search-wrapper {
        max-width: 100%;
        padding: 0 5px;
    }

        .hero-search-wrapper .search-input-group {
            flex-direction: column;
            height: auto;
            border-radius: var(--search-radius);
            overflow: hidden;
        }

        .hero-search-wrapper .search-select {
            flex: 0 0 auto;
            max-width: 100%;
            width: 100%;
            border-right: none;
            border-bottom: 1px solid #eee;
            border-radius: var(--search-radius) var(--search-radius) 0 0;
        }

            .hero-search-wrapper .search-select select {
                height: 50px;
                padding: 0 40px 0 15px;
                text-align: left;
                font-size: 14px;
            }

        .hero-search-wrapper .search-input {
            flex: 0 0 auto;
            width: 100%;
        }

            .hero-search-wrapper .search-input input {
                height: 50px;
                padding: 0 60px 0 15px;
                font-size: 15px;
            }

            .hero-search-wrapper .search-input button {
                height: 42px;
                width: 50px;
                right: 4px;
            }

                .hero-search-wrapper .search-input button i {
                    font-size: 18px;
                }

    .search-type-tabs {
        gap: 4px;
        padding: 4px;
        margin-bottom: 15px;
    }

        .search-type-tabs .btn.btn-block {
            padding: 10px 16px;
            font-size: 13px;
            min-width: auto;
        }

            .search-type-tabs .btn.btn-block i {
                font-size: 14px;
                margin-right: 4px;
            }

    .search-quick-links {
        gap: 6px;
        margin-top: 12px;
    }

    .search-quick-link {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Autocomplete Table Responsive */
    .search-results-table {
        display: block;
        width: 100%;
    }

        .search-results-table thead {
            display: none;
        }

        .search-results-table tbody {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 12px;
        }

            .search-results-table tbody tr {
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 12px;
                background: #f9fafb;
                border-radius: 10px;
                border: 1px solid #e5e7eb;
                gap: 12px;
            }

                .search-results-table tbody tr:hover {
                    background-color: #fff8f5;
                    border-color: var(--search-primary);
                }

            .search-results-table tbody td:first-child {
                flex-shrink: 0;
                padding: 0;
            }

            .search-results-table tbody td:nth-child(2) {
                flex: 1;
                min-width: 0;
                padding: 0;
            }

            .search-results-table tbody td:nth-child(3),
            .search-results-table tbody td:nth-child(4) {
                display: none;
            }

    .search-result-book-image {
        width: 50px;
        height: 75px;
    }

    .search-results-cards-container {
        padding: 12px;
        gap: 8px;
    }

    .search-results-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }

        .search-results-card a,
        .search-results-card a.writer-link,
        a.search-results-card {
            padding: 8px 14px;
            font-size: 13px;
            justify-content: center;
        }

    .search-results-icon {
        font-size: 12px;
        margin-right: 6px;
    }

    .search-results-section-header {
        padding: 10px 14px;
        font-size: 0.75em;
    }
}

/* ============================================
   MOBİL - DİKEY KİTAP KARTLARI (768px ve altı)
   500px üstü: 2'li grid
   500px altı: tek sütun
   ============================================ */
@media (max-width: 768px) {
    #heroAutocomplete {
        border-radius: 12px;
        max-height: 70vh;
    }

    .hero-autocomplete-header {
        padding: 12px 16px;
    }

    .hero-autocomplete-body {
        padding: 12px;
    }

    .hero-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

        .hero-results-grid.only-entities .hero-results-sidebar,
        .hero-results-only-entities {
            grid-template-columns: 1fr;
        }

    .hero-entity-section {
        padding: 10px;
    }

    /* KİTAP KARTLARI - 2'Lİ GRID (500px-768px) */
    .hero-book-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-book-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 10px;
        align-items: center;
    }

        .hero-book-item:hover {
            transform: translateY(-2px);
        }

    .hero-book-cover {
        width: 65px;
        height: 92px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .hero-book-info {
        width: 100%;
    }

    .hero-book-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .hero-book-meta {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }

        .hero-book-meta .publisher {
            max-width: 100%;
            font-size: 10px;
            text-align: center;
        }

        .hero-book-meta .year-badge {
            font-size: 9px;
            padding: 2px 8px;
        }

    .hero-book-arrow {
        display: none;
    }

    .hero-section-footer {
        padding: 8px 0 0 0;
    }

    .hero-more-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* ============================================
   KÜÇÜK MOBİL (500px ve altı) - TEK SÜTUN
   ============================================ */
@media (max-width: 500px) {
    /* Kitap - Tek Sütun */
    .hero-book-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-book-item {
        padding: 12px;
    }

    .hero-book-cover {
        width: 70px;
        height: 100px;
        margin-bottom: 10px;
    }

    .hero-book-title {
        font-size: 13px;
    }

    .hero-book-meta .publisher {
        font-size: 11px;
    }

    .hero-book-meta .year-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* ============================================
   KÜÇÜK MOBİL (480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .hero-search-wrapper {
        padding: 0 3px;
    }

        .hero-search-wrapper .search-select select {
          
            font-size: 13px;
            padding: 0 35px 0 10px;
        }

        .hero-search-wrapper .search-input input {
            height: 46px;
            font-size: 14px;
            padding: 0 52px 0 10px;
        }

            .hero-search-wrapper .search-input input::placeholder {
                font-size: 12px;
            }

        .hero-search-wrapper .search-input button {
            height: 38px;
            width: 44px;
            right: 4px;
        }

            .hero-search-wrapper .search-input button i {
                font-size: 16px;
            }

    .search-type-tabs {
        padding: 3px;
        gap: 3px;
        border-radius: 10px;
        margin: 0 auto 12px auto;
    }

        .search-type-tabs .btn.btn-block {
            padding: 8px 10px;
            font-size: 11px;
            border-radius: 7px;
        }

            .search-type-tabs .btn.btn-block i {
                font-size: 12px;
                margin-right: 2px;
            }

    .search-quick-links {
        display: none;
    }

    .search-results-table tbody {
        padding: 8px;
        gap: 8px;
    }

        .search-results-table tbody tr {
            padding: 10px;
            gap: 10px;
        }

    .search-result-book-image {
        width: 45px;
        height: 68px;
    }

    .search-results-cards-container {
        padding: 10px;
        gap: 6px;
    }

    .search-results-card {
        flex: 1 1 100%;
    }

        .search-results-card a,
        .search-results-card a.writer-link,
        a.search-results-card {
            padding: 10px 16px;
            font-size: 14px;
        }

    .search-results-loading,
    .search-results-empty {
        padding: 30px 15px;
    }

        .search-results-loading i,
        .search-results-empty i {
            font-size: 2em;
        }

    /* Hero Autocomplete - Küçük Mobil */
    #heroAutocomplete {
        margin-top: 8px;
        border-radius: 10px;
    }

    .hero-autocomplete-header h3 {
        font-size: 13px;
    }

    .hero-entity-card {
        padding: 6px 8px;
    }

    .hero-entity-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .hero-entity-name {
        font-size: 11px;
    }

    .hero-section-footer {
        padding: 6px 0 0 0;
    }

    .hero-more-btn {
        padding: 5px 10px;
        font-size: 9px;
        border-radius: 15px;
    }

        .hero-more-btn i {
            font-size: 9px;
        }
}

/* ============================================
   ORTA EKRANLAR (769px - 1200px) DÜZELTME
   Grid tek sütuna, içerikler rahat
   ============================================ */
@media (min-width: 769px) and (max-width: 1200px) {
    .hero-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-results-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-book-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-book-item {
        padding: 10px;
    }

    .hero-book-cover {
        width: 42px;
        height: 60px;
    }

    .hero-book-title {
        font-size: 12px;
    }

    .hero-book-meta {
        font-size: 10px;
    }

        .hero-book-meta .publisher {
            max-width: 140px;
        }

    .hero-entity-section {
        padding: 10px;
    }

    .hero-entity-card {
        padding: 8px 10px;
    }

    .hero-entity-name {
        font-size: 11px;
    }

    .hero-search-message {
        font-size: 11px;
    }
}

/* ============================================
   LG EKRANLAR (1201px ve üzeri)
   ============================================ */
@media (min-width: 1201px) {
    .hero-book-cover {
        width: 52px;
        height: 75px;
    }

    .hero-book-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .hero-book-meta {
        font-size: 12px;
    }

        .hero-book-meta .publisher {
            max-width: 200px;
        }

        .hero-book-meta .year-badge {
            font-size: 11px;
            padding: 3px 10px;
        }

    .hero-section-title {
        font-size: 14px;
    }

        .hero-section-title .icon-box {
            width: 30px;
            height: 30px;
            font-size: 13px;
        }

        .hero-section-title .count-badge {
            font-size: 12px;
            padding: 4px 12px;
        }

    .hero-entity-card {
        padding: 10px 12px;
    }

    .hero-entity-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .hero-entity-name {
        font-size: 13px;
    }

    .hero-search-message {
        font-size: 12px;
        padding: 12px 16px;
    }

    .hero-info-note {
        font-size: 12px;
        padding: 12px 16px;
    }
}

/* ============================================
   XL EKRANLAR (1280px ve üzeri)
   ============================================ */
@media (min-width: 1280px) {
    .hero-book-cover {
        width: 55px;
        height: 80px;
    }

    .hero-book-item {
        padding: 12px;
        gap: 14px;
    }

    .hero-book-title {
        font-size: 15px;
    }

    .hero-book-meta {
        font-size: 12px;
        gap: 10px;
    }

        .hero-book-meta .publisher {
            max-width: 220px;
        }

    .hero-section-title {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

        .hero-section-title .icon-box {
            width: 32px;
            height: 32px;
            font-size: 14px;
        }

    .hero-entity-section {
        padding: 14px;
    }

    .hero-entity-card {
        padding: 10px 14px;
        gap: 12px;
    }

    .hero-entity-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero-entity-name {
        font-size: 14px;
    }

    .hero-results-grid {
        gap: 24px;
    }

    .hero-book-list {
        gap: 10px;
    }

    .hero-entity-grid {
        gap: 8px;
    }

    .hero-search-message {
        font-size: 12px;
        padding: 12px 18px;
        margin-top: 14px;
    }

    .hero-autocomplete-body {
        padding: 18px;
    }
}


/* Tablet */
@media (max-width: 991px) {
    .hero-slider-container #headerContainer {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-slider-container #headerContainer {
        padding: 2.5rem 0.5rem !important;
    }
}

/* Küçük mobil */
@media (max-width: 480px) {
    .hero-slider-container #headerContainer {
        padding: 2rem 0.2rem !important;
    }
}