/* Ana sayfa akıllı arama */
.hero--search {
    padding: 32px 0 48px;
    position: relative;
    z-index: 1;
}

.hero--search .hs-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(237, 233, 254, 0.85));
    border: 1px solid rgba(99, 102, 241, 0.22);
    font-size: 0.8rem;
    font-weight: 600;
    color: #4338ca;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.hero--search .hs-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #4f46e5 45%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hero--search .hs-subline {
    color: var(--muted);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.hs-search-wrap {
    max-width: 720px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.hs-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 999px;
    padding: 6px 8px 6px 22px;
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1), 0 2px 8px rgba(14, 165, 233, 0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
    backdrop-filter: blur(8px);
}

.hs-search-box:focus-within {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.14), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.hs-search-box i.hs-icon-search {
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hs-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 12px 0;
    background: transparent;
    color: var(--navy);
    min-width: 0;
}

.hs-search-box input::placeholder {
    color: #94a3b8;
}

.hs-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hs-btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.hs-btn-ai:hover {
    background: linear-gradient(135deg, #f0f9ff, #f5f3ff);
    border-color: rgba(99, 102, 241, 0.25);
    color: #4338ca;
}

.hs-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s, box-shadow 0.15s;
}

.hs-btn-search:hover {
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    transform: scale(1.04);
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.32);
}

.hs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.hs-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.hs-chip:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: #6d28d9;
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
}

/* 1M kaynak altyapısı — ana sayfa bandı */
.hs-infra-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 760px;
    margin: 24px auto 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(245, 243, 255, 0.9) 100%);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.08);
    text-align: left;
}

.hs-infra-banner__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.hs-infra-banner__title {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.hs-infra-banner__text {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

.hs-infra-banner__metrics {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.5;
}

.hs-infra-banner__metrics strong {
    color: var(--navy);
    font-weight: 800;
}

.hs-infra-banner__sep {
    margin: 0 4px;
    opacity: 0.45;
}

.hs-infra-banner__new {
    color: #047857;
    font-weight: 800;
}

.hs-infra-banner__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6d28d9;
    text-decoration: none;
}

.hs-infra-banner__link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .hs-infra-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .hs-infra-banner__metrics {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .hs-infra-banner__sep {
        display: none;
    }
}

/* Modal */
.hs-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.hs-modal.is-open {
    display: flex;
}

.hs-modal__panel {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
    margin-top: 4vh;
    margin-bottom: 4vh;
    overflow: hidden;
    animation: hsModalIn 0.25s ease;
}

@keyframes hsModalIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.hs-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.hs-modal__head h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--navy);
}

.hs-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    color: #475569;
}

.hs-modal__body {
    padding: 20px 22px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.hs-modal__body.is-guest-blur .hs-results-inner {
    filter: blur(8px);
    user-select: none;
    transition: filter 0.6s ease;
}

.hs-ai-hint {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #bfdbfe;
    margin-bottom: 18px;
    font-size: 0.92rem;
    color: #1e3a5f;
    line-height: 1.5;
}

.hs-ai-hint i {
    color: var(--accent);
    margin-top: 2px;
}

.hs-ai-panel {
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, rgba(238,242,255,0.95), rgba(245,243,255,0.92));
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.hs-ai-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    color: #3730a3;
    font-size: 0.95rem;
}

.hs-ai-panel__head i { font-size: 1.1rem; }

.hs-ai-panel__body {
    padding: 16px 18px 18px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.65;
}

.hs-ai-panel__body p { margin: 0 0 12px; }
.hs-ai-panel__body p:last-child { margin-bottom: 0; }

.hs-loading .fa-spin { animation: hs-spin 0.9s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }

.hs-guest-overlay {
    display: none;
    text-align: center;
    padding: 28px 20px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.hs-modal__body.is-guest-blur .hs-guest-overlay {
    display: block;
}

.hs-guest-overlay p {
    color: #475569;
    margin-bottom: 14px;
}

.hs-guest-overlay .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hs-restrict-banner {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.45;
}

.hs-restrict-banner--student {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.hs-restrict-banner--student strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.hs-restrict-banner--student p {
    margin: 0 0 8px;
}

.hs-restrict-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.hs-restrict-call:hover {
    background: #1e40af;
}

.hs-group {
    margin-bottom: 22px;
}

.hs-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hs-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hs-result-item__body {
    flex: 1;
    min-width: 0;
}

.hs-result-item__badge {
    flex-shrink: 0;
    align-self: center;
    max-width: 118px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.hs-result-item__badge--corporate {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.hs-result-item__badge--entegre {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.hs-result-item__badge--student {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.hs-result-item__badge--locked {
    color: #c2410c;
    background: #fff7ed;
    border-color: #fdba74;
}

.hs-result-item:hover:not(.hs-result-item--locked) {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.hs-result-item--locked {
    opacity: 0.85;
    cursor: not-allowed;
    background: #fafafa;
}

.hs-result-item--locked.is-flash {
    box-shadow: 0 0 0 2px #2563eb;
}

.hs-result-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-result-item__title {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.hs-result-item__sub {
    font-size: 0.82rem;
    color: #64748b;
}

.hs-result-item__lock {
    font-size: 0.78rem;
    color: #c2410c;
    margin-top: 4px;
}

.hs-empty {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
}

.hs-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.hs-loading i {
    font-size: 1.5rem;
    color: var(--accent);
    animation: hsSpin 0.8s linear infinite;
}

@keyframes hsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .hs-search-box {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px 14px;
    }
    .hs-search-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .hero--search { padding: 26px 0 42px; }
    .hs-search-box { padding: 10px 12px; gap: 10px; }
    .hs-search-box input { font-size: 0.98rem; padding: 10px 0; }
    .hs-btn-ai { padding: 9px 12px; font-size: 0.78rem; }
    .hs-btn-search { width: 44px; height: 44px; }
    .hs-chip { font-size: 0.78rem; padding: 6px 12px; }
    .hs-infra-banner { padding: 14px 14px; }
}
