/* TV Service Comparison Pro - Main CSS */
/* Reset and Base */
.tvsc-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Container */
.tvsc-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
}

/* Page Header */
.tvsc-header {
    padding: 50px 20px 30px;
    text-align: center;
}

.tvsc-header h1 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.tvsc-header p {
    margin: 0;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

.tvsc-divider {
    height: 1px;
    background: #cbeae9;
    width: 200px;
    margin: 0 auto;
}

/* Section 1: Comparison Setup */
.tvsc-setup-section {
    background: white;
    padding: 40px 30px;
    margin: 0 20px 30px;
    border: 1px solid #cbeae9;
    border-radius: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tvsc-setup-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.tvsc-setup-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
}

.tvsc-provider-section {
    margin-bottom: 40px;
}

.tvsc-provider-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.tvsc-provider-group {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.tvsc-provider-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.tvsc-provider-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #cbeae9;
    border-radius: 6px;
    font-size: 15px;
    background: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

.tvsc-provider-select::-ms-expand {
    display: none;
}

.tvsc-provider-select:focus {
    outline: none;
    border-color: #00a390;
    box-shadow: 0 0 0 2px rgba(0, 163, 144, 0.1);
}

.tvsc-provider-select optgroup {
    font-weight: 600;
    color: #333;
    padding: 5px;
    background: #f8f8f8;
}

.tvsc-provider-select option {
    padding: 8px;
    font-weight: 400;
}

.tvsc-provider-select optgroup option {
    padding-left: 20px;
    color: #666;
}

.tvsc-provider-select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

.tvsc-vs-text {
    font-weight: 600;
    color: #333;
    font-size: 18px;
    padding: 0 15px;
}

.tvsc-add-more {
    text-align: center;
    margin-top: 20px;
}

.tvsc-add-btn {
    background: none;
    border: none;
    color: #0073aa;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tvsc-add-btn:hover {
    color: #00a390;
    background: rgba(0, 163, 144, 0.05);
}

.tvsc-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tvsc-remove-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.2s ease;
}

.tvsc-remove-btn:hover {
    background: #ff5252;
}

.tvsc-compare-btn-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.tvsc-compare-btn {
    background: #00a390;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.tvsc-compare-btn:hover {
    background: #0073aa;
    transform: translateY(-1px);
}

/* Section 2: Loading State */
.tvsc-loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.tvsc-loading p {
    color: #00a390;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.tvsc-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tvsc-loading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00a390;
    border-radius: 50%;
    animation: tvsc-dot-pulse 1.4s ease-in-out infinite;
}

.tvsc-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.tvsc-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tvsc-dot-pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Section 3: Results Intro */
.tvsc-results-intro {
    padding: 40px 20px 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.tvsc-results-title {
    color: #333;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tvsc-results-subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tvsc-results-disclaimer {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Section 3.5: Comparison Summary */
.tvsc-comparison-summary {
    background: #f8f9fa;
    border-left: 4px solid #00a390;
    padding: 20px;
    margin: 20px;
    border-radius: 4px;
    display: none;
}

.tvsc-summary-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tvsc-summary-content {
    color: #555;
}

.tvsc-summary-points {
    margin: 0;
    padding-left: 20px;
}

.tvsc-summary-points li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Section 4: Comparison Table */
.tvsc-results {
    display: none;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tvsc-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border: 1px solid #cbeae9;
    border-radius: 0;
}

.tvsc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.tvsc-comparison-table thead {
    background: #00a390;
}

.tvsc-comparison-table th {
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    color: white;
    border-bottom: none;
    font-size: 15px;
    white-space: nowrap;
}

.tvsc-comparison-table th:first-child {
    text-align: left;
    padding-left: 24px;
    width: 25%;
    background: #00a390;
    color: white;
}

.tvsc-comparison-table th:not(:first-child) {
    background: #00a390;
    color: white;
}

.tvsc-comparison-table td {
    padding: 18px 16px;
    text-align: center;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.4;
}

.tvsc-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #444;
    padding-left: 24px;
    background: white;
}

.tvsc-comparison-table tr:last-child td {
    border-bottom: none;
}

.tvsc-comparison-table tr:nth-child(even) td:first-child {
    background: #f9f9f9;
}

/* Best For Labels */
.tvsc-best-for-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.tvsc-best-for-badge {
    background: #e8f4f3;
    color: #00a390;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tvsc-mobile-best-for {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tvsc-mobile-best-for-badge {
    background: #e8f4f3;
    color: #00a390;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Price Breakdown */
.tvsc-price-breakdown {
    font-size: 14px;
}

.tvsc-price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tvsc-price-label {
    color: #666;
    font-weight: 500;
}

.tvsc-price-value {
    color: #333;
    font-weight: 600;
}

.tvsc-promo-price {
    color: #00a390;
    text-decoration: line-through;
}

.tvsc-mobile-price-breakdown {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tvsc-mobile-price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tvsc-mobile-price-label {
    color: #666;
    font-size: 14px;
}

.tvsc-mobile-price-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.tvsc-mobile-price-note {
    color: #888;
    font-size: 13px;
}

/* Feature Matrix */
.tvsc-feature-matrix-header {
    background: #f8f9fa !important;
}

.tvsc-feature-matrix-header td {
    font-weight: 600;
    color: #333;
    padding: 15px 24px !important;
    border-bottom: 2px solid #eaeaea;
}

.tvsc-feature-matrix-row td:first-child {
    font-weight: 500;
    color: #555;
}

.tvsc-feature-matrix-cell {
    font-size: 18px;
}

.tvsc-feature-yes {
    color: #00a390;
    font-weight: bold;
}

.tvsc-feature-no {
    color: #dc3545;
    font-weight: bold;
}

.tvsc-mobile-feature-matrix {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tvsc-mobile-feature-matrix-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 15px;
}

.tvsc-mobile-feature-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tvsc-mobile-feature-matrix-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.tvsc-mobile-feature-label {
    color: #666;
    font-size: 13px;
}

.tvsc-mobile-feature-value {
    color: #333;
    font-size: 14px;
}

/* Additional features - hidden by default */
.tvsc-additional-feature {
    display: none;
}

/* Sign-up row */
.tvsc-signup-row td {
    text-align: center !important;
    padding: 25px !important;
    background: #f9f9f9 !important;
    border-top: 2px solid #eaeaea !important;
}

.tvsc-signup-btn {
    background: #00a390;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 160px;
    justify-content: center;
}

.tvsc-signup-btn:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
}

.tvsc-load-more-row td {
    text-align: center !important;
    padding: 20px !important;
    background: #f9f9f9 !important;
}

.tvsc-load-more-btn {
    background: none;
    border: 1px solid #00a390;
    color: #00a390;
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tvsc-load-more-btn:hover {
    background: #00a390;
    color: white;
}

.tvsc-trust-score {
    font-weight: 600;
    font-size: 15px;
}

.tvsc-trust-good {
    color: #00a390;
}

.tvsc-trust-medium {
    color: #f39c12;
}

.tvsc-trust-low {
    color: #e74c3c;
}

.tvsc-warning-icon {
    color: #f39c12;
    cursor: help;
    position: relative;
    font-weight: 500;
}

.tvsc-price-note {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* Section 5: Winner Section */
.tvsc-winner-section {
    background: white;
    border: 1px solid #cbeae9;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}

.tvsc-winner-badge {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.tvsc-winner-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tvsc-winner-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Section 6: Footnotes */
.tvsc-footnotes {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 20px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: none;
}

/* Mobile View */
.tvsc-mobile-view {
    display: none;
}

.tvsc-mobile-service {
    background: white;
    border: 1px solid #cbeae9;
    padding: 25px;
    margin-bottom: 20px;
}

.tvsc-mobile-service-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tvsc-mobile-service-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.tvsc-mobile-service-type {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f9f8;
    color: #00a390;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.tvsc-mobile-feature {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tvsc-mobile-feature:last-child {
    border-bottom: none;
}

.tvsc-mobile-feature-label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.tvsc-mobile-feature-value {
    color: #333;
    text-align: right;
    font-size: 14px;
    max-width: 60%;
    line-height: 1.4;
}

.tvsc-mobile-additional {
    display: none;
}

.tvsc-mobile-signup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.tvsc-mobile-signup-btn {
    background: #00a390;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
}

.tvsc-mobile-signup-btn:hover {
    background: #0073aa;
    color: white;
}

.tvsc-mobile-expand {
    text-align: center;
    margin-top: 25px;
}

.tvsc-mobile-expand-btn {
    background: none;
    border: 1px solid #cbeae9;
    color: #0073aa;
    padding: 12px 25px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tvsc-mobile-expand-btn:hover {
    border-color: #00a390;
    color: #00a390;
}

/* Responsive */
@media (max-width: 768px) {
    .tvsc-header h1 {
        font-size: 28px;
    }
    
    .tvsc-header p {
        font-size: 16px;
    }
    
    .tvsc-setup-section {
        padding: 30px 20px;
        margin: 0 15px 20px;
    }
    
    .tvsc-provider-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .tvsc-provider-group {
        width: 100%;
        max-width: none;
    }
    
    .tvsc-vs-text {
        order: 3;
        padding: 10px 0;
    }
    
    .tvsc-comparison-table {
        display: none;
    }
    
    .tvsc-mobile-view {
        display: block;
    }
    
    .tvsc-winner-section {
        padding: 25px 20px;
        margin: 0 15px 30px;
    }
    
    .tvsc-results-title {
        font-size: 24px;
    }
    
    .tvsc-results {
        padding: 0 15px 30px;
    }
    
    .tvsc-mobile-feature-matrix-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tvsc-header {
        padding: 40px 15px 25px;
    }
    
    .tvsc-header h1 {
        font-size: 24px;
    }
    
    .tvsc-compare-btn {
        width: 100%;
        padding: 16px;
    }
    
    .tvsc-mobile-service {
        padding: 20px;
    }
    
    .tvsc-mobile-signup-btn {
        width: 100%;
    }
    
    .tvsc-best-for-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}