/*
Theme Name: LootyGame
Theme URI: https://lootygame.com
Author: Efe & Çeto
Description: Casual mini-games + daily loot WordPress theme (Firebase auth + Firestore backend)
Version: 1.0.0
Text Domain: looty
*/
:root{
  --bg:#121212;
  --fg:#ffffff;
  --primary:#6A0DAD; /* mor */
  --accent:#FFD700;  /* altın sarısı */
  --accent-2:#FF9800;
  --card:#1b1b1b;
  --muted:#9aa0a6;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  background:var(--bg);
  color:var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, 'Poppins', sans-serif;
  margin:0; padding:0;
}

a{color:var(--accent)}
button{cursor:pointer}

.container{
  max-width:960px; margin:0 auto; padding:24px;
}

.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; background:#0f0f0f; border-bottom:1px solid #1f1f1f; position:sticky; top:0; z-index:50;
}
.brand{
  display:flex; gap:10px; align-items:center; text-decoration:none; color:var(--fg);
}
.brand .logo{
  width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,var(--primary),#b886f8);
  display:grid; place-items:center; font-weight:900; letter-spacing:0.5px;
}
.brand span{font-weight:700}

.nav{display:flex; gap:10px; align-items:center}
.nav button, .nav .pill{
  background:var(--card); border:1px solid #2a2a2a; color:var(--fg); padding:10px 14px; border-radius:999px;
}
.nav .primary{
  background:var(--accent); color:#121212; border:none; font-weight:700;
}
.nav img{width:32px; height:32px; border-radius:50%}

.hero{
  text-align:center; padding:48px 16px;
}
h1{font-size: clamp(28px, 4vw, 44px); margin:0 0 8px}
h2{font-size:clamp(20px,3vw,28px); margin:24px 0 12px}
p.lead{font-size:18px; color:var(--muted)}

.card{
  background:var(--card); border:1px solid #222; border-radius:16px; padding:20px; margin:16px 0;
}

.actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:18px 0}
.btn{
  background:var(--accent); color:#121212; border:none; padding:12px 20px; border-radius:12px; font-weight:700; box-shadow:0 8px 24px rgba(255,215,0,.15);
}
.btn:hover{background:var(--accent-2)}
.btn.secondary{background:#232323; color:#fff; border:1px solid #333; box-shadow:none}
.btn.ghost{background:transparent; border:1px solid #2a2a2a; color:#fff}

.grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}

.badge{display:inline-flex; align-items:center; gap:6px; background:#222; border:1px solid #2a2a2a; color:#ddd; padding:6px 10px; border-radius:999px; font-size:12px}

.hidden{display:none}

.footer{
  text-align:center; color:#888; padding:40px 16px
}

/* Game areas */
#game-area{margin-top:16px}
.game-canvas{
  width:100%; height:360px; background:#0d0d0d; border:1px solid #222; border-radius:12px; position:relative; overflow:hidden;
}
.game-ui{display:flex; gap:10px; align-items:center; justify-content:center; margin:12px 0; flex-wrap:wrap}
.score{font-weight:700}
.notice{color:var(--muted); font-size:14px}

.streak{display:flex; gap:6px; align-items:center}
.streak .dot{width:10px; height:10px; border-radius:50%; background:#333}
.streak .dot.on{background:var(--accent)}

/* Loot animation */
.lootbox{width:180px; height:140px; margin:24px auto; border-radius:16px; background:linear-gradient(180deg,#1f1327,#100a13); border:1px solid #2d1243; position:relative; box-shadow:0 10px 40px rgba(106,13,173,.35)}
.lootbox::after{content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center, rgba(255,215,0,.15), transparent 60%); mix-blend-mode:screen; border-radius:16px}
.spark{position:absolute; width:8px; height:8px; border-radius:50%; background:#FFD700; box-shadow:0 0 16px #FFD70055; animation: rise 1.4s linear infinite}
@keyframes rise{
  0%{transform:translateY(0); opacity:1}
  100%{transform:translateY(-80px); opacity:0}
}

/* Leaderboard */
table.lb{width:100%; border-collapse:collapse}
table.lb th, table.lb td{padding:10px 12px; border-bottom:1px solid #222}
table.lb tr:hover{background:#161616}
.place{font-weight:700}
.first{color:#FFD700}
.second{color:#C0C0C0}
.third{color:#CD7F32}

/* Responsive tweaks */
@media (max-width:600px){
  .nav .label{display:none}
}
