/* ========================================
   LCARS INTERFACE - STAR TREK TNG STYLE
   ======================================== */

/* Reset e Variáveis */
:root {
  /* Cores LCARS Oficiais */
  --lcars-orange: #FF9966;
  --lcars-orange-dark: #CC6633;
  --lcars-purple: #CC99CC;
  --lcars-blue: #9999FF;
  --lcars-blue-light: #99CCFF;
  --lcars-red: #FF6666;
  --lcars-yellow: #FFFF99;
  --lcars-green: #99CC66;
  --lcars-tan: #CC9966;
  --lcars-bg: #000000;
  --lcars-text: #FFCC99;
  --lcars-text-dark: #CC9966;
  
  /* Fonte LCARS */
  --font-lcars: 'Antonio', 'Orbitron', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-lcars);
  background-color: var(--lcars-bg);
  color: var(--lcars-text);
  overflow-x: hidden;
  user-select: none;
}

/* Container Principal */
#lcars-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #000000 0%, #1a0033 100%);
}

#lcars-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.15;
  filter: hue-rotate(20deg);
}

/* ========================================
   HEADER LCARS
   ======================================== */

.lcars-header {
  position: relative;
  z-index: 10;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lcars-bar {
  height: 60px;
  background: var(--lcars-orange);
  border-radius: 30px;
  flex: 1;
  min-width: 100px;
  box-shadow: 0 0 20px rgba(255, 153, 102, 0.5);
  animation: pulse-subtle 3s ease-in-out infinite;
}

.lcars-title-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lcars-pill {
  width: 120px;
  height: 60px;
  border-radius: 30px;
  box-shadow: 0 0 20px currentColor;
}

.lcars-pill.lcars-orange {
  background: var(--lcars-orange);
}

.lcars-text-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lcars-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lcars-orange);
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--lcars-orange);
}

.lcars-subtitle {
  font-size: 1rem;
  color: var(--lcars-text-dark);
  letter-spacing: 2px;
}

.stardate {
  font-size: 1.2rem;
  color: var(--lcars-blue-light);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--lcars-blue);
  animation: pulse-text 2s ease-in-out infinite;
}

/* ========================================
   PAINEL PRINCIPAL
   ======================================== */

#content {
  position: relative;
  z-index: 5;
  padding: 30px;
  max-width: 1400px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,0,51,0.9) 100%);
  border: 3px solid var(--lcars-orange);
  border-radius: 40px;
  margin: 20px auto;
  box-shadow: 
    0 0 30px rgba(255, 153, 102, 0.3),
    inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.lcars-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}

.lcars-corner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lcars-purple);
  box-shadow: 0 0 20px var(--lcars-purple);
  animation: rotate-slow 20s linear infinite;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--lcars-orange);
  text-align: center;
  letter-spacing: 8px;
  text-shadow: 0 0 20px var(--lcars-orange);
  text-transform: uppercase;
}

.blink {
  animation: blink 1.5s ease-in-out infinite;
  color: var(--lcars-red);
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 153, 102, 0.1);
  border-left: 5px solid var(--lcars-orange);
  border-radius: 10px;
}

.welcome-text {
  font-size: 1.5rem;
  color: var(--lcars-text);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.ship-designation {
  font-size: 1rem;
  color: var(--lcars-blue-light);
  letter-spacing: 2px;
}

/* ========================================
   STATUS GRID
   ======================================== */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.status-item {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 20px;
  border: 2px solid var(--lcars-blue);
  text-align: center;
  transition: all 0.3s ease;
}

.status-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(153, 153, 255, 0.4);
  border-color: var(--lcars-orange);
}

.status-icon {
  font-size: 3rem;
  color: var(--lcars-blue);
  margin-bottom: 10px;
}

.status-label {
  font-size: 1rem;
  color: var(--lcars-text-dark);
  letter-spacing: 2px;
  margin: 10px 0;
}

.status-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 10px currentColor;
}

.lcars-green { color: var(--lcars-green); }
.lcars-blue { color: var(--lcars-blue-light); }
.lcars-orange { color: var(--lcars-orange); }
.lcars-red { color: var(--lcars-red); }

/* ========================================
   DATA DISPLAY
   ======================================== */

.data-display {
  margin: 30px 0;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--lcars-orange);
  border-radius: 20px;
  overflow: hidden;
}

.data-header {
  background: var(--lcars-orange);
  color: #000;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  letter-spacing: 2px;
}

.data-label {
  font-size: 1.2rem;
}

.data-badge {
  background: #000;
  color: var(--lcars-orange);
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.lcars-pulse {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.data-content {
  padding: 25px;
  min-height: 150px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--lcars-text);
}

.data-placeholder {
  color: var(--lcars-blue-light);
  font-style: italic;
}

/* ========================================
   LCARS BUTTONS
   ======================================== */

.lcars-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.lcars-button {
  background: var(--lcars-orange);
  border: none;
  padding: 20px 30px;
  color: #000;
  font-size: 1rem;
  font-family: var(--font-lcars);
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lcars-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 30px currentColor;
  filter: brightness(1.2);
}

.lcars-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.button-number {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 900;
}

.button-text {
  flex: 1;
  text-align: center;
}

/* Button Color Variants */
.lcars-button-orange {
  background: var(--lcars-orange);
  color: #000;
}

.lcars-button-blue {
  background: var(--lcars-blue);
  color: #000;
}

.lcars-button-purple {
  background: var(--lcars-purple);
  color: #000;
}

.lcars-button-green {
  background: var(--lcars-green);
  color: #000;
}

.lcars-button-red {
  background: var(--lcars-red);
  color: #FFF;
  animation: pulse-red 2s ease-in-out infinite;
}

.lcars-button-yellow {
  background: var(--lcars-yellow);
  color: #000;
}

/* ========================================
   LCARS TABS
   ======================================== */

.lcars-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
  justify-content: center;
}

.lcars-tab {
  background: var(--lcars-tan);
  color: #000;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lcars-tab:hover {
  background: var(--lcars-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 153, 102, 0.4);
}

.lcars-tab.active {
  background: var(--lcars-orange);
  box-shadow: 
    0 0 20px var(--lcars-orange),
    inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.lcars-footer {
  position: relative;
  z-index: 10;
  padding: 20px;
  margin-top: 40px;
}

.lcars-bar-bottom {
  height: 40px;
  background: var(--lcars-purple);
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(204, 153, 204, 0.5);
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--lcars-text-dark);
  font-size: 1rem;
  letter-spacing: 2px;
}

.footer-separator {
  color: var(--lcars-orange);
  font-weight: 700;
}

/* ========================================
   ALERT OVERLAY
   ======================================== */

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: alert-flash 0.5s ease-in-out infinite;
}

.alert-overlay.hidden {
  display: none;
}

.alert-content {
  background: #000;
  border: 5px solid var(--lcars-red);
  border-radius: 30px;
  padding: 50px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 0 50px var(--lcars-red);
}

.alert-title {
  font-size: 3rem;
  color: var(--lcars-red);
  margin-bottom: 20px;
  text-shadow: 0 0 20px var(--lcars-red);
  animation: blink 0.5s ease-in-out infinite;
}

.alert-message {
  font-size: 1.5rem;
  color: var(--lcars-text);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 153, 102, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 153, 102, 0.8); }
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

@keyframes pulse-red {
  0%, 100% { 
    box-shadow: 0 5px 15px rgba(255, 102, 102, 0.5);
  }
  50% { 
    box-shadow: 0 5px 25px rgba(255, 102, 102, 0.9);
    filter: brightness(1.2);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes alert-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .lcars-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .main-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }
  
  .welcome-text {
    font-size: 1.2rem;
  }
  
  .lcars-header {
    flex-direction: column;
  }
  
  .lcars-bar {
    width: 100%;
  }
  
  #content {
    padding: 20px;
    margin: 10px;
  }
  
  .control-row {
    grid-template-columns: 1fr;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .alert-content {
    padding: 30px;
    margin: 20px;
  }
  
  .alert-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .lcars-button {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  
  .button-number {
    font-size: 1rem;
    padding: 5px 10px;
  }
}
  