/* Import Pixel Font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 12px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-1px);
}

.logo-icon {
    width: 32px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    animation: pulse 2s infinite;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.9));
    }
}

.logo h1 {
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 3px;
    color: #ffffff;
    margin: 0;
}

/* Header Links */
.header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.twitter-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    text-decoration: none;
    padding: 8px;
    border: 1px solid #a855f7;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.twitter-link:hover {
    background-color: #a855f7;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.twitter-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Navigation Link */
.nav-link {
    display: flex;
    align-items: center;
    color: #a855f7;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #a855f7;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 15px;
}

.nav-link:hover {
    background-color: #a855f7;
    color: #000000;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}


.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #888888;
    text-decoration: none;
    font-weight: normal;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
}

.connect-btn {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: normal;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.main-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container.sidebar-hidden .content-area {
    width: 100%;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 0;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    display: flex;
}

.search-container .search-box {
    max-width: 250px;
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 0;
    font-size: 12px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    outline: none;
}

.search-container .search-box::placeholder {
    color: #666666;
}

.section-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.section-filter-btn {
    padding: 8px 16px;
    background-color: #333333;
    color: #ffffff;
    border: 2px solid #a855f7;
    border-radius: 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-filter-btn:hover {
    background-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.section-filter-btn.active {
    background-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5);
}

.toggle-filters-btn {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: normal;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.toggle-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.sidebar.hidden {
    display: none;
}

.main-container.sidebar-hidden .content-area {
    width: 100%;
}

/* Controls Section */
.controls {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0;
}

.search-section {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 0;
    overflow: hidden;
    max-width: 250px;
    width: 100%;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #666666;
}

.search-btn {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #444444;
}


.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-controls label {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    background-color: #1a1a1a;
    border: 2px solid #a855f7;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 0;
    font-size: 12px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    min-width: 180px;
}

.sort-select:hover {
    border-color: #c084fc;
    background-color: #2a1a3a;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.sort-select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.sort-select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 10px;
}



#trait-filter-toggle {
    background-color: #a855f7;
    color: #000000;
    border-color: #a855f7;
}

#trait-filter-toggle:hover {
    background-color: #9333ea;
    border-color: #9333ea;
}

/* Artwork Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.skeleton-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 0;
    overflow: hidden;
    height: 400px;
    position: relative;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skeleton-shimmer 2s infinite;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes skeleton-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.artwork-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.artwork-card:hover {
    transform: translateY(-4px);
    border-color: #444444;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.artwork-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.placeholder-art {
    font-size: 48px;
    opacity: 0.8;
}

.artwork-info {
    padding: 20px;
}

.artwork-info h3 {
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.4;
}

.artwork-id,
.artwork-sat {
    font-size: 12px;
    color: #888888;
    margin-bottom: 4px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.artwork-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.trait {
    background-color: #333333;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 8px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clickable-trait {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.clickable-trait:hover {
    background-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.artwork-price {
    font-size: 16px;
    font-weight: 700;
    color: #a855f7;
    margin-top: 12px;
}

/* Rarity Colors */
.artwork-card[data-rarity="legendary"] {
    border-color: #a855f7;
}

.artwork-card[data-rarity="epic"] {
    border-color: #9d4edd;
}

.artwork-card[data-rarity="rare"] {
    border-color: #0077b6;
}

.artwork-card[data-rarity="common"] {
    border-color: #333333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.page-btn:hover:not(:disabled) {
    background-color: #333333;
    border-color: #444444;
}

.page-btn:disabled {
    background-color: #0a0a0a;
    border-color: #222222;
    color: #666666;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    color: #888888;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.footer-subtitle {
    font-size: 10px;
    color: #888888;
    text-align: center;
    margin: 0;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    letter-spacing: 1px;
}


/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Header optimizations */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo h1 {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .logo-icon {
        width: 24px;
        height: 12px;
    }
    
    .twitter-link {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .twitter-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Main container */
    .main-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .sidebar.hidden {
        display: none;
    }
    
    /* Content header */
    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-sort-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        justify-content: stretch;
    }
    
    .search-sort-container .search-container {
        max-width: none;
    }
    
    .search-box {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .sort-select {
        padding: 12px 16px;
        font-size: 12px;
        min-width: auto;
        width: 100%;
    }
    
    /* Artwork grid */
    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .loading-skeleton {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .skeleton-card {
        height: 350px;
    }
    
    /* Artwork cards */
    .artwork-card {
        transition: transform 0.2s ease;
    }
    
    .artwork-card:hover {
        transform: translateY(-2px);
    }
    
    .artwork-image {
        aspect-ratio: 1;
    }
    
    .responsive-image-container {
        min-height: 200px;
    }
    
    .loading-spinner {
        width: 16px;
        height: 16px;
    }
    
    .artwork-info {
        padding: 15px;
    }
    
    .artwork-info h3 {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .trait {
        font-size: 7px;
        padding: 3px 6px;
    }
    
    /* Pagination */
    .pagination {
        gap: 15px;
        margin-top: 30px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 10px;
    }
    
    /* Trait filters */
    .trait-filters {
        padding: 15px;
        margin-top: 15px;
    }
    
    .trait-options {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
    }
    
    .trait-option {
        padding: 8px 10px;
        font-size: 7px;
    }
    
    .trait-option input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
    
    .clear-filters-btn {
        padding: 8px 16px;
        font-size: 7px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-container {
        padding: 0 12px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 20px;
        height: 10px;
    }
    
    .twitter-link {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .twitter-link svg {
        width: 12px;
        height: 12px;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .responsive-image-container {
        min-height: 180px;
    }
    
    .loading-spinner {
        width: 14px;
        height: 14px;
    }
    
    .loading-skeleton {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .skeleton-card {
        height: 320px;
    }
    
    .artwork-info {
        padding: 12px;
    }
    
    .artwork-info h3 {
        font-size: 9px;
    }
    
    .trait {
        font-size: 6px;
        padding: 2px 4px;
    }
    
    .search-box {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .sort-select {
        padding: 14px 16px;
        font-size: 11px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 9px;
    }
    
    .trait-option {
        padding: 6px 8px;
        font-size: 6px;
    }
    
    .trait-option input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .artwork-card:hover {
        transform: none;
    }
    
    .artwork-card:active {
        transform: scale(0.98);
    }
    
    .twitter-link:hover {
        transform: none;
    }
    
    .twitter-link:active {
        transform: scale(0.95);
    }
    
    .page-btn:hover {
        transform: none;
    }
    
    .page-btn:active {
        transform: scale(0.95);
    }
    
    .toggle-filters-btn:hover {
        transform: none;
    }
    
    .toggle-filters-btn:active {
        transform: scale(0.95);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 12px;
    }
    
    .main-container {
        padding: 0 20px;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

/* Responsive Images */
.responsive-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.responsive-image.loaded {
    opacity: 1;
}

.responsive-image.error {
    opacity: 0;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 25%, #2a2a2a 50%, #1a1a1a 50%, #1a1a1a 75%, #2a2a2a 75%);
    background-size: 20px 20px;
    animation: placeholder-shift 2s linear infinite;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes placeholder-shift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Trait Filters */
.trait-filters {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    padding: 20px;
    margin-top: 20px;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.trait-filters-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.trait-filters h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

#trait-categories {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.trait-category {
    margin-bottom: 15px;
    border: 1px solid #333333;
    background-color: #0a0a0a;
}

.trait-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #333333;
}

.trait-category-header:hover {
    background-color: #1a1a1a;
}

.trait-category h5 {
    color: #ffffff;
    font-size: 10px;
    font-weight: normal;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.trait-category-toggle {
    color: #888888;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.trait-category.expanded .trait-category-toggle {
    transform: rotate(180deg);
}

.trait-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.trait-category.expanded .trait-category-content {
    max-height: 300px;
    overflow-y: auto;
}

.trait-options {
    padding: 15px 20px 15px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

/* Custom scrollbar for trait options */
.trait-options::-webkit-scrollbar {
    width: 6px;
}

.trait-options::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0;
}

.trait-options::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 0;
}

.trait-options::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.trait-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.trait-option:hover {
    background-color: #333333;
    border-color: #444444;
}

.trait-option input[type="checkbox"] {
    margin: 0;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #a855f7;
    background-color: #1a1a1a;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trait-option input[type="checkbox"]:hover {
    border-color: #c084fc;
    background-color: #2a1a3a;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.trait-option input[type="checkbox"]:checked {
    background-color: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.trait-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.trait-option input[type="checkbox"]:checked + span {
    color: #a855f7;
}

.trait-option input[type="checkbox"]:checked + span + .trait-count {
    color: #a855f7;
}

.trait-option span:first-of-type {
    color: #ffffff;
    font-weight: 500;
}

.trait-count {
    color: #888888;
    font-size: 6px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.clear-filters-btn {
    background-color: #333333;
    border: 1px solid #444444;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 8px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

.clear-filters-btn:hover {
    background-color: #444444;
    border-color: #555555;
}

/* Artwork Count */
.artwork-count {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
}

.artwork-count span {
    color: #888888;
    font-size: 14px;
    font-weight: 500;
}

/* Enhanced Artwork Cards */
.artwork-image {
    position: relative;
}

.rarity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.for-sale-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: #a855f7;
    color: #000000;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Trait styling in cards */
.artwork-card .trait[data-category="body"] {
    background-color: #2d5a27;
}

.artwork-card .trait[data-category="eyes"] {
    background-color: #1e3a8a;
}

.artwork-card .trait[data-category="head"] {
    background-color: #7c2d12;
}

.artwork-card .trait[data-category="earring"] {
    background-color: #581c87;
}

.artwork-card .trait[data-category="background"] {
    background-color: #374151;
}

/* Rarity-specific styling */
.artwork-card[data-rarity="mythic"] {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.artwork-card[data-rarity="legendary"] {
    border-color: #c084fc;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.artwork-card[data-rarity="epic"] {
    border-color: #9d4edd;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.artwork-card[data-rarity="rare"] {
    border-color: #0077b6;
    box-shadow: 0 0 8px rgba(0, 119, 182, 0.2);
}

.artwork-card[data-rarity="uncommon"] {
    border-color: #2d6a4f;
}

.artwork-card[data-rarity="common"] {
    border-color: #333333;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Share Functionality Styles */
.artwork-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.share-btn, .copy-link-btn {
    background: transparent;
    border: 1px solid #333333;
    color: #888888;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.share-btn:hover, .copy-link-btn:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
}

.share-btn:active, .copy-link-btn:active {
    transform: translateY(0);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 0;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333333;
    padding-bottom: 15px;
}

.share-modal-header h3 {
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    margin: 0;
}

.close-share-modal {
    background: none;
    border: none;
    color: #888888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-share-modal:hover {
    color: #a855f7;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-option {
    background: #0a0a0a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-option:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.share-option:active {
    transform: translateY(0);
}

/* Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
