﻿/* ============================================================
   Akıllı Tekne Arama — Anasayfa
   Dalvi brand paleti: #30a8d5 · #0ecdc2 · #e4d183
   ============================================================ */

.ai-boat-finder {
    position: relative;
    padding: 70px 0 130px;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f4fafd 100%);
    border-top: 1px solid #e6eef3;
    border-bottom: 1px solid #e6eef3;
    overflow: hidden;
}

/* Alt kenarda subtle dalga dekoru — brand mavi, opak değil */
.ai-boat-finder__waves {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 90px;
    z-index: 0;
    pointer-events: none;
}
.ai-boat-finder__waves path:nth-child(1) { fill: #30a8d5; opacity: 0.06; }
.ai-boat-finder__waves path:nth-child(2) { fill: #0ecdc2; opacity: 0.08; }
.ai-boat-finder__waves path:nth-child(3) { fill: #30a8d5; opacity: 0.10; }

.ai-boat-finder .container { position: relative; z-index: 2; }

/* Başlık alanı */
.ai-boat-finder__header {
    text-align: center;
    margin-bottom: 32px;
}
.ai-boat-finder__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #cfe7f2;
    border-radius: 100px;
    color: #30a8d5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(48, 168, 213, 0.08);
}
.ai-boat-finder__badge .ai-sparkle {
    display: inline-flex;
    color: #30a8d5;
}

.ai-boat-finder__title {
    color: #1a3a4a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    font-family: inherit;
}
.ai-boat-finder__title .ai-accent {
    color: #30a8d5;
    position: relative;
}
.ai-boat-finder__title .ai-accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 6px;
    background: #e4d183;
    opacity: 0.35;
    z-index: -1;
    border-radius: 3px;
}

.ai-boat-finder__subtitle {
    color: #5c7785;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 660px;
}

/* Textarea — beyaz kart, brand mavi border */
.ai-textarea-wrap {
    position: relative;
    background: #ffffff;
    border: 1px solid #cfe7f2;
    border-radius: 18px;
    margin-bottom: 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 24px rgba(48, 168, 213, 0.06);
}
.ai-textarea-wrap:focus-within {
    border-color: #30a8d5;
    box-shadow:
        0 0 0 4px rgba(48, 168, 213, 0.12),
        0 10px 30px rgba(48, 168, 213, 0.1);
}

.ai-textarea-inner {
    position: relative;
    padding: 20px 20px 20px 54px;
}
.ai-textarea-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #30a8d5;
}

.ai-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    outline: none;
    color: #1a3a4a;
    font-size: 15px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
}
.ai-textarea-wrap textarea::placeholder {
    color: #9fb4bf;
}

/* Örnek prompt chip'leri */
.ai-boat-finder__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 26px;
}
.ai-chip-label {
    color: #8a9ba7;
    font-size: 12px;
    align-self: center;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ai-chip {
    background: #ffffff;
    border: 1px solid #d8e6ed;
    color: #40606e;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}
.ai-chip:hover {
    background: #f4fafd;
    border-color: #30a8d5;
    color: #30a8d5;
    transform: translateY(-1px);
}
.ai-chip:active { transform: translateY(0); }

/* Buton — marka mavisi solid, hover'da altın accent */
.ai-boat-finder__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 36px;
    background: #30a8d5;
    border: none;
    border-radius: 100px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(48, 168, 213, 0.28);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    font-family: inherit;
}
.ai-boat-finder__btn:hover {
    background: #2897c2;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(48, 168, 213, 0.38);
}
.ai-boat-finder__btn:active { transform: translateY(0); }
.ai-boat-finder__btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}
.ai-btn-icon {
    display: inline-flex;
    color: #ffffff;
}

/* Loading spinner (is-loading state) */
.ai-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aiBtnSpin 0.7s linear infinite;
}
@keyframes aiBtnSpin { to { transform: rotate(360deg); } }
.ai-boat-finder__btn.is-loading .ai-btn-icon { display: none; }
.ai-boat-finder__btn.is-loading .ai-btn-spinner { display: inline-block; }

/* ============================================================
   Kompakt varyant — Tekneler sayfası (filtre + liste alanı içi)
   Tek satır pill: ikon · input · buton
   ============================================================ */
.ai-finder-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #d8e6ed;
    border-radius: 100px;
    padding: 6px 6px 6px 18px;
    margin: 30px 0 28px;
    box-shadow: 0 4px 18px rgba(48, 168, 213, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-finder-mini:focus-within {
    border-color: #30a8d5;
    box-shadow: 0 0 0 3px rgba(48, 168, 213, 0.12), 0 6px 22px rgba(48, 168, 213, 0.10);
}

.ai-finder-mini__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #30a8d5;
    flex-shrink: 0;
}

.ai-finder-mini input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1a3a4a;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 4px;
}
.ai-finder-mini input[type="text"]::placeholder {
    color: #9fb4bf;
}

.ai-finder-mini__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    background: #30a8d5;
    border: none;
    border-radius: 100px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 24px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ai-finder-mini__btn:hover {
    background: #2897c2;
    box-shadow: 0 6px 18px rgba(48, 168, 213, 0.28);
}
.ai-finder-mini__btn:disabled {
    opacity: 0.75;
    cursor: wait;
}
.ai-finder-mini__btn .ai-btn-spinner { display: none; }
.ai-finder-mini__btn.is-loading .ai-btn-spinner { display: inline-block; }

@media (max-width: 575px) {
    .ai-finder-mini {
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 10px 12px;
        gap: 6px;
    }
    .ai-finder-mini input[type="text"] {
        flex: 1 1 100%;
        order: 2;
        padding: 8px 2px;
    }
    .ai-finder-mini__icon { order: 1; }
    .ai-finder-mini__btn {
        order: 3;
        width: 100%;
        padding: 12px 18px;
    }
}

/* ============================================================
   AI Sonuç Tanıtım Bloğu — Tekneler Sayfası
   Brand paleti: #30a8d5 · #0ecdc2 · #e4d183 · #1a3a4a
   ============================================================ */
.ai-result-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 22px 0 8px;
}

.ai-result-card {
    flex: 1 1 280px;
    position: relative;
    border-radius: 18px;
    padding: 18px 22px;
    overflow: hidden;
}

.ai-result-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
}

/* Sol kart: kullanıcının isteği */
.ai-result-query {
    background: #ffffff;
    border: 1px solid #cfe7f2;
    box-shadow: 0 4px 14px rgba(48, 168, 213, 0.08);
}
.ai-result-query::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #30a8d5 0%, #0ecdc2 100%);
}
.ai-result-query .ai-result-card__label { color: #30a8d5; }
.ai-result-query .ai-result-card__text {
    color: #1a3a4a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    font-style: italic;
}

/* Sağ kart: AI özeti */
.ai-result-summary {
    flex: 2 1 440px;
    background: linear-gradient(135deg, #1a3a4a 0%, #30a8d5 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(26, 58, 74, 0.22);
}
.ai-result-summary::after {
    content: "";
    position: absolute;
    right: -30px; bottom: -30px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(228, 209, 131, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.ai-result-summary .ai-result-card__label {
    color: #e4d183;
}
.ai-result-summary .ai-result-card__label .ai-result-anchor {
    display: inline-flex;
    width: 22px; height: 22px;
    align-items: center;
    justify-content: center;
    background: rgba(228, 209, 131, 0.18);
    border-radius: 50%;
    color: #e4d183;
}
.ai-result-summary .ai-result-card__text {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Boş sonuç ve hata uyarıları — site temasıyla uyumlu */
.ai-result-empty,
.ai-result-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}
.ai-result-empty {
    background: #f4fafd;
    border: 1px solid #cfe7f2;
    color: #1a3a4a;
}
.ai-result-empty .ai-result-icon { color: #30a8d5; }
.ai-result-error {
    background: #fff8e8;
    border: 1px solid #f3e2a8;
    color: #6b5a1a;
}
.ai-result-error .ai-result-icon { color: #c89a1a; }

@media (max-width: 575px) {
    .ai-result-card { padding: 14px 16px; }
    .ai-result-summary .ai-result-card__text,
    .ai-result-query .ai-result-card__text { font-size: 14px; }
}

/* Responsive */
@media (max-width: 991px) {
    .ai-boat-finder { padding: 55px 0 110px; margin-bottom: 45px; }
    .ai-boat-finder__title { font-size: 28px; }
}
@media (max-width: 575px) {
    .ai-boat-finder { padding: 45px 0 95px; margin-bottom: 35px; }
    .ai-boat-finder__title { font-size: 22px; }
    .ai-boat-finder__subtitle { font-size: 14px; }
    .ai-textarea-inner { padding: 18px 16px 16px 48px; }
    .ai-textarea-icon { top: 18px; left: 16px; }
    .ai-boat-finder__btn { padding: 15px 24px; font-size: 13px; }
    .ai-chip { padding: 7px 14px; font-size: 12px; }
}
