/* Dateipfad: C:\Users\salih\Desktop\Jarvis\web\styles.css */

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

html,
body {
  height: 100%;
  background: radial-gradient(circle at top, #061824 0, #020611 60%, #000000 100%);
  color: #e6f3ff;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Hintergrundeffekte */
.jarvis-bg-orbit {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 180, 255, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

.jarvis-bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 255, 200, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 255, 200, 0.05) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
  z-index: -3;
}

/* Root Layout */
.jarvis-root {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.jarvis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jarvis-logo {
  position: relative;
  width: 52px;
  height: 52px;
}

.jarvis-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

.jarvis-logo-ring.middle {
  inset: 7px;
  border-color: rgba(0, 200, 255, 0.7);
}

.jarvis-logo-ring.outer {
  animation: spin 10s linear infinite;
}

.jarvis-logo-core {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #77e5ff);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.9);
}

.jarvis-title-block {
  flex: 1;
}

.jarvis-title {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jarvis-subtitle {
  font-size: 0.8rem;
  color: #9fb8ff;
}

.jarvis-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(0, 210, 150, 0.16), rgba(0, 120, 255, 0.2));
  border: 1px solid rgba(0, 230, 180, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jarvis-status-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #30fba9;
  box-shadow: 0 0 10px rgba(48, 251, 169, 0.8);
}

/* Main Layout */
.jarvis-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 18px;
}

.jarvis-panel {
  border-radius: 20px;
  border: 1px solid rgba(103, 167, 255, 0.3);
  background: radial-gradient(circle at top left, rgba(40, 90, 160, 0.4), transparent),
    rgba(3, 12, 30, 0.95);
  box-shadow: 0 0 30px rgba(0, 20, 60, 0.9);
  padding: 16px 16px 18px;
}

/* HUD Orbit */
.hud-orbit {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 8px auto 14px;
}

.hud-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 215, 255, 0.45);
}

.hud-orbit-ring.ring-1 {
  animation: spin 20s linear infinite;
}

.hud-orbit-ring.ring-2 {
  inset: 12px;
  animation: spin-rev 26s linear infinite;
}

.hud-orbit-ring.ring-3 {
  inset: 24px;
  border-style: dashed;
  border-color: rgba(0, 255, 180, 0.65);
  animation: spin 32s linear infinite;
}

.hud-orbit-core {
  position: absolute;
  inset: 54px;
  border-radius: 999px;
  background: radial-gradient(circle, #39f3ff, #0077ff);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.8);
}

.hud-orbit-sweep {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(0, 255, 255, 0.2),
    transparent 40%,
    transparent 100%
  );
  animation: rotate 3s linear infinite;
}

.hud-orbit-pulse {
  position: absolute;
  inset: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

.hud-info {
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.4);
  background: linear-gradient(
    135deg,
    rgba(10, 35, 80, 0.75),
    rgba(5, 20, 50, 0.9)
  );
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.hud-label {
  color: #8ca4ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.hud-value {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.8rem;
  color: #e7f2ff;
}

.hud-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #9fb8ff;
}

.chip {
  display: inline-flex;
  margin-top: 4px;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.5);
  font-size: 0.7rem;
}

/* Right Panel */
.voice-card {
  border-radius: 16px;
  border: 1px solid rgba(120, 180, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(8, 30, 70, 0.95),
    rgba(10, 18, 45, 0.98)
  );
  padding: 12px 14px;
  margin-bottom: 10px;
}

.voice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-jarvis {
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0;
  background: transparent;
}

.btn-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #1af2ff, #0068ff);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.8);
}

.btn-icon {
  font-size: 1rem;
}

.btn-text {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-ring {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.6);
  opacity: 0.6;
  filter: blur(1px);
  animation: pulse-soft 2.2s ease-out infinite;
}

.btn-jarvis:hover .btn-inner {
  filter: brightness(1.15);
}

.voice-status {
  flex: 1;
  font-size: 0.75rem;
  color: #cfe2ff;
}

/* Meter */
.voice-meter {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.voice-meter .bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22f2ff, #0066ff);
  opacity: 0.28;
  transition: height 0.12s ease-out, opacity 0.12s ease-out;
}

.voice-meter .bar.active {
  opacity: 0.9;
}

/* Conversation */
.conversation-card {
  border-radius: 16px;
  border: 1px solid rgba(120, 180, 255, 0.6);
  background: radial-gradient(circle at top left, rgba(18, 48, 105, 0.85), #040916);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversation-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8ca4ff;
}

.conversation-bubble {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.conversation-bubble.user {
  background: linear-gradient(135deg, rgba(40, 140, 255, 0.4), rgba(10, 42, 100, 0.9));
  border: 1px solid rgba(80, 160, 255, 0.7);
}

.conversation-bubble.jarvis {
  background: linear-gradient(135deg, rgba(0, 210, 150, 0.5), rgba(5, 40, 60, 0.9));
  border: 1px solid rgba(0, 220, 180, 0.7);
}

.placeholder {
  color: #95a4c8;
}

/* Footer */
.jarvis-footer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  color: #8ca4ff;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-badge .dot.small {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #30fba9;
  box-shadow: 0 0 10px rgba(48, 251, 169, 0.9);
}

.footer-note {
  font-size: 0.68rem;
  color: #6f82b5;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
    opacity: 0.4;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.9;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes pulse-soft {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .jarvis-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .jarvis-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
