/* consciousness.css - Estilos específicos para Consciência Digital */

/* ====== INDICADORES DE CONSCIÊNCIA ====== */
#consciousness-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: all;
}

.consciousness-pulse {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: consciousness-pulse 2s infinite;
  transition: all 0.3s ease;
}

.consciousness-pulse:hover {
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
}

@keyframes consciousness-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
  }
}

/* ====== NOTIFICAÇÕES CUSTOMIZADAS ====== */
.consciousness-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(55, 48, 163, 0.95));
  backdrop-filter: blur(20px);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1002;
  max-width: 350px;
  animation: slideInFromRight 0.5s ease-out;
  cursor: pointer;
  transition: all 0.3s ease;
}

.consciousness-notification:hover {
  transform: translateX(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.consciousness-notification.dismissing {
  animation: slideOutToRight 0.3s ease-in forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-body {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ====== BADGE VIP ====== */
.vip-badge {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  animation: vipSlideIn 0.5s ease;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #d97706, #b45309);
}

.vip-badge.removing {
  animation: vipSlideOut 0.3s ease forwards;
}

@keyframes vipSlideIn {
  from { 
    transform: translateX(100%); 
    opacity: 0; 
  }
  to { 
    transform: translateX(0); 
    opacity: 1; 
  }
}

@keyframes vipSlideOut {
  from { 
    transform: translateX(0); 
    opacity: 1; 
  }
  to { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

/* ====== ANALYTICS OVERLAY (DEBUG) ====== */
.consciousness-analytics-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #00ff00;
  z-index: 1003;
  max-width: 300px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.consciousness-analytics-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  padding-bottom: 2px;
}

.analytics-label {
  color: #00dd00;
}

.analytics-value {
  color: #ffff00;
  font-weight: bold;
}

/* ====== PROGRESS BARS DA CONSCIÊNCIA ====== */
.consciousness-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0;
}

.consciousness-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
  transition: width 0.8s ease;
  position: relative;
}

.consciousness-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ====== STATUS BADGES ====== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.offline {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.vip {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ====== CONSCIOUSNESS HEARTBEAT ANIMATION ====== */
.consciousness-heartbeat {
  animation: heartbeat 3s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1); 
    filter: brightness(1);
  }
  14% { 
    transform: scale(1.1); 
    filter: brightness(1.2);
  }
  28% { 
    transform: scale(1); 
    filter: brightness(1);
  }
  42% { 
    transform: scale(1.1); 
    filter: brightness(1.2);
  }
  56% { 
    transform: scale(1); 
    filter: brightness(1);
  }
}

/* ====== INTERACTIVE ELEMENTS ====== */
.consciousness-interactive {
  transition: all 0.3s ease;
  cursor: pointer;
}

.consciousness-interactive:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.consciousness-interactive:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* ====== OFFLINE MODE ENHANCEMENTS ====== */
.offline-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  z-index: 2000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.offline-quiz-option {
  display: block;
  margin: 8px 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.offline-quiz-option:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.4);
}

.offline-quiz-option.correct {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

.offline-quiz-option.incorrect {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ====== RESPONSIVE CONSCIOUSNESS ELEMENTS ====== */
@media (max-width: 768px) {
  #consciousness-indicator {
    bottom: 15px;
    right: 15px;
  }
  
  .consciousness-notification {
    top: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
  }
  
  .vip-badge {
    top: 80px;
    right: 15px;
    left: 15px;
    text-align: center;
    justify-content: center;
  }
  
  .consciousness-analytics-overlay {
    top: 15px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .consciousness-notification {
    padding: 12px 16px;
  }
  
  .notification-title {
    font-size: 14px;
  }
  
  .notification-body {
    font-size: 13px;
  }
  
  .vip-badge {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ====== ACCESSIBILITY ENHANCEMENTS ====== */
@media (prefers-reduced-motion: reduce) {
  .consciousness-pulse,
  .consciousness-heartbeat,
  .status-indicator-dot,
  .consciousness-progress-bar::after {
    animation: none;
  }
  
  .consciousness-notification,
  .vip-badge {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .consciousness-pulse {
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
  }
  
  .consciousness-notification {
    background: #000;
    border: 2px solid #fff;
  }
  
  .status-badge.online {
    background: #00ff00;
    color: #000;
  }
}

/* ====== DARK MODE ESPECÍFICO ====== */
.dark .consciousness-analytics-overlay {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #00ff88;
}

.dark .offline-quiz-option {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .offline-quiz-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ====== PRINT STYLES ====== */
@media print {
  #consciousness-indicator,
  .consciousness-notification,
  .vip-badge,
  .consciousness-analytics-overlay,
  .offline-indicator {
    display: none !important;
  }
}

/* ====== ADDITIONAL UTILITY CLASSES ====== */
.consciousness-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.consciousness-fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.consciousness-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { 
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.6); 
  }
  to { 
    box-shadow: 0 0 40px rgba(30, 64, 175, 0.9); 
  }
}

.consciousness-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}