/* ---------- Temel ---------- */
:root{
  --bg:#0b0f14;
  --panel:#101621cc;
  --panel-solid:#101621ee;
  --text:#e6f7ff;
  --muted:#98b0b7;
  --neon:#00ffe0;
  --neon-green:#39ff14;
  --danger:#ff5577;
  --ok:#15d1a7;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --radius:18px;
  --radius-lg:24px;
  --glass: blur(10px) saturate(140%);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial;
  color:var(--text);
  background: radial-gradient(1200px 1200px at 15% 25%, rgba(0,255,224,.12), transparent 60%),
              radial-gradient(900px 900px at 85% 75%, rgba(0,255,224,.08), transparent 60%),
              var(--bg);
}

#bg-glow{
  position:fixed; inset:0; pointer-events:none;
  background:
    radial-gradient(600px 600px at 50% -10%, rgba(0,255,224,.18), transparent 60%),
    radial-gradient(800px 800px at -10% 90%, rgba(0,255,224,.10), transparent 60%);
  filter:saturate(140%);
  mix-blend-mode:screen;
}

/* ---------- Yapı ---------- */
.app-header, .app-footer{
  max-width:1000px; margin:24px auto; padding:0 16px;
  opacity:.95;
}
.logo{
  font-weight:800; letter-spacing:.2px;
  text-shadow:0 0 16px rgba(0,255,224,.45);
}
.logo span{ color:var(--muted); font-weight:600 }
.app{ max-width:1000px; margin:0 auto; padding:16px; }

.screen{ display:none; animation:fadeIn .6s ease both; }
.screen.active{ display:block; }

.card-lg{
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  backdrop-filter:var(--glass);
  box-shadow:var(--shadow);
  padding:26px;
  border:1px solid rgba(0,255,224,.12);
}

.glass{ position:relative; overflow:hidden; }
.glass::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius:inherit;
  background:linear-gradient(135deg, rgba(0,255,224,.15), transparent 30%, rgba(0,255,224,.1) 70%, transparent 100%);
  pointer-events:none; mix-blend-mode:screen;
}

.muted{ color:var(--muted); }

.toolbar{ margin-top:22px; display:flex; gap:12px; justify-content:flex-end; }
.space-between{ justify-content:space-between; }

/* ---------- Butonlar ---------- */
.btn{
  appearance:none; border:1px solid rgba(0,255,224,.25);
  background:rgba(0,255,224,.08);
  color:var(--text);
  padding:12px 16px; border-radius:14px; cursor:pointer;
  font-weight:600; transition:all .25s ease; position:relative;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 0 0 0 rgba(0,255,224,.0);
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 18px rgba(0,255,224,.25) inset;
}
.btn:active{ transform:translateY(0); }
.btn.neon{
  background:linear-gradient(180deg, rgba(0,255,224,.22), rgba(0,255,224,.08));
  border-color:rgba(0,255,224,.45);
  text-shadow:0 0 12px rgba(0,255,224,.5);
}
.btn.ghost{
  background:rgba(255,255,255,.02);
  border-color:rgba(0,255,224,.2);
}
.btn.subtle{
  background:rgba(255,255,255,.02);
  border-color:transparent;
}

/* ---------- Meslek Grid ---------- */
.career-grid{
  margin-top:18px;
  display:grid; gap:14px;
  grid-template-columns: repeat(5, 1fr);
}
.career-card{
  padding:16px; border-radius:16px; cursor:pointer;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(0,255,224,.12);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height:140px; display:flex; flex-direction:column; justify-content:space-between;
}
.career-card:hover{
  transform: translateY(-2px);
  border-color:rgba(0,255,224,.35);
  box-shadow:0 14px 30px rgba(0,0,0,.45), 0 0 24px rgba(0,255,224,.18) inset;
}
.career-card .title{ font-weight:700; }
.career-card .desc{ color:var(--muted); font-size:.92rem; }

/* ---------- Test ---------- */
.test-header{
  display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; justify-content:space-between;
}
.progress-wrap{ display:flex; align-items:center; gap:12px; }
.progress-bar{
  width:260px; height:10px; background:rgba(255,255,255,.06);
  border-radius:999px; overflow:hidden; border:1px solid rgba(0,255,224,.15);
}
#progress-fill{
  width:0%; height:100%;
  background: linear-gradient(90deg, var(--neon-green), #00ffa0);
  box-shadow:0 0 12px rgba(57,255,20,.7), 0 0 24px rgba(0,255,160,.5);
  transition:width .45s cubic-bezier(.2,.8,.2,1);
}

.question-card{
  margin-top:20px; padding:18px;
  border-radius:16px; background:rgba(255,255,255,.03);
  border:1px solid rgba(0,255,224,.12);
  animation:slideUp .5s ease both;
}
.options{
  display:grid; gap:12px; margin-top:14px;
}
.option-btn{
  text-align:left;
  padding:14px; border-radius:14px; border:1px solid rgba(0,255,224,.16);
  background:rgba(0,255,224,.04);
  cursor:pointer; font-weight:600;
  transition:transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.option-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(0,255,224,.38);
  box-shadow:0 12px 22px rgba(0,0,0,.4), 0 0 18px rgba(0,255,224,.18) inset;
}

/* ---------- Sonuç ---------- */
.score-badge{
  margin:18px 0; display:flex; align-items:center; gap:18px;
}
.ring{
  width:120px; height:120px; border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,255,224,.25), transparent 60%),
    conic-gradient(var(--neon) 0deg, rgba(0,255,224,.2) 0deg);
  display:grid; place-items:center;
  box-shadow:0 0 28px rgba(0,255,224,.25) inset, 0 12px 28px rgba(0,0,0,.45);
  border:1px solid rgba(0,255,224,.2);
}
.ring span{ font-size:1.6rem; font-weight:800; text-shadow:0 0 10px rgba(0,255,224,.6); }
.badge-caption{ color:var(--muted); }

.profile-type-wrap{
  margin:8px 0 18px 0;
  padding:12px; border-radius:14px; border:1px solid rgba(0,255,224,.14);
  background:rgba(255,255,255,.03);
}

.chart-wrap h3{ margin-bottom:8px; }
.bars{ display:grid; gap:12px; }
.bar{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(0,255,224,.14);
  border-radius:14px; overflow:hidden;
}
.bar .label{
  display:flex; justify-content:space-between; padding:8px 12px; color:var(--muted);
  font-weight:600; font-size:.94rem;
}
.bar .track{
  height:14px; background:rgba(255,255,255,.03); border-top:1px solid rgba(0,255,224,.08);
}
.bar .fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--neon), #22ffaa);
  box-shadow:0 0 18px rgba(0,255,224,.45);
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Footer ---------- */
.app-footer{
  color:var(--muted); text-align:center; padding:20px 0 40px;
}

/* ---------- Utils ---------- */
.hidden{ display:none !important; }

@keyframes fadeIn{ from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
@keyframes slideUp{ from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }

/* ---------- Responsive ---------- */
@media (max-width: 920px){
  .career-grid{ grid-template-columns: repeat(2, 1fr); }
  .progress-bar{ width:180px; }
}
@media (max-width: 520px){
  .career-grid{ grid-template-columns: 1fr; }
  .ring{ width:100px; height:100px; }
}
/* === Bar Dolma Animasyonu === */
.bar .fill {
  background: linear-gradient(90deg, #00ffe0, #39ff14);
  height: 10px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,255,224,0.4);
  transition: width 1.2s ease-in-out;
}
#btn-download {
  border: 1px solid #00ffe0;
  box-shadow: 0 0 10px rgba(0,255,224,0.3);
  transition: all 0.3s ease;
}
#btn-download:hover {
  box-shadow: 0 0 18px rgba(0,255,224,0.7);
  background: rgba(0,255,224,0.1);
}
/* === Sayfa Geçiş Animasyonu === */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}



/* Ekstra yumuşaklık için küçük gecikme */
.screen.active .card,
.screen.active .bar,
.screen.active button {
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === Radar Grafiği === */
#radarChart {
  display: block;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(0,255,224,0.05), transparent 70%);
  border-radius: 80%;
  box-shadow: 0 0 25px rgba(0,255,224,0.2) inset, 0 0 12px rgba(0,255,224,0.4);
}
/* === ANALİZ YÜKLENİYOR EKRANI === */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #00ffe0;
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0,255,224,0.2);
  border-top: 5px solid #00ffe0;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.loading-sub {
  font-size: 1rem;
  color: rgba(0,255,224,0.6);
  margin-top: 5px;
  animation: blink 2s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
/* === KİŞİSEL GELİŞİM TAVSİYELERİ === */
.advice-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,255,224,0.2);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  box-shadow: 0 0 20px rgba(0,255,224,0.05);
  text-align: left;
}

.advice-card h3 {
  color: #00ffe0;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

#advice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#advice-list li {
  margin-bottom: 8px;
  color: #aaffff;
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

#advice-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #00ffe0;
}
/* === BAŞLANGIÇ EKRANI TASARIM === */
#screen-start {
  position: relative;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(0,255,224,0.05), #000 90%);
}

.start-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.start-container .title {
  font-size: 2.2rem;
  color: #00ffe0;
  text-shadow: 0 0 12px rgba(0,255,224,0.6);
  margin-bottom: 30px;
}

/* === BAŞLA BUTONU === */
.start-btn {
  font-size: 1.4rem;
  font-weight: 600;
  background: rgba(0,255,224,0.1);
  border: 2px solid #00ffe0;
  border-radius: 12px;
  color: #00ffe0;
  padding: 18px 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,255,224,0.3);
}

.start-btn:hover {
  background: rgba(0,255,224,0.25);
  box-shadow: 0 0 25px rgba(0,255,224,0.7);
  transform: scale(1.05);
}

/* === MESLEK SEÇİM EKRANI RENK AYARI === */
.career-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,255,224,0.2);
  color: #aaffff !important;
  text-shadow: 0 0 6px rgba(0,255,224,0.4);
}

.career-card .title {
  color: #00ffe0;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.career-card .desc {
  color: #ccffff;
  font-size: 0.95rem;
}
/* === MESLEK KARTLARI 3D HOVER EFEKTİ === */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

.career-card {
  position: relative;
  width: 220px;
  height: 160px;
  background: rgba(0, 255, 224, 0.05);
  border: 1px solid rgba(0, 255, 224, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.1);
  color: #aaffff;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  transform-style: preserve-3d;
  perspective: 800px;
}

.career-card:hover {
  transform: scale(1.05) rotateY(6deg) rotateX(3deg);
  border-color: #00ffe0;
  box-shadow: 0 0 25px rgba(0, 255, 224, 0.5), 0 0 60px rgba(0, 255, 224, 0.1);
}

/* Neon ışık kayması efekti */
.career-card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 16px;
  background: linear-gradient(120deg, transparent, rgba(0,255,224,0.3), transparent);
  background-size: 300% 300%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.career-card:hover::before {
  opacity: 1;
  animation: glowShift 2.5s linear infinite;
}

@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.career-card h3 {
  color: #00ffe0;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.career-card p {
  color: #ccffff;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
/* === BAŞLANGIÇ EKRANI GRID DÜZENİ === */
#screen-start {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.start-grid {
  position: relative;
  width: 90%;
  height: 90%;
  display: grid;
  grid-template-areas:
    "top top top"
    "left center right"
    "bottom bottom bottom";
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 100px auto 100px;
  z-index: 2;
}

/* Merkez alan */
.start-container {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,255,224,0.2);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,255,224,0.1);
}

/* Reklam alanları */
.ad {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  color: #00ffe0;
  border: 1px dashed rgba(0,255,224,0.3);
  background: rgba(0,255,224,0.03);
  border-radius: 10px;
  text-shadow: 0 0 6px rgba(0,255,224,0.3);
  animation: glowBlink 6s infinite ease-in-out;
}

.ad-top { grid-area: top; }
.ad-bottom { grid-area: bottom; }
.ad-left { grid-area: left; }
.ad-right { grid-area: right; }

@keyframes glowBlink {
  0%,100% { opacity: 0.8; box-shadow: 0 0 10px rgba(0,255,224,0.2); }
  50% { opacity: 1; box-shadow: 0 0 25px rgba(0,255,224,0.4); }
}

/* Başlık + Buton */
.start-container .title {
  font-size: 2rem;
  color: #00ffe0;
  text-shadow: 0 0 12px rgba(0,255,224,0.6);
  margin-bottom: 30px;
}

.start-btn {
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(0,255,224,0.15);
  border: 2px solid #00ffe0;
  border-radius: 12px;
  color: #00ffe0;
  padding: 20px 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0,255,224,0.3);
}

.start-btn:hover {
  background: rgba(0,255,224,0.3);
  box-shadow: 0 0 30px rgba(0,255,224,0.8);
  transform: scale(1.05);
}
