/**
 * Styles for the Jewelry Sets feature
 *
 * @since      1.3.0
 */

/* Sets Tab Styling */
.jpc-sets-selection-container {
    margin: 15px 0;
    padding: 10px 0;
}

.jpc-sets-intro {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Quality Filter Styling */
.jpc-sets-quality-filters {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.jpc-quality-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.jpc-quality-filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

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

.jpc-quality-filter:focus {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.jpc-filter-button {
    padding: 8px 16px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    height: fit-content;
}

.jpc-filter-button:hover {
    background-color: #005a87;
}

.jpc-filter-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .jpc-sets-quality-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jpc-quality-filter-group {
        min-width: auto;
    }
}

/* Quality Requirements and Badges */
.jpc-set-quality-requirements {
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border-left: 3px solid #007cba;
}

.jpc-quality-note {
    color: #495057;
    font-weight: 500;
    font-size: 12px;
}

.jpc-quality-badge {
    display: inline-block;
    background-color: #007cba;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
}

.jpc-component-list {
    margin: 5px 0;
    padding-left: 15px;
    list-style-type: disc;
}

.jpc-component-list li {
    margin: 2px 0;
    font-size: 14px;
}

.jpc-set-components {
    font-size: 14px;
}

.jpc-set-diamonds,
.jpc-set-gemstones {
    margin-bottom: 10px;
}

.jpc-set-diamonds strong,
.jpc-set-gemstones strong {
    color: #495057;
    font-size: 13px;
}

.jpc-no-sets-filtered {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.jpc-no-sets-filtered p {
    margin: 0;
}

.jpc-sets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.jpc-set-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.jpc-set-item.selected {
    border-color: #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.jpc-set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.jpc-set-name {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.jpc-set-price {
    font-weight: bold;
    color: #d4af37;
    font-size: 18px;
}

.jpc-set-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.jpc-set-details {
    margin-bottom: 15px;
    font-size: 14px;
}

.jpc-set-diamonds, 
.jpc-set-gemstones {
    margin-bottom: 5px;
}

.jpc-select-set {
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jpc-select-set:hover {
    background-color: #f0f0f0;
}

.jpc-set-item.selected .jpc-select-set {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

.jpc-no-sets {
    font-style: italic;
    color: #666;
}

/* Tabbed Interface Styling */
.jpc-tabbed-interface {
    margin: 20px 0;
    font-family: inherit;
}

.jpc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 1px solid #ddd;
}

.jpc-tabs li {
    margin: 0 5px 0 0;
}

.jpc-tabs li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.jpc-tabs li.active a {
    background: #fff;
    color: #d4af37;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

.jpc-tabs li a:hover {
    background: #e9e9e9;
}

.jpc-tab-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    background: #fff;
}

.jpc-tab-pane {
    display: none;
}

.jpc-tab-pane.active {
    display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .jpc-sets-list {
        grid-template-columns: 1fr;
    }
    
    .jpc-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .jpc-tabs li {
        margin: 0 0 5px 0;
    }
    
    .jpc-tabs li a {
        border-radius: 4px;
        border-bottom: 1px solid #ddd;
    }
    
    .jpc-tabs li.active a {
        border-bottom: 1px solid #d4af37;
    }
    
    .jpc-tab-content {
        border: 1px solid #ddd;
    }
}

/* Sets Table Styling - Remove ALL borders and hide details/price columns */
.jpc-sets-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
}

.jpc-sets-table th,
.jpc-sets-table td {
    border: none !important;
    padding: 10px;
}

.jpc-sets-table thead {
    border: none !important;
    display: none; /* Hide table header completely */
}

.jpc-sets-table tbody tr {
    border: none !important;
}

.jpc-sets-table tbody tr:last-child {
    border: none !important;
}

/* Hide details and price columns */
.jpc-set-details-col,
.jpc-set-details-cell,
.jpc-set-price-col,
.jpc-set-price-cell {
    display: none !important;
}

/* Clean list format for sets display */
.jpc-set-list-format {
    padding: 5px 0;
}

.jpc-set-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.jpc-set-components-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jpc-set-components-list li {
    padding: 3px 0;
    font-size: 14px;
    color: #333;
}

.jpc-set-description {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Clean checkbox styling */
.jpc-set-select-cell {
    width: 40px;
    vertical-align: top;
}

.jpc-select-set-checkbox {
    margin-top: 5px;
}