/**
 * Camera Panel Styling - Premium Minimal Neutral Dark Theme
 * Global Earthquake Monitoring Livestream Cameras
 */

/* Region Selector Dropdown */
.camera-region-selector {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-region-selector:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.3);
}

.camera-region-selector:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Camera Metadata Display */
.camera-metadata {
  margin-top: 15px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metadata-row:last-child {
  border-bottom: none;
}

.metadata-label {
  font-weight: 500;
  color: #a0a0a0;
  font-size: 13px;
}

.metadata-value {
  color: #e0e0e0;
  text-align: right;
  font-size: 13px;
}

/* Priority Badges */
.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-1 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.priority-2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.priority-3 {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Region Badges */
.region-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.region-caribbean {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.region-turkey-greece {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.region-indonesia {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.region-chile {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Camera Panel Container */
#camera-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 800px;
  max-height: calc(100vh - 100px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 10000;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Camera Panel Header */
.camera-panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.1);
}

.camera-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.camera-panel-icon {
  font-size: 20px;
}

.camera-panel-label {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.camera-counter-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.camera-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.camera-close-btn:hover {
  color: #f1f5f9;
}

/* Region Filter Section */
.camera-region-filter-section {
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.camera-region-filter-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Video Player Container */
.camera-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.camera-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Camera Info Section */
.camera-info-section {
  padding: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.camera-title {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.camera-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13px;
}

.camera-info-item-label {
  color: #64748b;
  margin-bottom: 4px;
}

.camera-info-item-value {
  color: #cbd5e1;
}

/* Scientific Rationale Section */
.camera-scientific-section {
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.camera-scientific-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.camera-scientific-text {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

/* Navigation Buttons */
.camera-navigation {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.camera-nav-btn {
  flex: 1;
  padding: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  color: #3b82f6;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.camera-nav-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.camera-nav-btn:active {
  transform: translateY(0);
}

.camera-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.camera-nav-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

