/* ============================================
   ÇOCUK DESTEK / YETİM SPONSORLUK — Canlı v2
   ============================================ */

.yk-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f0f8ff 0%, #fff 40%, #f5faff 100%);
    overflow: hidden;
    position: relative;
}
.yk-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(84,169,238,.06) 0%, transparent 70%);
    pointer-events: none;
}

.yk-header {
    text-align: center;
    margin-bottom: 10px;
}
.yk-greeting {
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
    margin: 0 0 4px;
}
.yk-greeting strong { font-weight: 800; }
.yk-greeting .yk-name { color: var(--primary); }
.yk-desc {
    color: var(--gray-500);
    font-size: 1rem;
    max-width: 540px;
    margin: 12px auto 0;
    line-height: 1.6;
}

/* ===== STAGE ===== */
.yk-stage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MERKEZ ÇOCUK ===== */
.yk-child-wrap {
    position: relative;
    width: 240px;
    height: 420px;
    z-index: 2;
    animation: ykFloat 4s ease-in-out infinite;
}

/* Nefes alma + yüzme animasyonu */
@keyframes ykFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Zemin gölgesi — karakter yükselince küçülür */
.yk-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 14px;
    background: radial-gradient(ellipse, rgba(0,0,0,.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: ykShadowPulse 4s ease-in-out infinite;
    z-index: 1;
}
@keyframes ykShadowPulse {
    0%, 100% { width: 100px; opacity: .3; }
    50% { width: 80px; opacity: .15; }
}

.yk-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: opacity .4s ease, transform .3s ease;
}
.yk-child-wrap .yk-layer:first-of-type {
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.10));
}

/* ===== KONUŞMA BALONU ===== */
.yk-speech {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 18px;
    padding: 8px 16px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(84,169,238,.18);
    animation: ykSpeechBob 3s ease-in-out infinite;
    opacity: 1;
    transition: all .4s ease;
}
.yk-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary);
}
.yk-speech-text {
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
@keyframes ykSpeechBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

/* Mutlu konuşma balonu */
.yk-speech.happy {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #fff);
}
.yk-speech.happy::after {
    border-top-color: #22c55e;
}

/* ===== ÜRÜN SLOTLARI ===== */
.yk-item-slots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 15px;
}

.yk-slot-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    pointer-events: auto;
    padding: 10px 0;
    align-items: center;
}

/* ===== ÜRÜN KARTI ===== */
.yk-slot {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    width: 155px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(84,169,238,.1);
    border-radius: 16px;
    padding: 12px 8px 10px;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.yk-slot:hover {
    border-color: rgba(84,169,238,.25);
    box-shadow: 0 4px 20px rgba(84,169,238,.12);
    transform: translateY(-2px);
}
.yk-slot.active {
    border-color: var(--primary);
    background: rgba(255,255,255,.95);
    box-shadow: 0 6px 28px rgba(84,169,238,.20);
    transform: translateY(-3px);
}

/* Ürün ikonu */
.yk-slot-img {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}
.yk-slot-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .75;
    transition: all .35s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.06));
}
.yk-slot.active .yk-slot-img img {
    opacity: 1;
    transform: scale(1.12);
    filter: drop-shadow(0 4px 14px rgba(84,169,238,.22));
}

/* Ürün adı + fiyat */
.yk-slot-name {
    font-weight: 700;
    font-size: .82rem;
    color: var(--dark);
    line-height: 1.2;
}
.yk-slot-price {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* +/- sayaç */
.yk-counter {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 2px;
}
.yk-counter-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: #fff;
    color: var(--dark);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    line-height: 1;
}
.yk-counter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff8ff;
}
.yk-counter-btn:active { transform: scale(.88); }
.yk-counter-val {
    width: 32px;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
}
.yk-slot.active .yk-counter-btn {
    border-color: var(--primary);
}

/* Aktif slot pulse efekti */
@keyframes ykSlotPulse {
    0% { box-shadow: 0 0 0 0 rgba(84,169,238,.3); }
    70% { box-shadow: 0 0 0 8px rgba(84,169,238,0); }
    100% { box-shadow: 0 0 0 0 rgba(84,169,238,0); }
}
.yk-slot.yk-just-added {
    animation: ykSlotPulse .6s ease;
}

/* ===== TOPLAM BAR ===== */
.yk-total-bar {
    text-align: center;
    margin-top: 10px;
}
.yk-total-text {
    font-size: 1.1rem;
    color: var(--dark);
}
.yk-total-text strong {
    font-size: 1.3rem;
    color: var(--primary);
}
.yk-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 14px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    opacity: .4;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(84,169,238,.2);
}
.yk-donate-btn.enabled {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 6px 28px rgba(84,169,238,.35);
    animation: ykBtnGlow 2s ease-in-out infinite alternate;
}
@keyframes ykBtnGlow {
    0% { box-shadow: 0 6px 28px rgba(84,169,238,.3); }
    100% { box-shadow: 0 8px 36px rgba(84,169,238,.5); }
}
.yk-donate-btn.enabled:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px rgba(84,169,238,.4);
}

/* Duygu durumu text */
.yk-mood {
    text-align: center;
    font-size: .85rem;
    color: var(--gray-400);
    min-height: 24px;
    margin-top: 45px;
    transition: all .3s ease;
}
.yk-mood.happy {
    color: var(--primary);
    font-weight: 600;
}

/* ===== ANIMASYONLAR ===== */
@keyframes ykTearDrop {
    0% { transform: translateY(0); opacity: .6; }
    40% { opacity: .7; }
    100% { transform: translateY(18px); opacity: 0; }
}
.yk-tear { animation: ykTearDrop 2.5s ease-in infinite; }
.yk-tear-r { animation: ykTearDrop 2.5s ease-in infinite 1s; }

/* Zıplama — ürün eklenince */
@keyframes ykBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-18px); }
    50% { transform: translateY(-10px); }
    70% { transform: translateY(-14px); }
}
.yk-child-wrap.yk-happy {
    animation: ykBounce .7s ease, ykFloat 4s ease-in-out infinite .7s;
}

/* Kalp partikülleri — ürün eklenince */
@keyframes ykHeartFloat {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-60px) scale(.5); opacity: 0; }
}
.yk-heart-particle {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
    z-index: 20;
    animation: ykHeartFloat 1.2s ease-out forwards;
}

/* Ülke butonları */
.yk-country-btn {
    background: var(--gray-100);
    border: 2px solid transparent;
    color: var(--dark);
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s ease;
}
.yk-country-btn:hover {
    background: #eff8ff;
    color: var(--primary);
}
.yk-country-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ====== RESPONSIVE — HER ZAMAN SOL/SAĞ ====== */
@media (max-width: 992px) {
    .yk-stage { max-width: 720px; min-height: 440px; }
    .yk-slot { width: 140px; padding: 10px 6px 8px; }
    .yk-slot-img { width: 46px; height: 46px; }
}

@media (max-width: 767px) {
    .yk-section { padding: 50px 0 40px; }
    .yk-greeting { font-size: 1.6rem; }
    .yk-desc { font-size: .88rem; }
    .yk-stage {
        min-height: 380px;
        max-width: 100%;
    }
    .yk-child-wrap {
        width: 180px;
        height: 300px;
    }
    .yk-shadow { width: 70px; height: 10px; }
    .yk-speech { padding: 6px 12px; }
    .yk-speech-text { font-size: .72rem; }
    .yk-slot {
        width: 115px;
        padding: 8px 4px 6px;
        border-radius: 12px;
        gap: 3px;
    }
    .yk-slot-col { gap: 10px; }
    .yk-slot-img { width: 36px; height: 36px; }
    .yk-slot-name { font-size: .72rem; }
    .yk-slot-price { font-size: .65rem; padding: 2px 7px; }
    .yk-counter-btn { width: 26px; height: 26px; font-size: .78rem; }
    .yk-counter-val { width: 26px; font-size: .82rem; }
}

@media (max-width: 420px) {
    .yk-child-wrap { width: 150px; height: 240px; }
    .yk-shadow { width: 55px; height: 8px; }
    .yk-slot { width: 95px; padding: 6px 3px 5px; }
    .yk-slot-img { width: 30px; height: 30px; }
    .yk-slot-name { font-size: .66rem; }
    .yk-slot-price { font-size: .6rem; }
    .yk-counter-btn { width: 24px; height: 24px; font-size: .72rem; }
    .yk-counter-val { width: 22px; font-size: .75rem; }
    .yk-speech { padding: 5px 10px; top: -12px; }
    .yk-speech-text { font-size: .66rem; }
}
