/* ==========================================================================
   Tinpul HUD — Promosyonlar (Faz 4B): Günün Fırsatları, Kombo Paketler, Efsane Portal
   (şans çarkı, sürpriz kutu, kazananlar şeridi). Tokenlar: --tp-hud-* ; tp-eng-* bileşenleriyle birlikte kullanılır.
   ========================================================================== */

.tp-promo { --pr-cyan: rgb(var(--tp-hud-cyan)); --pr-amber: rgb(var(--tp-hud-amber)); --pr-green: rgb(var(--tp-hud-green)); --pr-red: rgb(var(--tp-hud-red)); --pr-violet: rgb(var(--tp-hud-violet)); }

.tp-promo-section { margin-bottom: 22px; }
.tp-promo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.tp-promo-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--tp-hud-text); display: flex; align-items: center; gap: 8px; }
.tp-promo-head h2 i { color: var(--pr-amber); }
.tp-promo-head p { margin: 2px 0 0; color: var(--tp-hud-muted); font-size: 13px; }

.tp-promo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tp-promo-card { position: relative; display: flex; flex-direction: column; border-radius: var(--tp-hud-r, 16px); overflow: hidden; background: var(--tp-hud-panel, rgba(15, 23, 42, .75)); border: 1px solid var(--tp-hud-line); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tp-promo-card:hover { transform: translateY(-3px); border-color: rgba(var(--tp-hud-cyan), .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tp-promo-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tp-hud-field); }
.tp-promo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tp-promo-card__badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #111; background: linear-gradient(135deg, #fbbf24, #f97316); box-shadow: 0 4px 14px rgba(249, 115, 22, .45); }
.tp-promo-card__type { position: absolute; top: 10px; right: 10px; }
.tp-promo-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.tp-promo-card__title { color: var(--tp-hud-text); font-weight: 700; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.tp-promo-card__title:hover { color: var(--pr-cyan); }
.tp-promo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tp-promo-price b { font-size: 1.25rem; font-weight: 800; color: var(--pr-green); font-variant-numeric: tabular-nums; }
.tp-promo-price s { color: var(--tp-hud-muted); font-size: 13px; }
.tp-promo-card__meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--tp-hud-muted); }
.tp-promo-card__foot { margin-top: auto; display: flex; gap: 8px; }
.tp-promo-card__foot .btn { flex: 1; }
.tp-promo-card.is-soldout { opacity: .6; }
.tp-promo-card.is-soldout .tp-promo-card__media::after { content: 'TÜKENDİ'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; letter-spacing: 2px; color: #fff; background: rgba(2, 6, 23, .55); }

.tp-promo-sale { padding: 18px; margin-bottom: 18px; }
.tp-promo-sale__top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tp-promo-sale__title { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--tp-hud-text); }
.tp-promo-sale__desc { margin: 4px 0 0; color: var(--tp-hud-muted); font-size: 13px; }

.tp-promo-upcoming { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tp-promo-upcoming__item { padding: 14px; border-radius: var(--tp-hud-r-inner, 12px); background: var(--tp-hud-field); border: 1px dashed rgba(var(--tp-hud-amber), .4); display: grid; gap: 10px; }
.tp-promo-upcoming__item h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--tp-hud-text); }

/* Kombo */
.tp-combo-parts { display: grid; gap: 8px; }
.tp-combo-part { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--tp-hud-r-inner, 12px); background: var(--tp-hud-field); border: 1px solid var(--tp-hud-line); }
.tp-combo-part img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.tp-combo-part__t { flex: 1; color: var(--tp-hud-text); font-weight: 600; font-size: 14px; }
.tp-combo-part__q { font-weight: 800; color: var(--pr-cyan); }
.tp-combo-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; }
.tp-combo-sum dt { color: var(--tp-hud-muted); font-weight: 500; }
.tp-combo-sum dd { margin: 0; text-align: right; color: var(--tp-hud-text); font-variant-numeric: tabular-nums; }
.tp-combo-sum .is-total { font-size: 1.3rem; font-weight: 800; color: var(--pr-green); }

/* Efsane Portal */
.tp-portal-hub { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tp-portal-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 18px; border-radius: var(--tp-hud-r, 16px); border: 1px solid var(--tp-hud-line); text-decoration: none; color: #fff; background: radial-gradient(120% 120% at 100% 0%, rgba(var(--tp-hud-violet), .45), transparent 60%), linear-gradient(160deg, #0f172a, #020617); background-size: cover; background-position: center; transition: transform .2s ease, box-shadow .2s ease; }
.tp-portal-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, .9)); }
.tp-portal-tile > * { position: relative; }
.tp-portal-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, .4); color: #fff; }
.tp-portal-tile small { color: var(--pr-amber); font-weight: 800; letter-spacing: 1px; font-size: 11px; }
.tp-portal-tile h3 { margin: 4px 0; font-size: 1.35rem; font-weight: 900; }
.tp-portal-tile p { margin: 0 0 10px; opacity: .8; font-size: 13px; }
.tp-portal-tile.is-off { filter: grayscale(.7); }

.tp-ticker { position: relative; overflow: hidden; border-radius: 999px; background: var(--tp-hud-field); border: 1px solid var(--tp-hud-line); padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tp-ticker__track { display: inline-flex; gap: 28px; white-space: nowrap; padding-left: 100%; animation: tp-ticker 40s linear infinite; font-size: 13px; color: var(--tp-hud-text-2); }
.tp-ticker:hover .tp-ticker__track { animation-play-state: paused; }
.tp-ticker__track b { color: var(--pr-amber); }
.tp-ticker__track i { color: var(--pr-green); }
@keyframes tp-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tp-ticker__track { animation: none; padding-left: 12px; } }

.tp-game { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 991.98px) { .tp-game { grid-template-columns: minmax(0, 1fr); } }
.tp-game-stage { display: grid; place-items: center; gap: 18px; padding: 22px; }

.tp-wheel { position: relative; width: min(460px, 86vw); aspect-ratio: 1; }
.tp-wheel canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 6px rgba(var(--tp-hud-cyan), .18), 0 0 40px rgba(var(--tp-hud-cyan), .25), inset 0 0 30px rgba(0, 0, 0, .6); transition: transform 5.2s cubic-bezier(.12, .7, .08, 1); will-change: transform; }
.tp-wheel__pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fbbf24; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); z-index: 2; }
.tp-wheel__hub { position: absolute; inset: 50% auto auto 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #1e293b, #020617); border: 3px solid rgba(var(--tp-hud-cyan), .55); color: #fbbf24; font-size: 28px; box-shadow: 0 0 22px rgba(var(--tp-hud-cyan), .45); }

.tp-boxes { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; perspective: 900px; padding: 30px 0 10px; }
.tp-box { position: relative; width: 132px; height: 132px; border: 0; background: none; padding: 0; cursor: pointer; transform-style: preserve-3d; transition: transform .25s ease; }
.tp-box:hover:not([disabled]) { transform: translateY(-6px) rotateX(8deg); }
.tp-box[disabled] { cursor: default; }
.tp-box__body { position: absolute; inset: 34% 0 0 0; border-radius: 12px; background: linear-gradient(145deg, #7c3aed, #4c1d95); border: 2px solid rgba(255, 255, 255, .15); box-shadow: 0 14px 30px rgba(76, 29, 149, .5), inset 0 -10px 20px rgba(0, 0, 0, .3); }
.tp-box__body::after { content: ''; position: absolute; inset: 0 44%; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.tp-box__lid { position: absolute; inset: 18% -6% auto -6%; height: 22%; border-radius: 10px; background: linear-gradient(145deg, #8b5cf6, #5b21b6); border: 2px solid rgba(255, 255, 255, .2); transform-origin: 0% 100%; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.tp-box__lid::after { content: ''; position: absolute; inset: 0 42%; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.tp-box__glow { position: absolute; left: 50%; top: 34%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); transition: box-shadow .6s ease; }
.tp-box.is-shaking { animation: tp-shake .5s ease-in-out infinite; }
.tp-box.is-open .tp-box__lid { transform: rotateZ(-38deg) translate(-8px, -26px); }
.tp-box.is-open .tp-box__glow { box-shadow: 0 0 60px 34px rgba(251, 191, 36, .55); }
.tp-box.is-dim { opacity: .35; filter: grayscale(.6); }
.tp-box__prize { position: absolute; left: 50%; top: 0; transform: translate(-50%, 20px) scale(.4); opacity: 0; min-width: 150px; text-align: center; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); transition: all .6s ease .25s; z-index: 3; }
.tp-box.is-open .tp-box__prize { transform: translate(-50%, -34px) scale(1); opacity: 1; }
@keyframes tp-shake { 0%, 100% { transform: rotateZ(0); } 25% { transform: rotateZ(-6deg); } 75% { transform: rotateZ(6deg); } }

.tp-game-pay { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tp-game-pay .btn { min-width: 150px; }
.tp-game-result { min-height: 30px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.tp-game-result.is-win { color: var(--pr-amber); text-shadow: 0 0 18px rgba(var(--tp-hud-amber), .55); }
.tp-game-result.is-lose { color: var(--tp-hud-muted); }

.tp-odds { width: 100%; font-size: 13px; }
.tp-odds td { padding: 6px 4px; border-bottom: 1px solid var(--tp-hud-line); color: var(--tp-hud-text-2); }
.tp-odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tp-hud-text); }
.tp-odds .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.tp-odds tr.is-out td { opacity: .5; text-decoration: line-through; }

.tp-promo-legal { font-size: 12px; color: var(--tp-hud-muted); border-left: 3px solid rgba(var(--tp-hud-amber), .6); padding: 6px 10px; margin: 0; }
