* {
  box-sizing: border-box;
}

:root {
  --bg: #07152d;
  --bg-secondary: #0b1d3a;
  --panel: rgba(9, 20, 43, 0.78);
  --panel-strong: rgba(10, 20, 38, 0.92);
  --border: rgba(100, 149, 237, 0.16);
  --border-strong: rgba(79, 172, 254, 0.45);
  --text: #f8fbff;
  --muted: #9eb4d1;
  --accent: #4facfe;
  --accent-2: #38bdf8;
  --accent-soft: rgba(79, 172, 254, 0.18);
  --success: #22c55e;
  --warning: #facc15;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(79, 172, 254, 0.10), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, #061227 45%, #08101d 100%);
  min-height: 100vh;
}

.fps-tool {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.88) 0%, rgba(7, 16, 33, 0.94) 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.fps-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.06), transparent 35%, transparent 65%, rgba(56, 189, 248, 0.05));
  pointer-events: none;
}

.fps-tool h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 34px;
  text-align: center;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  text-shadow: 0 0 18px rgba(79, 172, 254, 0.10);
}

.fps-tool > div {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

select {
  width: 100%;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.16);
  background: linear-gradient(180deg, rgba(30, 43, 71, 0.92) 0%, rgba(24, 36, 60, 0.96) 100%);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

select:hover {
  border-color: rgba(79, 172, 254, 0.35);
}

select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.14);
  transform: translateY(-1px);
}

button {
  padding: 15px 26px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #07152d;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(56, 189, 248, 0.28);
  filter: brightness(1.03);
}

button:active {
  transform: translateY(0);
}

.result-box {
  margin-top: 34px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(4, 14, 31, 0.98) 0%, rgba(5, 14, 29, 0.92) 100%);
  border: 1px solid rgba(93, 130, 189, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

#fpsValue {
  margin: 0 0 12px;
  text-align: center;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
}

#resultSummary {
  text-align: center;
  margin: 0 0 24px;
  color: var(--text);
  font-size: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-card,
#performanceLabel,
#settingLabel {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 25, 49, 0.95) 0%, rgba(10, 20, 39, 0.95) 100%);
  border: 1px solid rgba(103, 132, 179, 0.14);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

#performanceLabel::before {
  content: "Performans Durumu: ";
  color: var(--muted);
  font-weight: 700;
}

#settingLabel::before {
  content: "Önerilen Ayar: ";
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .fps-tool {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .fps-tool h1 {
    font-size: 40px;
    margin-bottom: 28px;
  }

  #fpsValue {
    font-size: 48px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  select {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    padding: 18px 12px;
  }

  .fps-tool h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }

  button {
    width: 100%;
    max-width: 420px;
  }

  #fpsValue {
    font-size: 42px;
  }
}
select option {
  background: #0f172a;
  color: #ffffff;
}
#fpsValue {
  text-shadow:
    0 0 10px rgba(79, 172, 254, 0.5),
    0 0 20px rgba(79, 172, 254, 0.3),
    0 0 40px rgba(79, 172, 254, 0.2);
}
.result-card {
  transition: 0.25s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 172, 254, 0.4);
}
button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: 0.3s;
}

button:hover::after {
  opacity: 1;
}
.fps-graph {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 25, 49, 0.95) 0%, rgba(10, 20, 39, 0.95) 100%);
  border: 1px solid rgba(103, 132, 179, 0.14);
}

.fps-graph__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fps-graph__track {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.fps-graph__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #4facfe 100%);
  box-shadow: 0 0 16px rgba(79, 172, 254, 0.35);
  transition: width 0.6s ease;
}

.fps-graph__fill {
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.tool-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.tool-page__top {
  margin-bottom: 18px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(12, 25, 49, 0.9);
  border: 1px solid rgba(103, 132, 179, 0.18);
  color: #f8fbff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 172, 254, 0.45);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.tool-page__intro {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.tool-page__eyebrow {
  margin: 0 0 10px;
  color: #4facfe;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 13px;
}

.tool-page__intro h1 {
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.08;
  color: #ffffff;
}

.tool-page__desc {
  margin: 0 auto;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
  color: #9eb4d1;
}

.tool-cta-box {
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 20, 42, 0.78) 0%, rgba(7, 16, 33, 0.92) 100%);
  border: 1px solid rgba(100, 149, 237, 0.16);
  text-align: center;
}

.tool-cta-box h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #ffffff;
}

.tool-cta-box p {
  margin: 0 0 18px;
  color: #9eb4d1;
  font-size: 16px;
  line-height: 1.7;
}

.tool-secondary-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  color: #07152d;
  background: linear-gradient(135deg, #4facfe 0%, #38bdf8 100%);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.22);
  transition: 0.2s ease;
}

.tool-secondary-btn:hover {
  transform: translateY(-2px);
}

.tool-related {
  max-width: 1080px;
  margin: 28px auto 0;
}

.tool-related h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 30px;
  color: #ffffff;
}

.tool-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-related__card {
  display: block;
  padding: 22px;
  border-radius: 20px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(12, 25, 49, 0.95) 0%, rgba(10, 20, 39, 0.95) 100%);
  border: 1px solid rgba(103, 132, 179, 0.14);
  transition: 0.2s ease;
}

.tool-related__card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 172, 254, 0.4);
}

.tool-related__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(79, 172, 254, 0.14);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
}

.tool-related__card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.tool-related__card p {
  margin: 0;
  color: #9eb4d1;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .tool-page__intro h1 {
    font-size: 38px;
  }

  .tool-page__desc {
    font-size: 16px;
  }

  .tool-related__grid {
    grid-template-columns: 1fr;
  }
}