/**
 * Simplified CSS for PropFirm Comparison Table
 */

/* Main container */
.pfct-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

/* Header */
.pfct-header {
    text-align: center;
    margin-bottom: 30px;
}

.pfct-header h1,
.pfct-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.pfct-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Filters section */
.pfct-filters {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pfct-filters h3 {
    color: #115bff;
    margin: 0 0 15px 0;
    font-size: 18px;
}

/* Search input */
#pfct-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Filter grid */
.pfct-filters > div:nth-child(3) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.pfct-filters > div:nth-child(4) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Filter inputs */
.pfct-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.pfct-filters select,
.pfct-filters input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Clear filters button */
#pfct-clear-filters {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#pfct-clear-filters:hover {
    background: #5a6268;
}

/* Results counter */
.pfct-results-counter {
    text-align: center;
    margin: 15px 0;
}

#pfct-results-count {
    font-weight: bold;
    color: #115bff;
    font-size: 16px;
}

/* Scroll controls */
.pfct-scroll-controls {
    text-align: center;
    margin-bottom: 10px;
}

#scroll-left,
#scroll-right {
    padding: 8px 16px;
    background: #115bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

#scroll-left:hover,
#scroll-right:hover {
    background: #0d4dd4;
}

/* Table container */
#table-scroll-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Main table */
.pfct-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
    font-size: 14px;
}

.pfct-comparison-table thead tr {
    background: #115bff;
}

.pfct-comparison-table th {
    padding: 15px 12px;
    text-align: left;
    color: white;
    font-weight: bold;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.pfct-comparison-table th:last-child {
    border-right: none;
}

.pfct-comparison-table tbody tr {
    border-bottom: 1px solid #eee;
}

.pfct-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.pfct-comparison-table td {
    padding: 12px;
    text-align: left;
    border-right: 1px solid #eee;
    color: #333;
    vertical-align: middle;
}

.pfct-comparison-table td:last-child {
    border-right: none;
}

.pfct-comparison-table td strong {
    color: #007bff;
}

/* Business name column (first column) */
.pfct-comparison-table td:first-child {
    font-weight: bold;
    color: #007bff;
}

/* Trustpilot styling */
.pfct-trustpilot {
    text-align: center;
}

.pfct-trustpilot span {
    font-weight: bold;
}

/* Load more button */
.pfct-load-more-container {
    text-align: center;
    margin: 20px 0;
}

#pfct-load-more {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#pfct-load-more:hover {
    background: #0056b3;
}

/* Footer */
.pfct-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

/* No results message */
.pfct-comparison-table tbody td[colspan] {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Loading and error messages */
.pfct-loading-message,
.pfct-error-message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.pfct-loading-message {
    color: #007bff;
}

.pfct-error-message {
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .pfct-wrapper {
        padding: 10px;
    }
    
    .pfct-filters > div:nth-child(3),
    .pfct-filters > div:nth-child(4) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pfct-comparison-table {
        font-size: 12px;
        min-width: 900px;
    }
    
    .pfct-comparison-table th,
    .pfct-comparison-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .pfct-filters {
        padding: 15px;
    }
    
    #pfct-clear-filters {
        width: 100%;
        margin-top: 10px;
    }
}
