/* ===== Casloot marka yazısı (Quans zar-yazi stili: Orbitron, kalın, gradient, ışıma) ===== */
.brand-wordmark {
    font-family: 'Orbitron', 'Oxanium', sans-serif;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
    -webkit-text-stroke: .012em currentColor; /* küçük boyutta kalın görünsün */
    paint-order: stroke fill;
}
html.dark .brand-wordmark {
    background: linear-gradient(135deg, #ffffff, #dcd2ff 55%, #ffc4e0);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    -webkit-text-stroke: .012em #f1e9ff;
    filter: drop-shadow(0 0 14px rgba(167,139,250,.55));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #4c3a8a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Typography Enhancements */


/* Base Styles */
body {
    -webkit-tap-highlight-color: transparent; /* Mobil tıklama öne çıkarmayı kaldır */
}

/* PWA Safe Area for Mobile Nav */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Common Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Input Styles */
input, select, textarea {
    outline: none !important;
    box-shadow: none !important;
}

/* ===== Casloot Neon Tech Tema ===== */
h1, h2, h3, h4, .font-display {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.03em;
    overflow-wrap: break-word;
}

html.dark body {
    background-image:
        radial-gradient(900px 500px at 75% -5%, rgba(139,92,246,.25), transparent 70%),
        radial-gradient(700px 400px at 0% 45%, rgba(34,211,238,.10), transparent 70%);
    background-attachment: fixed;
}
html.dark body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(139,92,246,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Tüm sayfalardaki sabit slate renklerini yeni temaya çevir (koyu mod) */
html.dark .bg-slate-900 { background-color: #070a14; }
html.dark .bg-slate-800, html.dark .dark\:bg-slate-800 { background-color: #121935; }
html.dark .bg-slate-700, html.dark .dark\:bg-slate-700 { background-color: #1a2342; }
html.dark .bg-slate-600 { background-color: #27325a; }
html.dark .bg-slate-800\/50, html.dark .dark\:bg-slate-800\/50 { background-color: rgba(18,25,53,.5); }
html.dark .bg-slate-800\/40 { background-color: rgba(18,25,53,.4); }
html.dark .bg-slate-800\/20 { background-color: rgba(18,25,53,.2); }
html.dark .border-slate-700, html.dark .dark\:border-slate-700,
html.dark .border-slate-600, html.dark .dark\:border-slate-600 { border-color: #1f2a48; }

/* Kesik köşeli neon butonlar */
.btn-neon {
    display: inline-block;
    padding: 14px 34px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .15em;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    box-shadow: 0 0 30px rgba(139,92,246,.8);
    transition: transform .25s, filter .25s;
}
.btn-neon:hover { transform: translateY(-3px); filter: brightness(1.2); }
.btn-outline-neon {
    display: inline-block;
    padding: 13px 32px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .15em;
    color: #22d3ee;
    border: 1px solid #22d3ee;
    transition: transform .25s, background .25s;
}
.btn-outline-neon:hover { transform: translateY(-3px); background: rgba(34,211,238,.1); }

/* Hero */
.hero-title { font-weight: 900; line-height: 1.1; text-transform: uppercase; text-shadow: 0 0 40px rgba(139,92,246,.7); }
.hero-glow {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.55), transparent 65%);
    filter: blur(10px);
}

/* Sayfa başlık bandı (Kasalar, Mağaza vb.) */
.page-band {
    position: relative;
    border-bottom: 1px solid rgba(139,92,246,.35);
    background: linear-gradient(180deg, rgba(139,92,246,.15), transparent);
}
.page-band h1 { text-transform: uppercase; letter-spacing: .12em; text-shadow: 0 0 30px rgba(139,92,246,.6); }

/* Kasa kartları: görsel kartın tamamını kaplar */
.case-card {
    position: relative; display: block;
    aspect-ratio: 3 / 4.2;
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    background: #0d1224;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.case-card img.case-art {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .6s ease;
}
.case-card:hover { transform: translateY(-10px); border-color: #22d3ee; box-shadow: 0 0 36px rgba(34,211,238,.55); }
.case-card:hover img.case-art { transform: scale(1.08); }
.case-bar {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: rgba(8,10,20,.88);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px; color: #fff;
}
.case-bar .case-name, .case-bar .case-price {
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.case-bar .case-name { overflow: hidden; text-overflow: ellipsis; }
.case-bar .case-price { color: #facc15; }

@media (prefers-reduced-motion: reduce) {
    .animate-float, .case-card, .case-card img.case-art { animation: none; transition: none; }
}


/* ===== Hero küp: içinden çıkan, renk değiştiren silah silüetleri ===== */
.hero-cube { overflow: visible; }
.loot-item {
    opacity: 0;
    filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 8px currentColor);
    animation: lootCycle 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 2s);
}
@keyframes lootCycle {
    0%   { opacity: 0; transform: translateY(16px) scale(.5); }
    6%   { opacity: 1; transform: translateY(-2px) scale(1.08); }
    22%  { opacity: 1; transform: translateY(-14px) scale(1); }
    25%  { opacity: 0; transform: translateY(-24px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-24px) scale(1.1); }
}
/* Küpün üst ışığı: silahla aynı ritimde renk değiştirir */
.cube-core { animation: coreColor 8s steps(1, end) infinite, corePulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes coreColor {
    0%   { fill: #facc15; }  /* sarı */
    25%  { fill: #ef4444; }  /* kırmızı */
    50%  { fill: #3b82f6; }  /* mavi */
    75%  { fill: #a855f7; }  /* mor */
}
@keyframes corePulse { 50% { transform: scale(1.25); } }
.cube-beam { transform-box: fill-box; transform-origin: 50% 100%; animation: beamPulse 2s ease-in-out infinite; }
@keyframes beamPulse { 0%,100% { opacity: .18; } 50% { opacity: .5; } }
.cube-spark { animation: sparkTwinkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes sparkTwinkle { 0%,100% { opacity: 0; transform: scale(.4) translateY(0); } 50% { opacity: 1; transform: scale(1) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
    .loot-item, .cube-core, .cube-beam, .cube-spark { animation: none; }
    .loot-item:first-of-type { opacity: 1; }
}

/* ===== Koleksiyon başlığı: "YENİ" rozeti ===== */
.collection-new {
    padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em;
    color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 0 12px rgba(236,72,153,.55);
}
