/* === Giri Boost — Micro-Offers UI === */

/* Overlay */
.giri-boost-overlay {
  position: fixed; inset: 0; z-index: 2000000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.giri-boost-overlay.visible { opacity: 1; pointer-events: auto; }

/* Modal */
.giri-boost-modal {
  background: var(--bg-card, #1a1a2e); border-radius: 20px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  width: 90%; max-width: 520px; max-height: 80vh;
  overflow-y: auto; box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  transform: translateY(20px); transition: transform 0.3s ease;
}
.giri-boost-overlay.visible .giri-boost-modal { transform: translateY(0); }

.giri-boost-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px; border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.giri-boost-title {
  font-size: 1.2rem; font-weight: 700; color: var(--text, #fff);
}
.giri-boost-close {
  background: none; border: none; color: var(--text-secondary, #888);
  font-size: 1.5rem; cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: background 0.2s;
}
.giri-boost-close:hover { background: var(--bg-hover, rgba(255,255,255,0.1)); }

.giri-boost-body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 12px; }

/* Offer Card */
.giri-boost-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--bg-secondary, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  transition: all 0.2s ease;
}
.giri-boost-card:hover {
  background: var(--bg-hover, rgba(255,255,255,0.08));
  border-color: var(--accent, #6c5ce7);
  transform: translateX(4px);
}
.giri-boost-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.giri-boost-card-info { flex: 1; min-width: 0; }
.giri-boost-card-name { font-weight: 600; color: var(--text, #fff); font-size: 0.95rem; }
.giri-boost-card-desc { color: var(--text-secondary, #888); font-size: 0.8rem; margin-top: 2px; }
.giri-boost-card-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }

/* Buttons */
.giri-boost-btn-buy {
  background: linear-gradient(135deg, var(--accent, #6c5ce7), #a855f7);
  color: #fff; border: none; border-radius: 10px;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.giri-boost-btn-buy:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(108,92,231,0.4); }

.giri-boost-btn-girizzz {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; border: none; border-radius: 10px;
  padding: 6px 12px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.giri-boost-btn-girizzz:hover { transform: scale(1.05); }

/* Separator in upgrade modal */
.giri-boost-separator {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 8px; color: var(--text-secondary, #888); font-size: 0.8rem;
}
.giri-boost-separator::before, .giri-boost-separator::after {
  content: ''; flex: 1; height: 1px; background: var(--border, rgba(255,255,255,0.1));
}
.giri-boost-inject { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

/* Inline Widget (dans les modules) */
.giri-boost-inline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(108,92,231,0.2);
  font-size: 0.82rem; margin: 8px 0;
}
.giri-boost-inline-icon { font-size: 1.1rem; }
.giri-boost-inline-text { color: var(--text, #fff); }
.giri-boost-inline-btn {
  background: var(--accent, #6c5ce7); color: #fff; border: none;
  border-radius: 8px; padding: 4px 12px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: transform 0.2s;
}
.giri-boost-inline-btn:hover { transform: scale(1.08); }

/* Toast */
.giri-boost-toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 2100000;
  padding: 12px 20px; border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  color: #fff; opacity: 0; transform: translateY(10px);
  transition: all 0.3s ease; pointer-events: none;
}
.giri-boost-toast.visible { opacity: 1; transform: translateY(0); }
.giri-boost-toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.giri-boost-toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.giri-boost-toast.info { background: linear-gradient(135deg, #6c5ce7, #a855f7); }

/* Mobile */
@media (max-width: 600px) {
  .giri-boost-modal { width: 95%; max-width: none; border-radius: 16px; }
  .giri-boost-card { flex-wrap: wrap; }
  .giri-boost-card-actions { flex-direction: row; width: 100%; margin-top: 8px; }
  .giri-boost-card-actions button { flex: 1; }
}
