/* Components styles */

/* Featured Auctions */
.featured-auctions {
    padding: 60px 0;
}

.featured-auctions h2 {
    text-align: center;
    margin-bottom: 40px;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.auction-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auction-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-image img {
    transform: scale(1.05);
}

.auction-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.auction-info {
    padding: 20px;
}

.auction-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.auction-info .artist {
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.auction-info .estimate {
    font-weight: 600;
    margin-bottom: 15px;
}

.view-lot {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4a90a0;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-lot:hover {
    background-color: #347585;
    color: white;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all a {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: #4a90a0;
    border: 2px solid #4a90a0;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all a:hover {
    background-color: #4a90a0;
    color: white;
}

/* Featured Artists */
.featured-artists {
    padding: 60px 0;
    background-color: #f2f2f2;
}

.featured-artists h2 {
    text-align: center;
    margin-bottom: 40px;
}

.artist-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.artist-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.artist-image {
    height: 200px;
    overflow: hidden;
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-card:hover .artist-image img {
    transform: scale(1.05);
}

.artist-info {
    padding: 20px;
    text-align: center;
}

.artist-info h3 {
    margin-bottom: 8px;
}

.artist-info p {
    color: #666;
    margin-bottom: 15px;
}

.artist-info a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4a90a0;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.artist-info a:hover {
    background-color: #347585;
}

/* Upcoming Auctions */
.upcoming-auctions {
    padding: 60px 0;
}

.upcoming-auctions h2 {
    text-align: center;
    margin-bottom: 40px;
}

.auction-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.timeline-item .date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    margin-right: 20px;
}

.timeline-item .date .day {
    font-size: 24px;
    font-weight: bold;
    color: #4a90a0;
}

.timeline-item .date .month {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.timeline-item .auction-details {
    flex-grow: 1;
}

.timeline-item .auction-details h3 {
    margin-bottom: 5px;
}

.timeline-item .auction-details p {
    color: #666;
    margin-bottom: 10px;
}

.timeline-item .auction-details a {
    color: #4a90a0;
    font-weight: 500;
}

/* Newsletter */
.newsletter {
    background-color: #4a90a0;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 18px;
}

.newsletter form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter button {
    padding: 12px 25px;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Search Results */
.search-results {
    padding: 40px 0;
}

.search-header {
    margin-bottom: 30px;
}

.search-header h1 {
    margin-bottom: 10px;
    color: #333;
}

.search-header .results-count {
    color: #666;
    font-size: 16px;
}

.artist-bio {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.artist-bio .artist-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.artist-bio .artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-bio .artist-details {
    flex-grow: 1;
}

.artist-bio .artist-meta {
    color: #666;
    margin-bottom: 15px;
}

.artist-bio .artist-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.artist-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.artist-stats .stat {
    text-align: center;
}

.artist-stats .number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4a90a0;
}

.artist-stats .label {
    font-size: 14px;
    color: #666;
}

.follow-artist {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a90a0;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.follow-artist:hover {
    background-color: #347585;
}

.follow-artist.following {
    background-color: #28a745;
}

/* Advanced Search Layout */
.search-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.filter-toggle {
    width: 100%;
    padding: 15px 20px;
    background-color: #4a90a0;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-toggle:hover {
    background-color: #347585;
}

.filter-count {
    background-color: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.filters {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    # max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.filters h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #4a90a0;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-options label:hover {
    color: #4a90a0;
}

/* Ensure category links use the same font styling as labels */
.filter-options .category-link {
    font-size: 14px;
    color: #666;
}
.filter-options .category-link:hover {
    color: #4a90a0;
}
.filter-options .category-link.active {
    color: #4a90a0;
    font-weight: 600;
}

.filter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4a90a0;
}

/* Text Search Filters */
.text-search-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: #4a90a0;
}

.filter-input::placeholder {
    color: #999;
}

/* Range Filters */
.range-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.range-filters input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.range-filters span {
    color: #666;
    font-weight: 500;
}

/* Date Filters */
.date-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.date-filters input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.date-filters span {
    color: #666;
    font-weight: 500;
}

/* Price Range */
.price-range {
    margin-top: 10px;
}

.price-slider {
    width: 100%;
    margin-bottom: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-inputs span {
    color: #666;
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.apply-filters, .clear-filters {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-filters {
    background-color: #4a90a0;
    color: white;
}

.apply-filters:hover {
    background-color: #347585;
}

.clear-filters {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.clear-filters:hover {
    background-color: #cc0000;
}

.clear-filters-btn {
    display: inline-block;
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: center;
}

.clear-filters-btn:hover {
    background-color: #cc0000;
    color: white;
    text-decoration: none;
}

/* Sort Options within Filter Form */
.filter-group .sort-options {
    padding: 0;
    border-bottom: none;
    background-color: transparent;
    display: block;
}

.filter-group .sort-options > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.filter-group .sort-options label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.filter-group .sort-options select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-group .sort-options select:focus {
    outline: none;
    border-color: #4a90a0;
}

/* Results Area */
.results-area {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Sort Options */
.sort-options {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
}

.sort-options > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options label {
    font-weight: 500;
    color: #555;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.sort-options select:focus {
    outline: none;
    border-color: #4a90a0;
}

/* Results Summary */
.results-summary {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.results-summary #resultsCount {
    font-weight: 500;
    color: #333;
}

.active-filters {
    color: #666;
    font-size: 12px;
}

/* Artwork Grid */
.artwork-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.artwork-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.artwork-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-card:hover .artwork-image img {
    transform: scale(1.05);
}

.artwork-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sold-badge {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.estimate-badge {
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.artwork-info {
    padding: 15px;
}

.artwork-info h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
}

.artwork-info .artist {
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
    font-size: 14px;
}

.artwork-info .medium {
    color: #888;
    margin-bottom: 6px;
    font-size: 13px;
}

.artwork-info .dimensions {
    color: #888;
    margin-bottom: 10px;
    font-size: 13px;
}

.artwork-info .estimate {
    font-weight: 600;
    color: #4a90a0;
    margin-bottom: 8px;
    font-size: 14px;
}

.artwork-info .realised-price {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 8px;
    font-size: 14px;
}

.artwork-info .auction-info {
    color: #666;
    margin-bottom: 12px;
    font-size: 12px;
}

.artwork-info .view-lot {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4a90a0;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.artwork-info .view-lot:hover {
    background-color: #347585;
    color: white;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination a.active {
    background-color: #4a90a0;
    color: white;
    border-color: #4a90a0;
}

.pagination a:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #4a90a0;
    color: #4a90a0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-overlay p {
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-content {
        flex-direction: column;
    }
    
    .filters-sidebar {
        order: 2;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .filters {
        display: none;
    }
    
    .filters.show {
        display: block;
    }
    
    .artist-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .artist-bio .artist-image {
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .sort-options > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .range-filters,
    .date-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .range-filters span,
    .date-filters span {
        display: none;
    }
    
    /* Mobile styles for sort options in filter form */
    .filter-group .sort-options > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group .sort-options select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-actions {
        flex-direction: column;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .pagination a {
        min-width: 35px;
        padding: 6px 8px;
        font-size: 14px;
    }
} 

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.g-recaptcha > div {
    transform: scale(1);
    transform-origin: 0 0;
}

/* Responsive reCAPTCHA for mobile */
@media (max-width: 480px) {
    .g-recaptcha > div {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* Error styling for reCAPTCHA validation */
.recaptcha-error {
    border: 2px solid #ff4444;
    border-radius: 4px;
} 