/* Press Selector Modal Styles */
.press-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.press-selector-overlay.active {
    opacity: 1;
    visibility: visible;
}

.press-selector-modal {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.press-selector-overlay.active .press-selector-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Header */
.press-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.press-selector-title {
    font-size: 20px;
    font-weight: 500;
    color: white;
}

.press-selector-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.press-selector-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Search Bar */
.press-selector-search {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-input-container {
    position: relative;
    flex-grow: 1;
    margin-right: 16px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(74, 158, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.active-filters {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: white;
    background: rgba(74, 158, 255, 0.2);
    border: 1px solid rgba(74, 158, 255, 0.4);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.active-filters:hover {
    background: rgba(74, 158, 255, 0.3);
}

.active-filters-count {
    font-weight: 500;
    margin-right: 4px;
}

.clear-filters-icon {
    margin-left: 8px;
    font-size: 16px;
}

/* Main Content Area */
.press-selector-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Filter Sidebar */
.press-selector-filters {
    width: 260px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    padding: 20px;
}

.press-selector-filters::-webkit-scrollbar {
    width: 8px;
}

.press-selector-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.press-selector-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.press-selector-filters::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.filter-group-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox:checked {
    background: #4a9eff;
    border-color: #4a9eff;
}

.filter-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 11px;
    top: 1px;
    left: 3px;
}

.filter-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.technology-indicator {
    display: block;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    margin-right: 10px;
}

/* Press Grid */
.press-selector-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.press-selector-grid::-webkit-scrollbar {
    width: 8px;
}

.press-selector-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.press-selector-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.press-selector-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-control-button {
    font-size: 13px;
    color: rgba(74, 158, 255, 0.8);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.section-control-button:hover {
    color: rgba(74, 158, 255, 1);
}

.results-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Press Cards Grid */
.press-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.press-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.press-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.press-card.selected {
    border-color: rgba(74, 158, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
}

.press-card-header {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.press-card-technology-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.press-card-year {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 10px;
}

.press-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.press-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.press-card-title {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.press-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.press-card-technology {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

/* No Results Section */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-results-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.no-results-subtitle {
    font-size: 14px;
    max-width: 500px;
    margin-bottom: 24px;
}

.clear-all-button {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clear-all-button:hover {
    background: rgba(74, 158, 255, 1);
}

/* Footer */
.press-selector-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(74, 158, 255, 0.6);
    color: rgba(74, 158, 255, 0.9);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.compare-button:hover {
    background: rgba(74, 158, 255, 0.1);
    color: rgba(74, 158, 255, 1);
}

.selector-actions {
    display: flex;
    gap: 12px;
}

.cancel-button {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.select-button {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-button:hover {
    background: rgba(74, 158, 255, 1);
}

.select-button:disabled {
    background: rgba(74, 158, 255, 0.3);
    cursor: not-allowed;
}

/* Technology Colors */
.technology-color-liquid-electrophotography { background-color: #4a9eff; }
.technology-color-digital-electrophotographic { background-color: #9c4aff; }
.technology-color-nanography { background-color: #ff4a9e; }
.technology-color-high-speed-inkjet { background-color: #4acdff; }
.technology-color-single-pass-inkjet { background-color: #4affcd; }
.technology-color-sheet-fed-inkjet { background-color: #4aff9e; }
.technology-color-industrial-inkjet { background-color: #ff9e4a; }
.technology-color-inkjet { background-color: #4affcd; }
.technology-color-offset-lithography { background-color: #ffcd4a; }
.technology-color-uv-inkjet { background-color: #cd4aff; }

/* Technology Background Colors (more subtle) */
.technology-bg-liquid-electrophotography { background-color: rgba(74, 158, 255, 0.15); }
.technology-bg-digital-electrophotographic { background-color: rgba(156, 74, 255, 0.15); }
.technology-bg-nanography { background-color: rgba(255, 74, 158, 0.15); }
.technology-bg-high-speed-inkjet { background-color: rgba(74, 205, 255, 0.15); }
.technology-bg-single-pass-inkjet { background-color: rgba(74, 255, 205, 0.15); }
.technology-bg-sheet-fed-inkjet { background-color: rgba(74, 255, 158, 0.15); }
.technology-bg-industrial-inkjet { background-color: rgba(255, 158, 74, 0.15); }
.technology-bg-inkjet { background-color: rgba(74, 255, 205, 0.15); }
.technology-bg-offset-lithography { background-color: rgba(255, 205, 74, 0.15); }
.technology-bg-uv-inkjet { background-color: rgba(205, 74, 255, 0.15); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .press-selector-modal {
        width: 95%;
        height: 90vh;
    }
    
    .press-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .press-selector-content {
        flex-direction: column;
    }
    
    .press-selector-filters {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .press-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .press-selector-header {
        padding: 12px 16px;
    }
    
    .press-selector-title {
        font-size: 18px;
    }
    
    .press-selector-search {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-container {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .press-selector-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .compare-button {
        width: 100%;
    }
    
    .selector-actions {
        width: 100%;
    }
    
    .cancel-button, .select-button {
        flex: 1;
    }
    
    .press-cards {
        grid-template-columns: 1fr;
    }
}

/* Press Selector Launcher Button */
.press-selector-button {
    padding: 8px 16px;
    background: rgba(74, 158, 255, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.press-selector-button:hover {
    background: rgba(74, 158, 255, 1);
}

.press-selector-button-icon {
    font-size: 16px;
}
