* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('images/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Background Image */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

header {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.header-section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

h1 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

/* Search and filter styles */
.search-container {
    margin-bottom: 20px;
}

#searchBox {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.price-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price-separator {
    margin: 0 5px;
}

/* Gallery styles */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.card.highlight {
    opacity: 1;
}

.card.not-highlight {
    opacity: 0.3;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card-info {
    padding: 15px;
}

.card-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c3e50;
}

.card-info .artist {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #e74c3c;
}

.card-info .price {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
}

.card-info .genre {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
}

.youtube-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

/* Loading animation */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3498db;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }
.loading-dots div:nth-child(4) { animation-delay: 0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* Error and no records messages */
.error-message, .no-records {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 15px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .price-filter-group {
        width: 100%;
        justify-content: space-between;
    }
}