/* Tarif detay — birleşik puan kartı (tarihlerin altında) */

.tarif-rating-card {
    margin-bottom: 4px;
}

.tarif-rating-card__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #0000000d;
    box-shadow: 0 8px 24px #00000008;
    overflow: hidden;
}

.tarif-rating-card__summary,
.tarif-rating-card__vote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    min-width: 0;
}

.tarif-rating-card__summary {
    flex: 1 1 auto;
}

.tarif-rating-card__vote {
    flex: 1 1 auto;
}

.tarif-rating-card__divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #00000014 18%,
        #00000014 82%,
        transparent 100%
    );
    flex-shrink: 0;
}

.tarif-rating-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #00000080;
    line-height: 1.2;
}

.tarif-rating-card__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.tarif-rating-card__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tarif-rating-card__star {
    display: block;
    font-size: 22px;
    line-height: 1;
    color: #f5a623;
}

.tarif-rating-card__star--empty {
    color: #e5e7eb;
}

.tarif-rating-card__star--half {
    position: relative;
    color: #e5e7eb;
}

.tarif-rating-card__star--half::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
}

.tarif-rating-card__value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #000000cc;
    letter-spacing: -0.02em;
}

.tarif-rating-card__count {
    font-size: 13px;
    color: #00000080;
    line-height: 1.3;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f5f5;
}

.tarif-rating-card__count.is-hidden {
    display: none;
}

.tarif-rating-card__count.is-bumped {
    animation: tarif-count-bump 0.4s ease;
}

@keyframes tarif-count-bump {
    0% { transform: scale(1); background: #f5f5f5; }
    45% { transform: scale(1.05); background: #e8f8ee; color: #16b254; }
    100% { transform: scale(1); background: #f5f5f5; }
}

.tarif-rating-card__vote-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    min-height: 36px;
    align-items: center;
}

.tarif-rating-card__vote-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f5f5f5;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
    user-select: none;
}

.tarif-rating-card__vote-star span {
    pointer-events: none;
}

.tarif-rating-card__vote:hover .tarif-rating-card__vote-star {
    color: #d1d5db;
    background: #f5f5f5;
}

.tarif-rating-card__vote .tarif-rating-card__vote-star:hover,
.tarif-rating-card__vote .tarif-rating-card__vote-star:hover ~ .tarif-rating-card__vote-star {
    color: #f5a623;
    background: #fff8eb;
    transform: translateY(-1px);
}

.tarif-rating-card__vote.is-voted .tarif-rating-card__vote-stars,
.tarif-rating-card__vote.is-disabled .tarif-rating-card__vote-stars {
    pointer-events: none;
}

.tarif-rating-card__vote.is-voted .tarif-rating-card__vote-star,
.tarif-rating-card__vote.is-disabled .tarif-rating-card__vote-star {
    cursor: default;
    color: #d1d5db;
    background: #f5f5f5;
    transform: none;
}

.tarif-rating-card__vote.is-voted .tarif-rating-card__vote-star.is-selected,
.tarif-rating-card__vote.is-disabled .tarif-rating-card__vote-star.is-selected {
    color: #f5a623;
    background: #fff8eb;
}

.tarif-rating-card__vote.is-voted .tarif-rating-card__label,
.tarif-rating-card__vote.is-disabled .tarif-rating-card__label {
    color: #16b254;
}

.tarif-rating-card__note {
    margin: 0;
    min-height: 18px;
    font-size: 12px;
    color: #00000080;
    line-height: 1.4;
}

.tarif-rating-card__note.is-success {
    color: #16b254;
    font-weight: 500;
}

.tarif-rating-card__note.is-error {
    color: #dc2626;
}

.tarif-rating-card__vote.is-loading .tarif-rating-card__vote-stars {
    opacity: 0.45;
    pointer-events: none;
}

/* Yalnızca oylama alanı (panel puanı yok) */
.tarif-rating-card__inner:not(:has(.tarif-rating-card__summary)) .tarif-rating-card__vote {
    width: 100%;
}

@media (max-width: 768px) {
    .tarif-rating-card__inner {
        flex-direction: column;
    }

    .tarif-rating-card__divider {
        width: auto;
        height: 1px;
        background: #0000000d;
    }

    .tarif-rating-card__summary,
    .tarif-rating-card__vote {
        padding: 16px 18px;
    }

    .tarif-rating-card__value {
        font-size: 24px;
    }

    .tarif-rating-card__vote-star {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tarif-rating-card__vote-stars {
        gap: 4px;
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
    }

    .tarif-rating-card__vote-star {
        flex: 1 1 0;
        max-width: 44px;
    }
}

/* Tarifler listesi — kart üstü kompakt puan */
.tarif-card-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 10px;
}

.tarif-card-rating__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.tarif-card-rating__star {
    font-size: 16px;
    line-height: 1;
    color: #f5a623;
}

.tarif-card-rating__star--empty {
    color: #e5e7eb;
}

.tarif-card-rating__star--half {
    position: relative;
    color: #e5e7eb;
}

.tarif-card-rating__star--half::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
}

.tarif-card-rating__value {
    font-size: 15px;
    font-weight: 700;
    color: #000000cc;
    line-height: 1;
}

.tarif-card-rating__count {
    font-size: 13px;
    color: #00000080;
    line-height: 1;
}
