/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 10px;
}

a {
    color: #2c5cc5;
    text-decoration: underline;
}

a:hover {
    color: #1a4299;
    text-decoration: underline;
}

/* Header */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 0;
}

header .tagline {
    font-size: 14px;
    opacity: 0.8;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

/* Filters */
.filters {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    height: fit-content;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.filters h2 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #666;
}

input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.filter-bottom-links {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.filter-bottom-links a {
    font-size: 14px;
    color: #666;
}

/* Content area */
.content {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.sort-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.results-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-wrapper {
    display: flex;
    align-items: center;
}

.sort-wrapper label {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Displays grid */
.monitors-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.display-card {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.7fr 0.8fr 0.7fr 0.7fr 2fr;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    padding: 12px 15px;
}

.display-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.display-name {
    font-weight: 600;
    margin-right: 15px;
}

.display-size, .display-panel, .display-resolution, .display-refresh-rate, .display-response-time {
    text-align: left;
}

.display-price {
    font-weight: bold;
    color: #000000;
    text-align: center;
}

/* Loading indicator */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.spinner {
    border: 3px solid #eee;
    border-top: 3px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #555;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

/* Add styles for column headers */
.column-headers {
    display: grid;
    grid-template-columns: 0.8fr 0.6fr 0.7fr 0.8fr 0.7fr 0.7fr 2fr;
    background-color: #f5f7fa;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.column-header {
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-header:hover {
    background-color: #e8edf5;
}

.column-header.active {
    background-color: #e0e7f2;
    color: #2c5cc5;
}

/* New sort icon styling with triangles */
.sort-icon {
    position: relative;
    width: 12px;
    height: 14px;
    margin-left: 6px;
}

.sort-icon:before,
.sort-icon:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
}

/* Up arrow */
.sort-icon:before {
    top: 0;
    border-bottom: 4px solid #666;
}

/* Down arrow */
.sort-icon:after {
    bottom: 0;
    border-top: 4px solid #666;
}

/* Active state for ascending sort */
.column-header.active.asc .sort-icon:before {
    opacity: 1;
    border-bottom-color: #2c5cc5;
}

/* Active state for descending sort */
.column-header.active.desc .sort-icon:after {
    opacity: 1;
    border-top-color: #2c5cc5;
}

/* Show both arrows on all headers (not just active ones) */
.column-header .sort-icon {
    display: inline-block;
}

/* Responsive adjustments for column headers */
@media (max-width: 768px) {
    .column-headers {
        display: none;
    }
    
    .display-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .display-size, .display-panel, .display-resolution, 
    .display-refresh-rate, .display-response-time, .display-price {
        text-align: left;
    }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .layout {
        display: flex;
        flex-direction: column;
    }
    
    .filters {
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* Make filter groups more compact on mobile */
    .filter-group {
        margin-bottom: 10px;
    }
    
    .monitors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* If you had a CSS class to hide filters, ensure it's no longer applied */
.filters.hidden,
.filters-hidden {
    display: block !important;
}

/* Content Pages Styles */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.7;
}

.content-page h1 {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.content-page h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.content-page h3 {
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.content-page p {
    margin-bottom: 15px;
    color: #444;
}

.content-page ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.content-page li {
    margin-bottom: 8px;
    color: #444;
}

.content-page a {
    color: #2c5cc5;
    text-decoration: underline;
}

.content-page a:hover {
    color: #1a4299;
}

/* FAQ specific styles */
.faq-section {
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #2c5cc5;
    border-radius: 4px;
}

.faq-item h3 {
    color: #2c5cc5;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Legal pages specific styles */
.legal-section {
    margin-bottom: 35px;
}

.contact-info {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
} 