/* Universal Comparison Tables - Style Presets */

/* Modern Preset */
.ucomp-preset-modern {
    --ucomp-primary-color: #3b82f6;
    --ucomp-secondary-color: #64748b;
    --ucomp-success-color: #10b981;
    --ucomp-background-color: #ffffff;
    --ucomp-border-color: #e2e8f0;
    --ucomp-text-color: #1e293b;
    --ucomp-muted-color: #64748b;
    --ucomp-border-radius: 8px;
}

.ucomp-preset-modern .ucomp-table {
    border: 1px solid var(--ucomp-border-color);
    background: var(--ucomp-background-color);
    border-radius: var(--ucomp-border-radius);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.ucomp-preset-modern .ucomp-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--ucomp-text-color);
    border-bottom: 2px solid var(--ucomp-primary-color);
    font-weight: 600;
}

.ucomp-preset-modern .ucomp-table td {
    border-bottom: 1px solid var(--ucomp-border-color);
    color: var(--ucomp-text-color);
}

.ucomp-preset-modern .ucomp-table tbody tr:hover {
    background: #f8fafc;
}

.ucomp-preset-modern .ucomp-affiliate-name {
    color: var(--ucomp-text-color);
}

.ucomp-preset-modern .ucomp-price {
    color: var(--ucomp-success-color);
    font-weight: 700;
}

.ucomp-preset-modern .ucomp-cta-button {
    background: var(--ucomp-primary-color);
    border-color: var(--ucomp-primary-color);
    border-radius: var(--ucomp-border-radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.ucomp-preset-modern .ucomp-cta-button:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(59 130 246 / 0.4);
}

.ucomp-preset-modern .ucomp-card {
    border: 1px solid var(--ucomp-border-color);
    border-radius: var(--ucomp-border-radius);
    background: var(--ucomp-background-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.ucomp-preset-modern .ucomp-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--ucomp-border-color);
}

/* Card Preset */
.ucomp-preset-card {
    --ucomp-primary-color: #10b981;
    --ucomp-secondary-color: #6b7280;
    --ucomp-success-color: #059669;
    --ucomp-background-color: #ffffff;
    --ucomp-card-bg: #f9fafb;
    --ucomp-border-color: #d1d5db;
    --ucomp-text-color: #111827;
    --ucomp-muted-color: #6b7280;
    --ucomp-border-radius: 12px;
}

.ucomp-preset-card .ucomp-cards-grid {
    gap: 32px;
}

.ucomp-preset-card .ucomp-card {
    border: none;
    border-radius: var(--ucomp-border-radius);
    background: var(--ucomp-background-color);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ucomp-preset-card .ucomp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.ucomp-preset-card .ucomp-card-header {
    background: var(--ucomp-card-bg);
    padding: 24px;
    text-align: center;
}

.ucomp-preset-card .ucomp-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ucomp-text-color);
    margin-bottom: 12px;
}

.ucomp-preset-card .ucomp-card-body {
    padding: 24px;
}

.ucomp-preset-card .ucomp-card-price .ucomp-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--ucomp-primary-color);
}

.ucomp-preset-card .ucomp-cta-button {
    background: var(--ucomp-primary-color);
    border: none;
    border-radius: var(--ucomp-border-radius);
    font-weight: 600;
    padding: 16px 32px;
    font-size: 14px;
}

.ucomp-preset-card .ucomp-cta-button:hover {
    background: var(--ucomp-success-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(16 185 129 / 0.4);
}

.ucomp-preset-card .ucomp-features li:before {
    color: var(--ucomp-primary-color);
}

.ucomp-preset-card .ucomp-bullet {
    background: #d1fae5;
    color: var(--ucomp-success-color);
}

/* Compact Preset */
.ucomp-preset-compact {
    --ucomp-primary-color: #f59e0b;
    --ucomp-secondary-color: #6b7280;
    --ucomp-success-color: #d97706;
    --ucomp-background-color: #ffffff;
    --ucomp-border-color: #e5e7eb;
    --ucomp-text-color: #1f2937;
    --ucomp-muted-color: #6b7280;
    --ucomp-border-radius: 4px;
}

.ucomp-preset-compact .ucomp-table {
    font-size: 13px;
    border: 1px solid var(--ucomp-border-color);
    border-radius: var(--ucomp-border-radius);
}

.ucomp-preset-compact .ucomp-table th {
    background: #f9fafb;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ucomp-secondary-color);
    border-bottom: 1px solid var(--ucomp-border-color);
}

.ucomp-preset-compact .ucomp-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f3f4f6;
}

.ucomp-preset-compact .ucomp-affiliate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ucomp-text-color);
}

.ucomp-preset-compact .ucomp-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ucomp-primary-color);
}

.ucomp-preset-compact .ucomp-cta-button {
    background: var(--ucomp-primary-color);
    border-color: var(--ucomp-primary-color);
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--ucomp-border-radius);
    font-weight: 600;
}

.ucomp-preset-compact .ucomp-cta-button:hover {
    background: var(--ucomp-success-color);
    border-color: var(--ucomp-success-color);
}

.ucomp-preset-compact .ucomp-features {
    font-size: 12px;
}

.ucomp-preset-compact .ucomp-features li:before {
    color: var(--ucomp-primary-color);
}

.ucomp-preset-compact .ucomp-bullet {
    background: #fef3c7;
    color: var(--ucomp-success-color);
    font-size: 10px;
    padding: 3px 6px;
}

.ucomp-preset-compact .ucomp-rating-text {
    font-size: 11px;
}

/* Striped Preset */
.ucomp-preset-striped {
    --ucomp-primary-color: #8b5cf6;
    --ucomp-secondary-color: #6b7280;
    --ucomp-success-color: #7c3aed;
    --ucomp-background-color: #ffffff;
    --ucomp-stripe-color: #f8fafc;
    --ucomp-border-color: #e2e8f0;
    --ucomp-text-color: #1e293b;
    --ucomp-muted-color: #64748b;
    --ucomp-border-radius: 6px;
}

.ucomp-preset-striped .ucomp-table {
    border: 1px solid var(--ucomp-border-color);
    border-radius: var(--ucomp-border-radius);
}

.ucomp-preset-striped .ucomp-table th {
    background: var(--ucomp-primary-color);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

.ucomp-preset-striped .ucomp-table tbody tr:nth-child(odd) {
    background: var(--ucomp-stripe-color);
}

.ucomp-preset-striped .ucomp-table tbody tr:nth-child(even) {
    background: var(--ucomp-background-color);
}

.ucomp-preset-striped .ucomp-table tbody tr:hover {
    background: #f1f5f9 !important;
}

.ucomp-preset-striped .ucomp-table td {
    border-bottom: 1px solid var(--ucomp-border-color);
}

.ucomp-preset-striped .ucomp-affiliate-name {
    color: var(--ucomp-text-color);
}

.ucomp-preset-striped .ucomp-price {
    color: var(--ucomp-primary-color);
    font-weight: 700;
}

.ucomp-preset-striped .ucomp-cta-button {
    background: var(--ucomp-primary-color);
    border-color: var(--ucomp-primary-color);
    border-radius: var(--ucomp-border-radius);
}

.ucomp-preset-striped .ucomp-cta-button:hover {
    background: var(--ucomp-success-color);
    border-color: var(--ucomp-success-color);
    box-shadow: 0 4px 12px rgb(139 92 246 / 0.3);
}

.ucomp-preset-striped .ucomp-features li:before {
    color: var(--ucomp-primary-color);
}

.ucomp-preset-striped .ucomp-bullet {
    background: #ede9fe;
    color: var(--ucomp-success-color);
}

.ucomp-preset-striped .ucomp-card {
    border: 1px solid var(--ucomp-border-color);
}

.ucomp-preset-striped .ucomp-card-header {
    background: var(--ucomp-primary-color);
    color: white;
}

.ucomp-preset-striped .ucomp-card-title {
    color: white;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ucomp-table-container {
        color: #e2e8f0;
    }
    
    .ucomp-preset-modern {
        --ucomp-background-color: #1e293b;
        --ucomp-border-color: #334155;
        --ucomp-text-color: #f1f5f9;
        --ucomp-muted-color: #94a3b8;
    }
    
    .ucomp-preset-card {
        --ucomp-background-color: #111827;
        --ucomp-card-bg: #1f2937;
        --ucomp-border-color: #374151;
        --ucomp-text-color: #f9fafb;
        --ucomp-muted-color: #9ca3af;
    }
    
    .ucomp-preset-compact {
        --ucomp-background-color: #1f2937;
        --ucomp-border-color: #374151;
        --ucomp-text-color: #f3f4f6;
        --ucomp-muted-color: #9ca3af;
    }
    
    .ucomp-preset-striped {
        --ucomp-background-color: #1e293b;
        --ucomp-stripe-color: #334155;
        --ucomp-border-color: #475569;
        --ucomp-text-color: #f1f5f9;
        --ucomp-muted-color: #94a3b8;
    }
}

/* Responsive preset adjustments */
@media (max-width: 768px) {
    .ucomp-preset-card .ucomp-card-header,
    .ucomp-preset-card .ucomp-card-body,
    .ucomp-preset-card .ucomp-card-footer {
        padding: 20px;
    }
    
    .ucomp-preset-card .ucomp-card-title {
        font-size: 18px;
    }
    
    .ucomp-preset-card .ucomp-card-price .ucomp-price {
        font-size: 24px;
    }
    
    .ucomp-preset-compact .ucomp-table {
        font-size: 12px;
    }
    
    .ucomp-preset-compact .ucomp-table th,
    .ucomp-preset-compact .ucomp-table td {
        padding: 8px 6px;
    }
}

/* Animation presets */
@keyframes ucomp-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ucomp-scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.ucomp-preset-modern .ucomp-table tbody tr,
.ucomp-preset-striped .ucomp-table tbody tr {
    animation: ucomp-fadeIn 0.3s ease forwards;
}

.ucomp-preset-card .ucomp-card {
    animation: ucomp-scaleIn 0.4s ease forwards;
}

.ucomp-preset-card .ucomp-card:nth-child(2) { animation-delay: 0.1s; }
.ucomp-preset-card .ucomp-card:nth-child(3) { animation-delay: 0.2s; }
.ucomp-preset-card .ucomp-card:nth-child(4) { animation-delay: 0.3s; }

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ucomp-preset-modern .ucomp-table tbody tr,
    .ucomp-preset-striped .ucomp-table tbody tr,
    .ucomp-preset-card .ucomp-card {
        animation: none;
    }
}