/* SimCzech 360° Cockpit Viewer */

.sc-cockpit-360 {
  position: relative;
  background: var(--sc-bg-card, #1e293b);
  border: 1px solid var(--sc-border, #334155);
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 1.5rem 0;
}

.sc-cockpit-360__canvas {
  display: block;
  width: 100%;
  height: auto;
  outline: none;
}

/* Controls */
.sc-cockpit-360__controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 5;
}

.sc-cockpit-360__btn {
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 0.4rem;
  color: var(--sc-text, #e2e8f0);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sc-cockpit-360__btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--sc-accent, #f59e0b);
}

.sc-cockpit-360__btn--active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--sc-accent, #f59e0b);
  color: var(--sc-accent, #f59e0b);
}

/* Loading */
.sc-cockpit-360__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--sc-bg-card, #1e293b);
  z-index: 10;
}

.sc-cockpit-360__loading span {
  color: var(--sc-text-muted, #94a3b8);
  font-size: 0.9rem;
}

.sc-cockpit-360__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--sc-border, #334155);
  border-top-color: var(--sc-accent, #f59e0b);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

/* Fullscreen */
.sc-cockpit-360:fullscreen {
  border-radius: 0;
  background: #000;
}

.sc-cockpit-360:fullscreen .sc-cockpit-360__canvas {
  width: 100vw;
  height: 100vh;
}

@media (max-width: 768px) {
  .sc-cockpit-360__controls {
    flex-direction: row;
    top: auto;
    bottom: 0.5rem;
    right: 0.5rem;
  }
}
