/**
 * EETT Price Comparison Frontend Styles
 * Professional and clean design matching the screenshots
 */

.eett-price-comparison-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Main Title */
.eett-main-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 20px 20px 0 20px;
    text-align: left;
}

/* Tab Navigation */
.eett-tab-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 0 20px;
}

.eett-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.eett-tabs li {
    margin: 0;
}

.eett-tab-link {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.eett-tab-link:hover {
    color: #3498db;
    background-color: #f8f9fa;
    text-decoration: none;
}

.eett-tab-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #ffffff;
}

/* Tab Content */
.eett-tab-content {
    min-height: 400px;
}

.eett-tab-panel {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.eett-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Last Update Info */
.eett-last-update {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 12px;
}

.eett-last-update p {
    margin: 0;
    color: #1976d2;
}

/* Filters */
.eett-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.eett-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.eett-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eett-filter-group label {
    font-weight: 500;
    color: #495057;
    font-size: 12px;
}

.eett-filter-select,
.eett-search-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
}

.eett-filter-select:focus,
.eett-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

/* Loading */
.eett-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.eett-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Container */
.eett-results-container {
    background: #ffffff;
}

.eett-table-container {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

/* Price Table */
.eett-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

.eett-price-table thead {
    background: #f8f9fa;
}

.eett-price-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: relative;
    white-space: nowrap;
}


.eett-price-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.eett-price-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.eett-price-table tbody tr:hover {
    background-color: #e3f2fd;
}

/* Table Cells */
.eett-provider-cell {
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
}

.eett-product-cell {
    font-weight: 500;
    min-width: 150px;
}

.eett-product-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.eett-product-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.eett-speed-cell,
.eett-data-cell {
    text-align: center;
    font-weight: 600;
    color: #27ae60;
    min-width: 80px;
}

.eett-price-cell {
    font-weight: 700;
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.eett-details-cell {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
}

.eett-program-type-cell {
    font-weight: 500;
    color: #6c757d;
    min-width: 120px;
}

.eett-type-cell {
    font-weight: 500;
    color: #6c757d;
    min-width: 100px;
}

/* Links */
.eett-external-link {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.eett-external-link:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.eett-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.eett-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Content Area */
.eett-content-area {
    line-height: 1.6;
    font-size: 14px;
    color: #2c3e50;
}

.eett-content-area p {
    margin-bottom: 16px;
}

/* No Results */
.eett-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eett-price-comparison-container {
        margin: 10px 0;
        border-radius: 0;
    }
    
    .eett-main-title {
        font-size: 24px;
        padding: 15px 15px 0 15px;
    }
    
    .eett-tab-navigation {
        padding: 0 15px;
    }
    
    .eett-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .eett-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .eett-tab-link {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .eett-tab-panel {
        padding: 15px;
    }
    
    .eett-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .eett-price-table {
        font-size: 12px;
    }
    
    .eett-price-table th,
    .eett-price-table td {
        padding: 8px 4px;
    }
    
    .eett-details-cell {
        max-width: 200px;
        font-size: 11px;
    }
    
    .eett-external-link {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .eett-main-title {
        font-size: 20px;
    }
    
    .eett-filter-row {
        grid-template-columns: 1fr;
    }
    
    .eett-table-container {
        font-size: 11px;
    }
    
    .eett-price-table th,
    .eett-price-table td {
        padding: 6px 3px;
    }
    
    .eett-details-cell {
        max-width: 150px;
    }
}

/* High contrast theme */
.eett-price-comparison-container.theme-high-contrast {
    border: 2px solid #000;
}

.theme-high-contrast .eett-tab-link {
    color: #000;
    font-weight: 600;
}

.theme-high-contrast .eett-tab-link.active {
    background-color: #000;
    color: #fff;
    border-bottom-color: #000;
}

.theme-high-contrast .eett-price-table {
    border: 2px solid #000;
}

.theme-high-contrast .eett-price-table th {
    background: #000;
    color: #fff;
    border-bottom: 2px solid #000;
}

.theme-high-contrast .eett-price-table td {
    border-bottom: 1px solid #000;
}

/* Print styles */
@media print {
    .eett-filters,
    .eett-tab-navigation {
        display: none;
    }
    
    .eett-tab-panel {
        display: block !important;
    }
    
    .eett-price-table {
        font-size: 10px;
    }
    
    .eett-external-link {
        color: #000 !important;
        background: transparent !important;
        border: 1px solid #000 !important;
    }
}