:root {
  --fedon-green: #00b894;
  --fedon-green-soft: #a6f0df;
  --bg-dark: #050816;
  --card-bg: #0f172a;
  --border-soft: #1e293b;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #facc15;
  --danger: #f97373;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617 55%);
  color: var(--text-main);
}

/* SAYFA YERLEŞİMİ */

.page {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ÜST BAR */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0%, #ffffff, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #f9fafb;
}

.brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.tagline-badge {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 12px;
  color: var(--fedon-green-soft);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(56, 189, 248, 0.05)
  );
}

/* ANA GRID */

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 16px;
  flex: 1;
}

/* KART GENEL STİL */

.card {
  background: radial-gradient(circle at top left, #111827, #020617 65%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

/* SOL PANEL */

.left-panel h2 {
  margin-top: 0;
  font-size: 18px;
}

.button-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-btn {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 14px;
  padding: 10px 8px;
  color: var(--text-main);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.feature-btn span {
  flex: 1;
  text-align: left;
}

.feature-btn:hover {
  transform: translateY(-1px);
  border-color: var(--fedon-green);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(56, 189, 248, 0.05)
  );
}

.mini-info {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* SAĞ PANEL */

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-block {
  display: none;
}

.content-block.active {
  display: block;
}

/* CASPER AÇILIŞ ALANI */

.casper-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.casper-ghost {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 0%, #ffffff, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.speech-bubble {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  font-size: 13px;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-left: inherit;
  border-bottom: inherit;
  transform: rotate(45deg);
}

.bubble-sign {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--fedon-green-soft);
}

.helper-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* BUTON GENEL */

.primary-btn {
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00b894, #22c55e);
  color: #022c22;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.7);
}

/* ŞANS BAR STİLİ */

.luck-meter {
  margin-top: 10px;
}

.luck-bar-bg {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
  overflow: hidden;
}

.luck-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e);
  transition: width 0.2s ease-out;
}

.luck-value {
  margin-top: 6px;
  font-size: 13px;
}

.result-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fedon-green-soft);
}

/* ÇARK STİLİ */

.wheel-wrapper {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wheel {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(148, 163, 184, 0.9);
  background: conic-gradient(
    from 0deg,
    #0f766e 0deg,
    #0f766e 60deg,
    #ca8a04 60deg,
    #ca8a04 120deg,
    #be123c 120deg,
    #be123c 180deg,
    #1d4ed8 180deg,
    #1d4ed8 240deg,
    #22c55e 240deg,
    #22c55e 300deg,
    #9333ea 300deg,
    #9333ea 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 5s cubic-bezier(0.19, 1, 0.22, 1);
}

.wheel-label {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #020617, #020617 60%);
  border: 2px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
  padding: 4px;
}

.wheel-pointer {
  font-size: 16px;
  translate: 0 -10px;
}

/* ASTROLOJİ */

.zodiac-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zodiac-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.95);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #020617;
  color: #e5e7eb;
  transition: background 0.12s ease, transform 0.12s ease,
    box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.zodiac-pill:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
  color: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.45);
}

.zodiac-result {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0a0f1e;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 16px;
  color: #ffffff;
  line-height: 1.45;
}

.zodiac-result strong {
  color: #facc15;
  font-weight: 700;
  font-size: 17px;
}

/* FOOTER */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.ad-placeholder {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
}

.ad-placeholder span {
  font-weight: 500;
}

.ad-placeholder small {
  color: var(--text-muted);
}

.footer-note {
  color: var(--text-muted);
}

/* MOBİL UYUMLULUK */

@media (max-width: 800px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
