/* ---------- Variables & base ---------- */
:root {
  /* Nextmove Dark Theme Palette */
  --bg: #050505;
  /* Very deep black/gray */
  --panel: #0A0A0A;
  /* Slightly lighter for sidebar */
  --card: #111111;
  /* Card background */
  --muted: #888888;
  --text: #eef2f8;

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  --radius: 24px;
  /* More rounded corners as per image */

  --accent-pink: #ff007f;
  --accent-glow: rgba(255, 0, 127, 0.4);

  --shadow-1: 0 4px 12px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.5);

  --transition: 320ms cubic-bezier(.2, .9, .2, 1);
  --input-bg: rgba(0, 0, 0, 0.2);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Premium Metallic Text Effect */
h1,
h2,
.brand-text .site,
.nav-item.active .label {
  background: linear-gradient(180deg, #FFFFFF 20%, #B0B0B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] .brand-text .site,
:root[data-theme="light"] .nav-item.active .label {
  background: linear-gradient(180deg, #2c3e50 0%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Light theme removed or adjusted to keep dark mode primary as per request */
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --card: #f9fbff;
  --muted: #56606a;
  --text: #0b1115;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
  --accent-pink: #00b3b3;
  /* Fallback for light mode */
  --accent-glow: rgba(0, 179, 179, 0.4);
  --input-bg: #f8fafc;
  /* Light gray to match textarea */
}

/* base */
* {
  box-sizing: border-box
}

html {
  height: 100%;
  background: var(--bg);
  transition: background var(--transition);
}

body {
  height: 100%;
  background: transparent;
}

/* Floating Shapes Animation */
.floating-shapes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.03;
  /* Very faint */
  background: var(--text);
  animation: floatUp linear infinite;
}

.shape.circle {
  border-radius: 50%;
}

.shape.triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--text);
  /* Ensure background is set for clip-path to work */
}

.shape.square {
  border-radius: 4px;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.03;
  }

  90% {
    opacity: 0.03;
  }

  100% {
    transform: translateY(-20vh) rotate(360deg);
    opacity: 0;
  }
}

body {
  margin: 0;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* app layout */
.app {
  display: flex;
  height: 100vh;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px;
  max-width: 100%;
}

/* sidebar */
.sidebar {
  width: 280px;
  min-width: 260px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: none;
  /* Removed border for cleaner look */
  display: flex;
  flex-direction: column;
  gap: 32px;
  /* Increased gap */
  position: relative;
  overflow: hidden;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text .site {
  font-weight: 700
}

.brand-text .small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px
}

/* nav */
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease-out;
  position: relative;
  z-index: 2;
  font-size: 15px;
}

.nav-item .ico {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.nav-item .label {
  flex: 1;
  text-align: left;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Active Menu Style - Nextmove Replica */
.nav-item.active {
  color: var(--text);
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 0, 127, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset -2px 0 10px rgba(255, 0, 127, 0.1);
  position: relative;
  overflow: hidden;
}

/* Aurora Background Animation REMOVED per user request */

/* The pink glow bar on the right */
.nav-item.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: var(--accent-pink);
  border-radius: 4px 0 0 4px;
  box-shadow: -2px 0 12px var(--accent-pink);
}

:root[data-theme="light"] .nav-item.active {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(0, 179, 179, 0.1));
}

:root[data-theme="light"] .nav-item.active::after {
  background: var(--accent-pink);
  /* Actually turquoise in light mode var */
}

/* sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: var(--glass-border);
}

/* main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: transparent;
  border-radius: 12px
}

.top-left h1 {
  margin: 0;
  font-size: 18px
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px
}

/* theme btn */
.theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .25s
}

.theme-btn:hover {
  transform: translateY(-2px) scale(1.03)
}

/* content */
.content {
  padding: 10px 26px 26px;
  min-height: 0;
  overflow: auto
}

.section {
  display: none
}

.section.active-section {
  display: block
}

/* panels */
.panel {
  background: var(--panel);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  border: var(--glass-border);
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px
}

@media (max-width:1100px) {
  .panel-grid {
    grid-template-columns: 1fr
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px
}

.field label {
  font-weight: 700
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--input-bg) !important;
  /* Force consistent background */
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  /* Remove browser defaults */
  -moz-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  background: var(--input-bg) !important;
  /* Ensure textarea matches */
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 20px;
  /* Kullanıcının istediği boşluk */
}

/* groups */
.groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px
}

.group-row {
  display: flex;
  gap: 8px;
  align-items: flex-end
}

.group-row input {
  padding: 10px;
  border-radius: 8px;
  border: var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  width: 100%;
}

.group-row .small-btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition: background .2s
}

.group-row .small-btn:hover {
  background: rgba(255, 82, 82, 0.1);
  color: #ff7b7b;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.input-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

/* buttons */
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.btn-primary {
  background: var(--accent-pink);
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--glass);
  border: var(--glass-border);
  color: var(--text)
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.06)
}

/* info card & ad */
.info-card {
  padding: 16px;
  border-radius: 10px;
  background: var(--glass);
  border: var(--glass-border)
}

.info-title {
  font-weight: 700;
  margin-bottom: 6px
}

.ad-slot {
  margin-top: 14px
}

.ad-placeholder {
  padding: 18px;
  border-radius: 10px;
  background: var(--glass);
  text-align: center;
  color: var(--muted)
}

/* results */
.results-area {
  margin-top: 16px;
  padding-top: 16px;
  border-top: var(--glass-border);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px
}

.per-group {
  padding: 16px;
  border-radius: 10px;
  background: var(--glass);
  border: var(--glass-border)
}

.per-group h4 {
  margin: 0 0 8px 0
}

.per-group .vals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 600;
}

/* summary */
.summary-card {
  display: flex;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--glass);
  border: var(--glass-border);
}

.summary-line {
  font-weight: 700;
  font-size: 1.05rem
}

.summary-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px
}

/* footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  margin-top: 16px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted)
}

/* ----- YENİ EKLENEN BÖLÜMLERİN STİLLERİ ----- */

.content-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: var(--radius);
  margin-top: 16px;
  background-color: #ffffff;
}

.analytics-mockup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: var(--glass);
  padding: 20px;
  border-radius: var(--radius);
  border: var(--glass-border);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  max-width: 600px;
}

.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: var(--glass-border);
  background: var(--glass);
  color: var(--text);
  min-height: 120px;
  font-family: inherit;
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
}

.article-content {
  margin-top: 24px;
}

/* Modern FAQ Styles */
.faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
  color: var(--accent-pink);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 24px 20px;
  color: var(--muted);
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Announcement Card */
.modern-announcement {
  background: linear-gradient(135deg, var(--glass) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.modern-announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-pink);
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.announcement-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 0, 127, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-pink);
}

.announcement-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.announcement-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.announcement-body p {
  margin-bottom: 12px;
}

.announcement-body p:last-child {
  margin-bottom: 0;
}

/* responsive */
@media (max-width:1000px) {
  .app {
    flex-direction: column;
    height: auto;
    min-height: 100%;
    padding: 12px
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    overflow: auto
  }

  .brand-text {
    display: none
  }

  .nav {
    flex-direction: row;
    gap: 6px;
    overflow: auto
  }

  .nav-item {
    padding: 8px 12px;
    border-radius: 8px
  }

  .nav-item.active {
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .panel-grid {
    grid-template-columns: 1fr
  }

  .main {
    order: 2
  }

  .sidebar {
    order: 1
  }
}

.summary-box {
  background: var(--glass);
  border: var(--glass-border);
  border-left: 3px solid var(--accent-pink);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  /* Alt boşluk eklendi */
}

.summary-box p:last-child {
  margin-bottom: 0;
}

.summary-box h3 {
  margin-top: 0;
  color: var(--text);
}

.action-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  /* Alt boşluk eklendi */
}

@media (max-width: 600px) {
  .group-row {
    flex-wrap: wrap;
  }

  .field-group {
    min-width: 45%;
  }

  .group-row .small-btn {
    width: 100%;
    margin-top: 4px;
  }
}

/* Source Separator */
.source-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.source-separator::before,
.source-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 15px;
}