:root {
  --bg-black: #05070B;
  --panel-bg: rgba(13, 17, 23, 0.75);
  --panel-border: rgba(255, 255, 255, 0.1);
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --neon-purple: #9D00FF;
  --neon-purple-glow: rgba(157, 0, 255, 0.4);
  --neon-amber: #FF9900;
  --neon-green: #00FF66;
  --neon-red: #FF3366;
  --text-main: #FFFFFF;
  --text-muted: #8B949E;
  --font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(157, 0, 255, 0.06) 0%, transparent 40%);
}

/* Background Animated Grid */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.app-container {
  width: 100%;
  max-width: 600px;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Header & Language Switcher */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(to right, #FFFFFF, #B0E0E6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.badge-ai {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0E131F;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 6px;
  width: 170px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 100;
  backdrop-filter: blur(20px);
}

.lang-menu.open {
  display: flex;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #c9d1d9;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-item:hover, .lang-item.active {
  background: rgba(0, 240, 255, 0.12);
  color: #fff;
}

/* Hero Title */
.hero-title {
  text-align: center;
  margin-bottom: 30px;
}

.hero-title h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-title p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

/* 3D ACTION BUTTONS (GÖZ ALICI 3D TUŞLAR) */
.buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

@media (max-width: 520px) {
  .buttons-grid {
    gap: 8px;
  }
  .btn-3d-front {
    padding: 16px 8px !important;
    font-size: 13px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }
  .btn-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
  }
  .btn-icon-wrapper svg {
    width: 20px !important;
    height: 20px !important;
  }
  .btn-sub-label {
    font-size: 9px !important;
  }
}

.btn-3d {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  width: 100%;
}

.btn-3d * {
  pointer-events: none;
}

.btn-3d-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-3d-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.btn-photo .btn-3d-edge {
  background: linear-gradient(to bottom, #008899, #004d55);
}

.btn-video .btn-3d-edge {
  background: linear-gradient(to bottom, #6900aa, #3d0066);
}

.btn-audio .btn-3d-edge {
  background: linear-gradient(to bottom, #059669, #064e3b);
}

.btn-3d-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding: 22px 12px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  transform: translateY(-6px);
  transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-photo .btn-3d-front {
  background: linear-gradient(135deg, #00F0FF 0%, #008299 100%);
  box-shadow: 0 0 25px var(--neon-cyan-glow);
}

.btn-video .btn-3d-front {
  background: linear-gradient(135deg, #9D00FF 0%, #5B0099 100%);
  box-shadow: 0 0 25px var(--neon-purple-glow);
}

.btn-audio .btn-3d-front {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.btn-3d:hover .btn-3d-front {
  transform: translateY(-8px);
}

.btn-3d:active .btn-3d-front {
  transform: translateY(-2px);
}

.btn-3d.active .btn-3d-front {
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 35px #FFFFFF, 0 0 50px currentColor;
}

.btn-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.btn-sub-label {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.85;
}

/* DROPZONE / PREVIEW AREA */
.preview-card {
  width: 100%;
  background: var(--panel-bg);
  border: 1.5px dashed var(--panel-border);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.preview-card.has-file {
  border-style: solid;
  border-color: var(--neon-cyan);
  padding: 12px;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  cursor: pointer;
  padding: 30px 20px;
}

.upload-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.upload-placeholder:hover .upload-icon-circle {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  transform: scale(1.05);
}

.media-preview-container {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.preview-element {
  max-width: 100%;
  max-height: 320px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.remove-media-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}

.remove-media-btn:hover {
  background: var(--neon-red);
}

/* LASER SCANNING ANIMATION */
.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-cyan);
  display: none;
  z-index: 5;
}

.scanning .scan-laser-line {
  display: block;
  animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* AUDIO CONTAINER & MIC PULSE */
.audio-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 10px;
  text-align: center;
}

.audio-mic-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.btn-mic-pulse {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.btn-mic-pulse:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.7);
}

.btn-mic-pulse.recording,
.btn-mic-pulse.listening {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.7);
  animation: micPulseRecord 1.2s infinite ease-in-out;
}

@keyframes micPulseRecord {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.audio-status-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.audio-status-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.audio-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 22px;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 2px;
  margin: 4px 0;
}

.audio-status-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
}

.audio-waveform-canvas {
  width: 100%;
  max-width: 320px;
  height: 55px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.audio-playback-card {
  width: 100%;
  max-width: 320px;
}

.audio-file-upload-link {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.audio-file-upload-link a {
  color: #10B981;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

/* CHECK NOW 3D BUTTON (KONTROL ET) */
.btn-control-3d {
  width: 100%;
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-bottom: 24px;
}

.btn-control-3d * {
  pointer-events: none;
}

.btn-control-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(to bottom, #d97706, #92400e);
}

.btn-control-front {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #05070B;
  background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
  transform: translateY(-6px);
  transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.4);
}

.btn-control-3d:hover .btn-control-front {
  transform: translateY(-8px);
}

.btn-control-3d:active .btn-control-front {
  transform: translateY(-2px);
}

.btn-control-3d:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* RESULT CARD */
.result-card {
  width: 100%;
  background: #0D1117;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-meter {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 16px;
}

.meter-circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.meter-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
  fill: none;
}

.meter-circle-bar {
  stroke-width: 10;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.3s;
}

.result-percentage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.result-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.verdict-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.verdict-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.is-ai .verdict-badge {
  background: rgba(255, 51, 102, 0.15);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.is-real .verdict-badge {
  background: rgba(0, 255, 102, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.signals-list {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #c9d1d9;
  line-height: 1.4;
}

.signal-icon {
  flex-shrink: 0;
  font-size: 16px;
}

/* Location / Environment Box */
.location-box {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.3s ease;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.location-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.location-desc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.location-coords {
  font-size: 11.5px;
  font-family: monospace;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 136, 153, 0.25));
  border: 1px solid var(--neon-cyan);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-map-link:hover {
  background: var(--neon-cyan);
  color: #05070B;
  box-shadow: 0 0 25px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.badge-exif-verified {
  background: rgba(0, 255, 157, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-approx-coord {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Breakdown Panel (Explainable AI 3-Step Breakdown) */
.breakdown-panel {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.4s ease;
}

.breakdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breakdown-icon {
  font-size: 14px;
}

.breakdown-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.breakdown-step {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.25s ease;
}

.breakdown-step:hover {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.breakdown-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8B949E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breakdown-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tag-real {
  background: rgba(0, 255, 102, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.tag-ai {
  background: rgba(255, 51, 102, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.35);
}

.tag-neutral {
  background: rgba(255, 153, 0, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.breakdown-step-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.breakdown-step-desc {
  font-size: 11.5px;
  color: #8B949E;
  line-height: 1.45;
}

.breakdown-meter-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.breakdown-meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.breakdown-meter-fill {
  height: 100%;
  width: 50%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-amber) 50%, var(--neon-green));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.breakdown-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6E7681;
}

/* Footer */
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

