.gallery-hero {
    background: linear-gradient(135deg, #FFEB00 0%, #61DAFB 100%);
    padding: 6rem 2rem 4rem 2rem;
    text-align: center;
    border-bottom: 5px solid #000;
    margin-top: 80px;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nft-of-day {
    padding: 3rem 2rem;
    background-color: var(--light-blue);
}

.nft-of-day h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
}

#nft-of-day-container {
    max-width: 600px;
    margin: 0 auto;
    background: #000;
    border: 5px solid #FFEB00;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.nft-of-day-card {
    text-align: center;
}

.nft-of-day-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    border: 4px solid #000;
    margin-bottom: 1.5rem;
}

.nft-of-day-info h3 {
    font-size: 2rem;
    color: #FFEB00;
    margin-bottom: 1rem;
}

.rarity-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid #000;
    font-size: 0.7rem;
    color: #000;
}

.rarity-legendary { background: linear-gradient(135deg, #FFD700, #FFA500); }
.rarity-epic { background: linear-gradient(135deg, #9B59B6, #E74C3C); color: #fff; }
.rarity-rare { background: linear-gradient(135deg, #3498DB, #2ECC71); color: #fff; }
.rarity-common { background: linear-gradient(135deg, #95A5A6, #7F8C8D); color: #fff; }

.gallery-filters {
    padding: 2rem;
    background-color: var(--sky-blue);
    border-bottom: 5px solid #000;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 4px solid #000;
    border-radius: 15px;
    background: #87CEEB;
    color: #000;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.filter-btn.active {
    background: #FFEB00;
}

.sort-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#sort-select, #search-input {
    padding: 0.8rem 1.5rem;
    border: 4px solid #000;
    border-radius: 15px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.gallery-grid-section {
    padding: 3rem 2rem;
    background-color: #FFB6C1;
}

#gallery-stats {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    min-height: 200px;
    background: transparent;
}

.nft-card {
    background: #fff !important;
    border: 3px solid #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.nft-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f0f0f0 !important;
    display: block;
}

.nft-card-info {
    padding: 0.75rem;
    background: #fff !important;
    flex-shrink: 0;
}

.nft-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.nft-card-rank {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.owner-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #87CEEB;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #000;
}

.mia-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #FF69B4;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #000;
    z-index: 10;
}

#load-more-container {
    text-align: center;
}

#load-more-btn {
    padding: 1rem 3rem;
    background: #FFEB00;
    border: 5px solid #000;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 0px rgba(0,0,0,0.3);
}

#trait-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    background: #FFEB00;
    border: 4px solid #000;
    border-radius: 15px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-grid-section .container > div {
        flex-direction: column !important;
    }
    
    #trait-filters {
        display: none;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    
    #trait-filters.active {
        display: block;
    }
    
    #trait-filter-toggle {
        display: block;
    }
    
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        background: transparent !important;
    }
    
    .nft-card {
        min-height: 200px;
        background: #fff !important;
    }
    
    .nft-card img {
        min-height: 150px;
        background: #f0f0f0 !important;
    }
    
    .gallery-grid-section {
        background-color: #FFB6C1 !important;
    }
}


