/* 
   COMPONENTS.CSS
   Reusable UI components: Badges, Buttons, Toasts, Cards, and Loaders
*/

/* ========== SOFT BADGES ========== */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
}

.bg-primary-soft { background: rgba(67, 56, 202, 0.08) !important; color: var(--primary) !important; }
.bg-success-soft { background: rgba(16, 185, 129, 0.08) !important; color: #059669 !important; }
.bg-warning-soft { background: rgba(245, 158, 11, 0.08) !important; color: #D97706 !important; }
.bg-danger-soft { background: rgba(244, 63, 94, 0.08) !important; color: #BE123C !important; }
.bg-info-soft { background: rgba(14, 165, 233, 0.08) !important; color: #0284C7 !important; }

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
}

.copy-btn {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* ========== TOASTS ========== */
.premium-toast {
    background: var(--bg-panel);
    border: 1px solid var(--primary);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========== OFFER CARDS ========== */
.offer-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -10px rgba(79, 70, 229, 0.4);
}

/* ========== SKELETON LOADERS ========== */
@keyframes skeleton-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.skeleton-row td {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-bottom: 8px solid white !important;
}

.skeleton-text {
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    width: 80%;
    margin: 0 auto;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.row-fade-in {
    animation: fadeInUp 0.5s ease backwards;
}

/* ========== MISC UTILITIES ========== */
.leads-stats-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

.url-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}
