/* ============================================
   Leadtify UI - Design System
   Matches UI-PROTOTYPE/assets/styles.css
   ============================================ */

/* -- Base Reset & Typography -- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F0F2F5;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* -- Custom Utilities -- */
.gradient-text {
    background: linear-gradient(135deg, #1877F2, #42B72A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.card-shadow:hover {
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.1);
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* -- Scrollbar -- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* -- Animation Utilities -- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-up-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-fade-in-up-delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* -- Locked/Masked Data Style -- */
.data-locked {
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    position: relative;
}

.data-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.15), transparent);
    border-radius: 4px;
}

/* -- Badge Type Colors -- */
.badge-fanpage {
    background: #00ACC1;
}

.badge-group {
    background: #28A745;
}

.badge-post {
    background: #6F42C1;
}

.badge-profile {
    background: #FD7E14;
}

.badge-premium {
    background: #1877F2;
}

/* -- Table Styles -- */
.proto-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.proto-table thead th {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.proto-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.proto-table tbody tr:hover {
    background: #f8fafc;
}

/* -- Stat Card -- */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* -- Stripe Element -- */
.StripeElement {
    padding: 12px;
}

.StripeElement--focus {
    border-color: #1877F2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.StripeElement--invalid {
    border-color: #ef4444;
}

/* -- Line Clamp -- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}