/**
 * blk-presale.css — BlockHaus Presale Widget Styles
 * Designed to blend with the existing dark glassmorphic site aesthetic.
 */

/* ─── WALLET STATUS ──────────────────────────────────────────────────────── */

#blk-wallet-address,
#blk-usdt-balance {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Inter', sans-serif;
}

.blk-connected {
  background: linear-gradient(135deg, #00d4aa, #00a880) !important;
  color: #fff !important;
}

/* ─── FOMO TRACKER ───────────────────────────────────────────────────────── */

#blk-phase-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

#blk-phase-price {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Progress bar container — add this to your HTML */
.blk-progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
  margin: 10px 0;
}

#blk-phase-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4aa, #00a880);
  border-radius: 100px;
  transition: width 0.8s ease;
  width: 0%;
}

#blk-phase-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: #00d4aa;
}

#blk-phase-raised,
#blk-phase-target {
  font-weight: 600;
  color: #fff;
}

#blk-phase-remaining {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: 4px;
}

#blk-presale-status {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #00d4aa;
  animation: blk-pulse 2s infinite;
}

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

/* ─── ROUND PILLS ────────────────────────────────────────────────────────── */

[data-round] {
  transition: all 0.3s ease;
  position: relative;
}

.blk-round--sold-out {
  opacity: 0.45;
  text-decoration: line-through;
}

.blk-round--sold-out::after {
  content: attr(data-badge);
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.6rem;
  font-weight: 700;
  background: #ff4444;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.blk-round--live {
  border-color: #00d4aa !important;
  color: #00d4aa !important;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

.blk-round--live::after {
  content: attr(data-badge);
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.6rem;
  font-weight: 700;
  background: #00d4aa;
  color: #000;
  padding: 2px 5px;
  border-radius: 4px;
  animation: blk-pulse 2s infinite;
}

.blk-round--upcoming {
  opacity: 0.4;
}

/* ─── LIVE PURCHASE FEED ─────────────────────────────────────────────────── */

#blk-recent-trades {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-height: 160px;
  overflow: hidden;
}

.blk-feed-item {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 2px solid #00d4aa;
  animation: blk-slide-in 0.3s ease;
}

@keyframes blk-slide-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0);    }
}

.blk-feed-addr {
  font-family: 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.85);
}

.blk-feed-blk {
  font-weight: 700;
  color: #00d4aa;
}

.blk-feed-usdt {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── BUY WIDGET ─────────────────────────────────────────────────────────── */

#blk-usdt-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

#blk-usdt-input:focus {
  border-color: #00d4aa;
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.15);
}

#blk-usdt-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#blk-blk-preview {
  font-size: 0.85rem;
  color: #00d4aa;
  font-weight: 600;
  display: block;
  margin: 6px 0;
  min-height: 1.2em;
}

#blk-buy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #00d4aa, #00a880);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

#blk-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.35);
}

#blk-buy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ─── STATUS MESSAGES ────────────────────────────────────────────────────── */

.blk-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  display: none;
}

.blk-status--info {
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #00d4aa;
}

.blk-status--success {
  background: rgba(0, 255, 120, 0.1);
  border: 1px solid rgba(0, 255, 120, 0.3);
  color: #00ff78;
}

.blk-status--error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.25);
  color: #ff6b6b;
}
