/* ============================================================
   POPOMUNDO — energy_panel.css  (v1.3)
   Enerji boost paneli stilleri.
   components.css'e ekleyin veya ayrı dosya olarak import edin.
   ============================================================ */

/* ── Panel backdrop + kutu ── */
.energy-boost-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.energy-boost-panel.hidden { display: none; }

.ebp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.ebp-box {
  position: relative;
  z-index: 1;
  background: var(--clr-surface, #1e1e2e);
  border: 1px solid var(--clr-border, #3d3d5c);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  width: min(480px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  animation: ebp-in 0.2s ease-out;
}

@keyframes ebp-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Header ── */
.ebp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ebp-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-text, #e0e0f0);
}

/* ── Enerji bar ── */
.ebp-energy-bar {
  background: var(--clr-surface-2, #2a2a40);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ebp-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.ebp-energy-text {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text-muted, #8888aa);
  margin-bottom: 18px;
}

/* ── Kartlar ── */
.ebp-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ebp-card {
  background: var(--clr-surface-2, #2a2a40);
  border: 1px solid var(--clr-border, #3d3d5c);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s;
}
.ebp-card:hover { border-color: var(--clr-primary, #7b5cfa); }

.ebp-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ebp-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ebp-card-info { min-width: 0; }
.ebp-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text, #e0e0f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ebp-card-desc {
  font-size: 0.78rem;
  color: var(--clr-text-muted, #8888aa);
  margin-top: 2px;
}

.ebp-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ebp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-muted, #8888aa);
  background: var(--clr-surface, #1e1e2e);
  border: 1px solid var(--clr-border, #3d3d5c);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Buton renk varyantları */
.btn-warning {
  background: #f39c12;
  color: #fff;
}
.btn-warning:hover { background: #e67e22; }

/* ── Loading / error ── */
.ebp-loading, .ebp-error {
  text-align: center;
  padding: 24px;
  color: var(--clr-text-muted, #8888aa);
  font-size: 0.9rem;
}
