/* === 2025 Modern Web Tasarım Stilleri - Zar Atma === */
:root {
  --primary-blue: #0E1E5B;
  --secondary-blue: #091442;
  --text-blue: #6594C0;
  --dark-bg: #0B0B0B;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --text-light: #f8fafc;
  --text-dark: #1e293b;
  --glass-bg: rgba(101, 148, 192, 0.1);
  --glass-border: rgba(101, 148, 192, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(14, 30, 91, 0.37);
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-2xl: 1.5rem;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #0B0B0B 0%, #091442 100%); color: var(--text-light); min-height: 100vh; line-height: 1.6; overflow-x: hidden; }

/* Genel Kura ile uyumlu arka plan deseni */
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 80%, rgba(53, 98, 166, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(101, 148, 192, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(14, 30, 91, 0.2) 0%, transparent 50%); z-index: -1; animation: backgroundShift 20s ease-in-out infinite; }
@keyframes backgroundShift { 0%, 100% { transform: scale(1) rotate(0deg);} 50% { transform: scale(1.1) rotate(1deg);} }

.app-header { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 1.5rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: var(--glass-shadow); }
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo { width: 50px; height: auto; filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.3)); }
.back-btn { color: var(--accent-gold); text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: var(--radius-md); border: 1px solid rgba(217, 119, 6, 0.2); background: rgba(217, 119, 6, 0.1); transition: all var(--transition-normal); }
.back-btn:hover { background: rgba(217, 119, 6, 0.2); transform: translateX(-4px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.app-header h1 { font-size: 1.5rem; font-weight: 600; background: linear-gradient(135deg, #d97706 0%, #b45309 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.controls { display: flex; align-items: center; gap: 1rem; }
.controls input { background: rgba(255,255,255,0.95); border: 2px solid rgba(101, 148, 192, 0.3); border-radius: var(--radius-md); padding: 0.5rem 0.75rem; color: var(--text-dark); width: 130px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-light); padding: 0.75rem 1.5rem; border-radius: var(--radius-lg); font-weight: 500; cursor: pointer; transition: all var(--transition-normal); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); border-color: var(--accent-gold); }
.btn.primary { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: var(--text-dark); border: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.dice-area { text-align: center; }
.dice-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; justify-items: center; margin: 2rem 0; align-items: start; }

.die { width: 120px; height: 120px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; position: relative; display: grid; place-items: center; box-shadow: var(--glass-shadow); }
.die.spin { animation: dieSpin 0.8s ease; }
@keyframes dieSpin { 0% { transform: rotate(0); } 100% { transform: rotate(720deg); } }

.pips { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; width: 80px; height: 80px; }
.pip { width: 14px; height: 14px; background: #fff; border-radius: 50%; justify-self: center; align-self: center; box-shadow: 0 0 8px rgba(255,255,255,0.3); }

.actions { margin-bottom: 1rem; }
.roll-sum { color: var(--accent-gold); font-weight: 700; font-size: 1.1rem; }

.history-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--glass-shadow); }
.history-card h2 { color: var(--accent-gold); font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.history-list { list-style: none; display: grid; gap: 0.5rem; }
.history-list li { background: rgba(101,148,192,0.06); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 0.5rem 0.75rem; display: flex; justify-content: space-between; }

.overlay { position: fixed; inset: 0; background: rgba(14, 30, 91, 0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 1000; transition: all var(--transition-normal); }
.overlay.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; color: var(--text-light); }
.spinner { width: 60px; height: 60px; border: 4px solid var(--glass-border); border-top: 4px solid var(--accent-gold); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .app-header { padding: 1rem; gap: 1rem; }
  .controls { width: 100%; justify-content: center; flex-direction: column; }
  .controls input { width: 100%; }
  .die { width: 100px; height: 100px; }
  .pips { width: 70px; height: 70px; }
}


