/* HEDİYE ÇARKI (2026-11-19) — include/hediyeCark.php · assets/js/hediye-cark.js */

/* Sağ alt buton */
.hc-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1040; display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: #12141a; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.55), 0 0 0 3px rgba(255,106,43,.35); cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; }
.hc-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(0,0,0,.6), 0 0 0 3px rgba(255,106,43,.6); }
.hc-fab-cark { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; position: relative; border: 3px solid #fff; background: conic-gradient(#ff6a2b 0 60deg, #1b3566 60deg 120deg, #ffb020 120deg 180deg, #e2470c 180deg 240deg, #2f5fb3 240deg 300deg, #ff8f4d 300deg 360deg); animation: hcFabDon 6s linear infinite; }
.hc-fab-cark::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #ff6a2b; }
.hc-fab-yazi { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.hc-fab-yazi b { font-size: 13.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #ffb020; }
.hc-fab-yazi small { font-size: 12px; font-weight: 600; color: #e5e7eb; }
@keyframes hcFabDon { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hc-fab-cark { animation: none; } }

/* Modal */
html.hc-acik { overflow: hidden; }
.hc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.hc-modal[hidden] { display: none; }
.hc-modal.hc-gor { opacity: 1; }
.hc-perde { position: absolute; inset: 0; background: rgba(10,14,22,.62); backdrop-filter: blur(3px); }
.hc-kutu { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 26px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 2px solid #ffb020; transform: translateY(14px) scale(.98); transition: transform .25s; }
.hc-modal.hc-gor .hc-kutu { transform: none; }
.hc-kapat { position: absolute; top: 14px; right: 16px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 24px; line-height: 1; cursor: pointer; }
.hc-kapat:hover { background: #111827; color: #fff; }

.hc-sol { background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f3f7 70%); display: flex; align-items: center; justify-content: center; padding: 34px 24px; }
.hc-cark-alan { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; }
.hc-cark-cerceve { position: absolute; inset: 0; border-radius: 50%; padding: 12px; background: linear-gradient(145deg, #ffd27a, #f59e0b 45%, #e2470c); box-shadow: 0 22px 40px -16px rgba(226,71,12,.55), inset 0 2px 0 rgba(255,255,255,.5); }
.hc-cark { width: 100%; height: 100%; display: block; overflow: visible; border-radius: 50%; }
.hc-dilimler { transform-box: view-box; transform-origin: 200px 200px; will-change: transform; }
.hc-yazi { fill: #fff; font: 800 15px/1 "Quicksand", "Nunito", system-ui, sans-serif; letter-spacing: .4px; paint-order: stroke; stroke: rgba(0,0,0,.18); stroke-width: 2px; }
.hc-amp { fill: #fff7e0; }
.hc-amp2 { fill: #fff; animation: hcAmp 1.2s ease-in-out infinite; }
@keyframes hcAmp { 50% { fill: #ffb020; } }
.hc-ok { position: absolute; top: -10px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 28px solid #12141a; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.hc-cevir { position: absolute; left: 50%; top: 50%; z-index: 2; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #ffb020; background: radial-gradient(circle at 35% 30%, #fff, #f3f4f6); color: #12141a; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1; letter-spacing: .5px; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: transform .15s; }
.hc-cevir:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.06); }
.hc-cevir:disabled { cursor: default; color: #9ca3af; }

.hc-sag { display: flex; align-items: center; padding: 40px 34px 34px 28px; }
.hc-panel { width: 100%; }
.hc-yukleniyor { color: #9ca3af; font-weight: 600; }
.hc-h { font-size: 24px; font-weight: 800; color: #111827; letter-spacing: -.4px; margin: 0 0 10px; }
.hc-p { color: #4b5563; font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.hc-kurallar { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-kurallar li { position: relative; padding-left: 26px; font-size: 14px; color: #374151; font-weight: 600; }
.hc-kurallar li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.hc-ana-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ff6a2b, #e2470c); color: #fff !important; font-size: 15px; font-weight: 800; text-decoration: none !important; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(226,71,12,.6); }
.hc-ana-btn:hover { filter: brightness(1.05); }

.hc-kupon { border: 2px dashed #ffb020; border-radius: 18px; background: #fffbf2; padding: 18px; text-align: center; margin-bottom: 14px; }
.hc-etiket { display: block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #16a34a; margin-bottom: 8px; }
.hc-kod { background: #fff; border: 1px solid #fde4b0; border-radius: 12px; padding: 12px; font: 800 24px/1.1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 2px; color: #12141a; margin-bottom: 10px; user-select: all; }
.hc-metin { font-size: 14px; color: #374151; margin: 0 0 6px; }
.hc-son { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.hc-kullanildi { color: #b91c1c; font-weight: 700; }
.hc-kopyala { border: 0; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; font-size: 13.5px; padding: 10px 22px; cursor: pointer; }
.hc-kopyala:hover { background: #15803d; }
.hc-kopyala.hc-ok2 { background: #111827; }
.hc-sayac { background: #f3f4f6; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #4b5563; text-align: center; }
.hc-sayac b { color: #e2470c; }
.hc-kazandi { border-color: #22c55e; }

@media (max-width: 767px) {
	.hc-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); right: 12px; padding: 5px 14px 5px 5px; }
	.hc-fab-cark { width: 36px; height: 36px; flex-basis: 36px; }
	.hc-fab-cark::after { inset: 11px; }
	.hc-fab-yazi b { font-size: 12px; }
	.hc-fab-yazi small { font-size: 11px; }
	.hc-kutu { grid-template-columns: 1fr; border-radius: 22px; }
	.hc-sol { padding: 30px 30px 14px; }
	.hc-cark-alan { max-width: 270px; }
	.hc-sag { padding: 8px 20px 22px; }
	.hc-h { font-size: 20px; }
	.hc-kod { font-size: 20px; }
}
