@import url('dragon.css');

/* Main page layout, typography and general styles */
:root {
  --bg-gradient: radial-gradient(circle at center, #1e1b29 0%, #0d0b11 100%);
  --accent-color: #d63031;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-gradient);
  color: #f5f6fa;
  overflow: hidden;
  position: relative;
}

/* Background starry atmosphere */
.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  opacity: 0.25;
  z-index: 1;
}

/* Main cinematic card container */
.companion-card {
  position: relative;
  z-index: 10;
  width: 580px;
  background: rgba(30, 27, 41, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 118, 117, 0.2);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
              inset 0 0 40px rgba(255, 118, 117, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.companion-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 118, 117, 0.4);
}

/* Upper Badge */
.badge {
  background: linear-gradient(90deg, #d63031, #e17055);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Typography styles */
#title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 2.25rem;
  margin: 1rem 0 0.5rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 30%, #e17055 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#tagline {
  color: #a4b0be;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

/* Info grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.companion-card:hover .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 118, 117, 0.15);
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  color: #747d8c;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fdcb6e;
}

/* Dynamic glow helper classes for status changes */
.glow-gold { color: #fdcb6e !important; }
.glow-red { color: #ff7675 !important; }
.glow-purple { color: #a29bfe !important; }

/* Interactive buttons */
.actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 2rem;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #fff;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 48, 49, 0.6);
  background: linear-gradient(135deg, #ff8a88 0%, #e63946 100%);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
  background: linear-gradient(135deg, #7d6dfa 0%, #b3adff 100%);
}

/* Console system log panel */
.console-panel {
  width: 100%;
  background: #0f0d16;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: left;
  font-family: monospace;
  overflow: hidden;
}

.console-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #747d8c;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #2ed573;
  border-radius: 50%;
  display: inline-block;
}

.pulsing {
  animation: pulseOk 1.5s infinite alternate;
}

@keyframes pulseOk {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.console-body {
  padding: 12px;
  font-size: 0.75rem;
  color: #2ed573;
  line-height: 1.4;
  min-height: 44px;
}
