/* Campaign Stats Widget Styles */

.campaign-stats-widget {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(0, 122, 255, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.campaign-stats-widget h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.widget-intro {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

/* Stats Grid (for customers with history) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.highlight {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(255, 255, 255, 1));
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5cf6;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-comparison {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Benchmark Grid (for prospects) */
.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.benchmark-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benchmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #8b5cf6;
}

.benchmark-pub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.benchmark-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.benchmark-stat {
    text-align: center;
}

.benchmark-value {
    font-size: 2rem;
    font-weight: 700;
    color: #8b5cf6;
}

.benchmark-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.benchmark-meta {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Widget Actions */
.widget-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-link:hover {
    background: rgba(139, 92, 246, 0.1);
    text-decoration: none;
}

/* Expanded Sections */
.campaign-list,
.tier-breakdown,
.sample-list {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.campaign-list h4,
.tier-breakdown h4,
.sample-list h4 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.campaign-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.campaign-item:last-child {
    border-bottom: none;
}

.campaign-item:hover {
    background: rgba(139, 92, 246, 0.03);
}

.campaign-subject {
    font-weight: 600;
    color: #1a1a1a;
}

.campaign-date {
    font-size: 0.875rem;
    color: #666;
}

.campaign-metric {
    text-align: center;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b5cf6;
}

.metric-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Tier Badges */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tier-exceptional {
    background: #10b981;
    color: white;
}

.tier-excellent {
    background: #3b82f6;
    color: white;
}

.tier-above-average {
    background: #8b5cf6;
    color: white;
}

.tier-below-average {
    background: #f59e0b;
    color: white;
}

.tier-needs-attention {
    background: #ef4444;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid,
    .benchmark-grid {
        grid-template-columns: 1fr;
    }

    .campaign-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .campaign-metric {
        text-align: left;
    }
}
