/* =========================================================
   AI ƏTİR SEÇİCİ (frontend/advisor.blade.php)
   ========================================================= */
.advisor { max-width: 860px; margin: 0 auto; padding: 28px 0 60px; }

.advisor-hero { text-align: center; margin-bottom: 26px; }
.advisor-hero__badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
[data-theme="dark"] .advisor-hero__badge { color: var(--text); background: color-mix(in srgb, var(--accent) 35%, transparent); }
.advisor-hero__title { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 12px 0 8px; color: var(--text); }
.advisor-hero__text { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0 auto; max-width: 520px; }

.advisor-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px 28px 28px; }
.advisor-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.advisor-q__title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 700; color: var(--text); }
.advisor-q__title small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.advisor-q__num {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; background: var(--accent); color: var(--on-accent);
}
.advisor-q__options { display: flex; flex-wrap: wrap; gap: 8px; }

/* Seçim çipləri */
.advisor-chip { position: relative; cursor: pointer; }
.advisor-chip input { position: absolute; opacity: 0; pointer-events: none; }
.advisor-chip span {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
    border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg);
    font-size: 14.5px; font-weight: 500; color: var(--text);
    transition: background-color .15s, border-color .15s, color .15s;
}
.advisor-chip:hover span { border-color: var(--accent); }
.advisor-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.advisor-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.advisor-chip input:disabled + span { opacity: .45; cursor: not-allowed; }

.advisor-input {
    width: 100%; height: 48px; box-sizing: border-box; padding: 0 16px;
    border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg); color: var(--text);
    font: inherit; font-size: 16px;
}
.advisor-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.advisor-submit { margin: 6px 0 0; height: 54px; font-size: 17px; }
.advisor-submit:disabled { opacity: .85; cursor: progress; }
.advisor-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: advisor-spin .7s linear infinite; }
@keyframes advisor-spin { to { transform: rotate(360deg); } }
.advisor-form.is-loading .advisor-q { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* Nəticə */
.advisor-results__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.advisor-results__title { font-size: 24px; font-weight: 800; margin: 0; color: var(--text); }
.advisor-again { width: auto; height: 42px; margin: 0; padding: 0 18px; font-size: 14px; }
.advisor-results__intro { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 18px; }
.advisor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.advisor-pick { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.advisor-pick .card { flex: none; }
.advisor-pick__reason {
    margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--text); border: 1px solid var(--border);
}
.advisor-results__note { margin: 22px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }

@media (max-width: 900px) {
    .advisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .advisor { padding: 16px 0 40px; }
    .advisor-hero__title { font-size: 26px; }
    .advisor-form { padding: 20px 16px; border-radius: 16px; }
    .advisor-chip span { height: 38px; padding: 0 14px; font-size: 14px; }
    .advisor-pick__reason { font-size: 13.5px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .advisor-spinner { animation-duration: 2s; } }

/* Robot (istifadəçinin "AI ətir şüşəsi" şəkli) — başlığın üstündə və AI işləyərkən */
.advisor-hero__bot, .advisor-thinking__bot {
    width: 168px; height: 168px; margin: 0 auto 6px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent), 0 18px 40px rgba(43, 31, 74, .22);
    animation: advisor-bot-float 3.4s ease-in-out infinite;
}
[data-theme="dark"] .advisor-hero__bot, [data-theme="dark"] .advisor-thinking__bot {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 48px color-mix(in srgb, var(--accent) 55%, transparent);
}
.advisor-hero__bot img, .advisor-thinking__bot img { width: 86%; height: 86%; object-fit: contain; }
@keyframes advisor-bot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.advisor-thinking { text-align: center; padding: 40px 0 60px; }
.advisor-thinking[hidden] { display: none; }
.advisor-thinking__bot { width: 150px; height: 150px; animation: advisor-bot-think 1.6s ease-in-out infinite; }
@keyframes advisor-bot-think { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.advisor-thinking__text { margin: 22px 0 10px; font-size: 17px; font-weight: 600; color: var(--text); }
.advisor-thinking__dots { display: inline-flex; gap: 6px; }
.advisor-thinking__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: advisor-dot 1.2s ease-in-out infinite; }
[data-theme="dark"] .advisor-thinking__dots i { background: var(--text); }
.advisor-thinking__dots i:nth-child(2) { animation-delay: .15s; }
.advisor-thinking__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes advisor-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 760px) {
    .advisor-hero__bot { width: 132px; height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
    .advisor-hero__bot, .advisor-thinking__bot, .advisor-thinking__dots i { animation: none; }
}
.advisor.is-thinking .advisor-hero__bot { display: none; }

/* Robotun sözləri — nitq balonu (quyruğu yuxarıya, robota) */
.advisor-hero__title { font-size: 28px; }
.advisor-hero__speech {
    position: relative; max-width: 560px; margin: 16px auto 0; padding: 16px 22px;
    border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
    font-size: 16px; line-height: 1.6; color: var(--text);
    box-shadow: 0 8px 24px rgba(20, 12, 40, .08);
}
.advisor-hero__speech::before {
    content: ''; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
    background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
@media (max-width: 760px) {
    .advisor-hero__title { font-size: 23px; }
    .advisor-hero__speech { font-size: 15px; padding: 14px 16px; }
}

/* "AI" nişanı dairənin sağ aşağı kənarında — robotla birgə hərəkət edir */
.advisor-hero__bot { position: relative; }
.advisor-hero__bot .advisor-hero__badge {
    position: absolute; right: -6px; bottom: 12px; margin: 0;
    background: var(--accent); color: var(--on-accent);
    box-shadow: 0 6px 16px rgba(43, 31, 74, .3); border: 2px solid var(--bg);
}
[data-theme="dark"] .advisor-hero__bot .advisor-hero__badge { color: var(--on-accent); background: var(--accent); }
.advisor-hero__bot + .advisor-hero__title { margin-top: 18px; }
