:root {
  --brand: #0e3f63;
  --brand-light: #165582;
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --border: #e2e8f0;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --amber: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  user-select: none;
}

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

/* Yükleniyor */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 500;
}

.loader-spinner {
  width: 34px;
  height: 34px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Üst Bar */
.top-bar {
  position: fixed;
  top: 22px;
  left: 32px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand {
  pointer-events: auto;
}

.brand-svg {
  height: 50px;
  width: auto;
  display: block;
}

.status-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* Sol Bilgi Paneli */
.info-panel {
  position: fixed;
  top: 96px;
  left: 32px;
  z-index: 10;
  max-width: 390px;
  pointer-events: none;
}

.info-card {
  pointer-events: auto;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.info-card h1 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.info-card p strong {
  color: var(--brand);
  font-weight: 600;
}

.view-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.view-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-soft);
  padding: 6px 11px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.view-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}

.view-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Sağ Üst Araçlar */
.scene-tools {
  position: fixed;
  top: 86px;
  right: 32px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.tool-btn {
  pointer-events: auto;
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.tool-btn:hover {
  color: var(--brand);
  border-color: #cbd5e1;
}

.drag-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Alt Kurumsal Çubuk */
.bottom-bar {
  position: fixed;
  bottom: 20px;
  left: 32px;
  right: 32px;
  z-index: 10;
  pointer-events: none;
}

.footer-card {
  pointer-events: auto;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-item .label {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-item .value {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.footer-item.company .value {
  font-weight: 600;
  color: var(--brand);
}

.footer-item.web {
  flex-shrink: 0;
  text-align: right;
}

.web-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.web-link:hover {
  text-decoration: underline;
}

.sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Mobil & Tablet Uyum */
@media (max-width: 960px) {
  .top-bar {
    left: 18px;
    right: 18px;
    top: 16px;
  }

  .info-panel {
    left: 18px;
    right: 18px;
    top: 78px;
    max-width: 360px;
  }

  .info-card {
    padding: 16px 18px;
  }

  .info-card h1 {
    font-size: 1.2rem;
  }

  .scene-tools {
    display: none;
  }

  .bottom-bar {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .footer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .sep {
    width: 100%;
    height: 1px;
  }

  .footer-item.web {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .brand-svg {
    height: 38px;
  }

  .info-card p {
    display: none;
  }
}
