/* Eklenti tanıtım kartı — inc/popup.php, assets/popup/popup.js. Sol altta (sağ altta WhatsApp ve yukarı düğmesi var). */
.skt-offer { position: fixed; z-index: 140; left: 20px; bottom: 20px; width: 320px; max-width: calc(100vw - 32px); padding: 14px 14px 12px; border-radius: 20px; background: #fff; box-shadow: 0 28px 60px -20px rgba(16, 24, 40, .45), 0 0 0 1px rgba(16, 24, 40, .06); font-size: 14px; line-height: 1.45; color: var(--skt-ink, #15181d); opacity: 0; transform: translateY(30px) scale(.94) rotate(-1.5deg); transform-origin: 20% 100%; transition: opacity .3s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.skt-offer[hidden] { display: none; }
.skt-offer.is-on { opacity: 1; transform: none; pointer-events: auto; }
.skt-offer *, .skt-offer *::before, .skt-offer *::after { box-sizing: border-box; }

.skt-offer__x { position: absolute; z-index: 3; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #15181d; font: 400 22px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.skt-offer__x:hover { background: #fff; transform: rotate(90deg); transition: transform .2s; }

.skt-offer__k { margin: 0 34px 10px 2px; font: 800 13.5px/1.3 var(--skt-head, sans-serif); color: #077a00; }
.skt-offer__k span { display: inline-block; animation: skt-offer-gift 1.6s ease-in-out infinite; }

.skt-offer__a { display: block; color: inherit; text-decoration: none; }
.skt-offer__img { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e8f6e7, #eef1f5); }
.skt-offer__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.skt-offer__a:hover .skt-offer__img img { transform: scale(1.05); }
.skt-offer__badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: #ffcc00; color: #15181d; font: 800 11px/1.2 var(--skt-head, sans-serif); font-style: normal; letter-spacing: .03em; text-transform: uppercase; transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); animation: skt-offer-wobble 2.4s ease-in-out infinite; }
.skt-offer__n { display: block; margin: 10px 0 2px; font: 800 17px/1.25 var(--skt-head, sans-serif); color: #15181d; }
.skt-offer__t { display: block; color: var(--skt-muted, #677080); }
.skt-offer__s { display: block; margin-top: 6px; font-weight: 600; color: #15181d; }
.skt-offer__c { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; height: 42px; border-radius: 12px; background: var(--skt-brand, #0a9e01); color: #fff; font: 800 14.5px var(--skt-head, sans-serif); transition: background .15s, transform .15s; }
.skt-offer__c span { transition: transform .2s; }
.skt-offer__a:hover .skt-offer__c { background: #077a00; }
.skt-offer__a:hover .skt-offer__c span { transform: translateX(4px); }

.skt-offer__f { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 0; font-size: 12.5px; }
.skt-offer__f a { color: #077a00; font-weight: 600; text-decoration: none; }
.skt-offer__f a:hover { text-decoration: underline; }
.skt-offer__off { border: 0; background: none; padding: 4px 0; color: #9aa3af; font-size: 12.5px; cursor: pointer; }
.skt-offer__off:hover { color: #677080; text-decoration: underline; }

/* Kalan süre çubuğu: üstüne gelince durur */
.skt-offer__bar { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 3px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.skt-offer__bar i { display: block; height: 100%; background: var(--skt-brand, #0a9e01); transform-origin: left; }
.skt-offer.is-on .skt-offer__bar i { animation: skt-offer-bar var(--skt-offer-t, 14s) linear forwards; }
.skt-offer.is-hold .skt-offer__bar i { animation-play-state: paused; }

/* Açılışta konfeti */
.skt-offer__conf { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.skt-offer__conf i { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0; }
.skt-offer.is-on .skt-offer__conf i { animation: skt-offer-conf .9s ease-out .15s forwards; }
.skt-offer__conf i:nth-child(1) { background: #ffcc00; --x: -120px; --y: -110px; }
.skt-offer__conf i:nth-child(2) { background: #0a9e01; --x: 110px; --y: -120px; border-radius: 50%; }
.skt-offer__conf i:nth-child(3) { background: #ff5a5f; --x: -150px; --y: -20px; }
.skt-offer__conf i:nth-child(4) { background: #3b82f6; --x: 140px; --y: -40px; border-radius: 50%; }
.skt-offer__conf i:nth-child(5) { background: #a855f7; --x: -60px; --y: -150px; }
.skt-offer__conf i:nth-child(6) { background: #ff9f1c; --x: 60px; --y: -160px; }

@keyframes skt-offer-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes skt-offer-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(320deg); } }
@keyframes skt-offer-gift { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-14deg) scale(1.15); } 40% { transform: rotate(12deg) scale(1.15); } 60% { transform: rotate(0) scale(1); } }
@keyframes skt-offer-wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg) scale(1.06); } }

/* Telefon ve alçak ekran: yatay küçük kart, WhatsApp düğmesinin üstünde */
@media (max-width: 600px), (max-height: 640px) {
	.skt-offer { left: 12px; right: 12px; bottom: 84px; width: auto; max-width: none; padding: 12px 12px 10px; }
	.skt-offer__k { margin-bottom: 8px; font-size: 13px; }
	.skt-offer__a { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 12px; }
	.skt-offer__img { grid-row: 1 / 5; aspect-ratio: auto; height: 100%; min-height: 104px; border-radius: 12px; }
	.skt-offer__badge { left: 6px; top: 6px; font-size: 9.5px; padding: 3px 7px; }
	.skt-offer__n { margin: 0 0 2px; font-size: 15.5px; }
	.skt-offer__t { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.skt-offer__s { display: none; }
	.skt-offer__c { margin-top: 8px; height: 36px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.skt-offer { transition: opacity .2s; transform: none; }
	.skt-offer__k span, .skt-offer__badge, .skt-offer.is-on .skt-offer__conf i { animation: none; }
}
@media print { .skt-offer { display: none !important; } }
