/* pishro/static/css/style.css — بازنویسی کامل */

/* ------------------------------ */
/* پایه‌ها و ریست ساده           */
/* ------------------------------ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: "Tahoma", sans-serif;
}

body {
  background: #0f0f0f;
  color: #fff;
  line-height: 1.6;
}

a {
  color: #ffd86b;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

/* برای عناصر پنهان ولی قابل دسترس (مانند h3 کنترل‌ها) */
.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ------------------------------ */
/* ساختار صفحه گردونه            */
/* ------------------------------ */

.wheel-page h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

/* root layout */
.wheel-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* برای دسکتاپ */
@media (min-width: 900px) {
  .wheel-root {
    flex-direction: row;
    align-items: flex-start;
  }

  .wheel-column {
    flex: 1;
  }

  .controls-column {
    width: 320px;
  }
}

/* ------------------------------ */
/* بخش گردونه                    */
/* ------------------------------ */

.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
}

/* کانواس — اندازه نهایی را JS تعیین می‌کند */
#wheel {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
}

/* پوینتر */
.pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  
  font-size: 32px;
  color: #ffdd55;
  text-shadow: 0 0 8px rgba(255, 223, 99, 0.8);
  pointer-events: none;
  z-index: 5;
}

/* افکت نوری دور گردونه */
.wheel-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 215, 100, 0.2), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* نمایش نتیجه */
.result-box {
  margin-top: 10px;
  font-size: 1.1rem;
  text-align: center;
  min-height: 30px;
}

/* ------------------------------ */
/* کنترل‌ها و اطلاعات            */
/* ------------------------------ */

.card {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 110, 0.1);
}

.controls .tokens {
  font-size: 1.1rem;
}

.legend-list li {
  margin: 6px 0;
  display: flex;
  align-items: center;
}

/* ------------------------------ */
/* دکمه‌ها                       */
/* ------------------------------ */

.btn {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

.btn.primary {
  background: #ffb84a;
  color: #000;
  font-weight: bold;
}

.btn.primary:hover:not(:disabled) {
  background: #ffc96a;
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  background: #333;
  color: #fff;
}

.btn.secondary:hover {
  background: #444;
}

/* ------------------------------ */
/* ریسپانسیو موبایل              */
/* ------------------------------ */

@media (max-width: 600px) {
  #wheel {
    max-width: 100%;
  }

  .pointer {
    font-size: 28px;
    top: -10px;
  }

  .btn {
    width: 100%;
  }
}
