/* ================================================================
   AI Ürün Değerlendirmesi — E-Ticaret Native Tasarım
   Doğal, yerleşik görünüm — AI yaptığı belli olmamalı
   ================================================================ */

.aia-wrap { margin: 0; padding: 0; font-family: inherit; width: 100%; }
.aia-wrap * { box-sizing: border-box; }

/* ── TRIGGER ── */
.aia-trigger {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: border-color .2s ease;
}
.aia-trigger:hover { border-color: #ccc; }

.aia-trigger-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.aia-icon-ai {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: #FFF7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C2410C;
    flex-shrink: 0;
}

.aia-trigger-text { flex: 1; min-width: 0; }
.aia-trigger-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2C2C2C;
    line-height: 1.3;
}
.aia-trigger-sub {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 1px;
    line-height: 1.3;
}

.aia-trigger-chevron {
    color: #ccc;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.aia-trigger:hover .aia-trigger-chevron {
    transform: translateX(2px);
    color: #888;
}

/* ── LOADING ── */
.aia-loading .aia-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.aia-ld-inner { padding: 24px 20px; }

.aia-ld-bar {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}
.aia-ld-fill {
    height: 100%;
    width: 0;
    background: #C2410C;
    border-radius: 2px;
    animation: aiaFill 3.5s ease forwards;
}
@keyframes aiaFill { 0%{width:0} 30%{width:35%} 60%{width:65%} 85%{width:85%} 100%{width:100%} }

.aia-ld-steps { display: flex; flex-direction: column; gap: 12px; }
.aia-ld-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #bbb;
    transition: color .3s ease;
}
.aia-ld-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    flex-shrink: 0;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aia-ld-step.done { color: #2C2C2C; }
.aia-ld-step.done .aia-ld-dot {
    border-color: #16a34a;
    background: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ── RESULT CARD ── */
.aia-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Başlık + Skor ── */
.aia-r-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.aia-r-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #FFF7ED;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aia-r-head-text { flex: 1; }
.aia-r-head-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
    line-height: 1.3;
}
.aia-r-head-text span {
    font-size: 11px;
    color: #888;
}

/* ── Dairesel Skor ── */
.aia-r-circle {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aia-r-circle svg { position: absolute; top: 0; left: 0; }
.aia-r-circle-text {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1;
}
.aia-r-circle-text strong {
    font-size: 18px;
    font-weight: 800;
    color: #2C2C2C;
    display: block;
}
.aia-r-circle-text small {
    font-size: 10px;
    font-weight: 500;
    color: #aaa;
}
.aia-r-circle-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .2px;
    text-transform: uppercase;
}

/* ── Özet ── */
.aia-r-summary {
    padding: 16px 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}
.aia-r-summary.clamp {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}
.aia-r-summary.clamp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(transparent, #fff);
}

.aia-r-more {
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #C2410C;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.aia-r-more:hover { background: #fafafa; }

/* ── Artı Etiketler ── */
.aia-r-tags {
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.aia-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.aia-tag-g { background: #f0fdf4; color: #15803d; }
.aia-tag-y { background: #f5f5f5; color: #888; }
.aia-tag svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ── Metrikler ── */
.aia-r-metrics {
    padding: 4px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.aia-r-m {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.aia-r-m:last-child { border-bottom: none; }
.aia-r-m-name {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    min-width: 130px;
    flex-shrink: 0;
}
.aia-r-m-bar {
    flex: 1;
    height: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 12px;
}
.aia-r-m-fill {
    height: 100%;
    border-radius: 3px;
    background: #C2410C;
}
.aia-r-m-label {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    background: #FFF7ED;
    color: #C2410C;
    min-width: 40px;
    text-align: center;
}

/* ── Güven ── */
.aia-r-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    color: #15803d;
    border-bottom: 1px solid #f0f0f0;
    background: #fafff9;
}
.aia-r-trust svg { flex-shrink: 0; color: #16a34a; }

/* ── Karar ── */
.aia-r-verdict {
    padding: 14px 20px;
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}
.aia-r-verdict svg { vertical-align: -2px; margin-right: 4px; }

/* ── Footer ── */
.aia-r-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.aia-r-foot-left { font-size: 11px; color: #aaa; }

.aia-vote-row { display: flex; align-items: center; gap: 6px; }
.aia-vote-label { font-size: 11px; color: #aaa; margin-right: 4px; }

.aia-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    color: #888;
    transition: border-color .15s;
    font-family: inherit;
}
.aia-vote-btn:hover { border-color: #aaa; color: #555; }
.aia-vote-btn.voted {
    background: #2C2C2C;
    border-color: #2C2C2C;
    color: #fff;
    pointer-events: none;
}
.aia-vote-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Eski skor (gizli) */
.aia-r-score { display: none; }

/* ── Mobil ── */
@media (max-width: 480px) {
    .aia-trigger-inner { gap: 10px; padding: 10px 14px; }
    .aia-r-head { padding: 14px 16px; gap: 10px; }
    .aia-r-circle { width: 54px; height: 54px; }
    .aia-r-circle-text strong { font-size: 16px; }
    .aia-r-m-name { min-width: 100px; font-size: 11px; }
    .aia-r-tags { padding: 10px 14px; }
    .aia-r-summary { padding: 14px 16px; }
}
