/* ============================================================
   Kupon Kazanım — ürün kartı rozeti, ürün detay barı ve modal
   ============================================================ */

/* --- Ürün kartlarındaki küçük rozet ("Kupon Fırsatı") --- */
.coupon-chance-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #ff4988;
    line-height: 1.2;
    margin-bottom: 4px;
}

.coupon-chance-badge__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- Ürün detay sayfasındaki kazanım barı --- */
.coupon-earn-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff0f7;
    border: 1px solid #ffd1e7;
    margin-bottom: 12px;
}

.coupon-earn-bar__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #ff4988;
    min-width: 0;
}

.coupon-earn-bar__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.coupon-earn-bar__btn {
    flex-shrink: 0;
    padding: 6px 20px;
    border-radius: 9999px;
    border: 1px solid #ff4988;
    background: transparent;
    color: #ff4988;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}

.coupon-earn-bar__btn:hover:not(:disabled) {
    background: #ff4988;
    color: #fff;
}

.coupon-earn-bar__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* PC'de bar tam genişlik yerine yarı genişlikte dursun (mobilde tam genişlik kalır) */
@media (min-width: 1280px) {
    .coupon-earn-bar:not(.coupon-earn-bar--mobile) {
        width: 50%;
    }
}

.coupon-earn-bar.is-earned {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.coupon-earn-bar.is-earned .coupon-earn-bar__label {
    color: #16a34a;
}

/* Mobil/tablet: puanlamanın altında, satırın tamamını kaplamayan kompakt kutu.
   İçeriği kadar yer kaplasın diye inline-flex + width:auto kullanılır. */
.coupon-earn-bar--mobile {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    gap: 10px;
    padding: 6px 8px 6px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.coupon-earn-bar--mobile .coupon-earn-bar__label {
    font-size: 13px;
}

.coupon-earn-bar--mobile .coupon-earn-bar__btn {
    padding: 4px 14px;
    font-size: 12px;
}

/* Sabit alt bardaki kopya kompakt DEĞİL, satırın tamamını kaplar:
   konteynerin 10px/16px padding'i negatif margin ile iptal edilip
   kenardan kenara uzatılır (puanlama altındaki kompakt bardan farklı). */
.coupon-earn-sticky .coupon-earn-bar--mobile {
    display: flex;
    width: auto;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #ffd1e7;
    margin: -10px -16px 10px;
    padding: 8px 16px;
}

.coupon-earn-sticky .coupon-earn-bar--mobile.is-earned {
    border-bottom-color: #bbf7d0;
}

/* --- Kazanım modalı --- */
.coupon-earn-modal__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff159b, #e6137b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin: 0 auto 14px;
}

.coupon-earn-modal__title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}

.coupon-earn-modal__text {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
    line-height: 1.5;
}

.coupon-earn-modal__limit {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

/* --- Yorum modalı: kuponlu durumda rainbow çerçeve --- */
.review-modal-rainbow {
    position: relative;
    border-radius: 12px;
}

.review-modal-rainbow::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(115deg, #ff159b, #ff7a00, #ffd60a, #22c55e, #3b82f6, #a855f7, #ff159b);
    background-size: 400% 400%;
    animation: couponRainbowShift 3.5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 21, 155, 0.45));
    z-index: -1;
}

@keyframes couponRainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.review-coupon-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #fff0f7;
    border: 1px solid #ffd1e7;
    font-size: 14px;
    font-weight: 700;
    color: #ff159b;
    text-align: center;
    animation: couponHintBlink 1.2s ease-in-out infinite;
}

@keyframes couponHintBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları durdur */
@media (prefers-reduced-motion: reduce) {
    .review-modal-rainbow::before,
    .review-coupon-hint {
        animation: none;
    }
}
