/* JämförelseLabbet Affiliate Styles */

.jc-comparison-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.jc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jc-comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.jc-comparison-table th,
.jc-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.jc-comparison-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.jc-comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.jc-comparison-table tr:hover {
    background: #e9ecef;
}

.jc-best-choice {
    background: #d4edda !important;
    position: relative;
}

.jc-provider-name {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.jc-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.jc-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
}

.jc-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.jc-rating-num {
    color: #666;
    margin-left: 4px;
}

.jc-btn-cta {
    display: inline-block;
    background: #667eea;
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.jc-btn-cta:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.jc-btn-white {
    background: white !important;
    color: #667eea !important;
}

.jc-btn-white:hover {
    background: #f8f9fa !important;
    color: #764ba2 !important;
}

.jc-cta-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.jc-cta-banner h2 {
    color: white;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.jc-cta-banner p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.jc-faq-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.jc-faq-wrapper h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.jc-faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.jc-faq-question {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.jc-faq-answer {
    color: #666;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .jc-comparison-table {
        font-size: 0.85rem;
    }
    
    .jc-comparison-table th,
    .jc-comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .jc-provider-name {
        font-size: 0.95rem;
    }
    
    .jc-price {
        font-size: 1.1rem;
    }
    
    .jc-badge {
        display: block;
        margin-top: 4px;
        margin-left: 0;
    }
}

/* Trust badges */
.jc-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.jc-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Winner box */
.jc-winner-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.jc-winner-box h2 {
    color: white;
    border-bottom: none;
}

.jc-winner-box ul {
    list-style: none;
    padding: 0;
}

.jc-winner-box li {
    padding: 0.5rem 0;
}

.jc-winner-box li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

/* Pros/Cons */
.jc-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.jc-pros, .jc-cons {
    padding: 1.5rem;
    border-radius: 8px;
}

.jc-pros {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.jc-cons {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.jc-pros h4, .jc-cons h4 {
    margin-bottom: 1rem;
}

.jc-pros ul, .jc-cons ul {
    margin: 0;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .jc-pros-cons {
        grid-template-columns: 1fr;
    }
}