/* Gallery Page Styles */
.gallery-page {
    background-color: var(--dark);
}

/* Gallery Hero */
.gallery-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 15, 28, 0.7), rgba(15, 15, 28, 0.9)), url('https://images.pexels.com/photos/3831341/pexels-photo-3831341.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    position: relative;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.gallery-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--space-3);
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.gallery-hero-content p {
    font-size: var(--fs-xl);
    color: var(--light-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filter Section */
.gallery-filter-section {
    padding: var(--space-6) 0;
}

.gallery-filter-container {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.gallery-filter-container label {
    color: var(--light-600);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
}

.search-container {
    position: relative;
}

.search-input {
    padding-right: 50px;
    background-color: var(--dark-600);
    border: 1px solid var(--dark-500);
    color: var(--light);
    border-radius: var(--radius-md);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0 var(--space-3);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* NFT Grid */
.nft-grid-section {
    padding: var(--space-6) 0 var(--space-10);
}

.nft-grid-item {
    margin-bottom: var(--space-4);
}

.nft-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--dark-700);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.nft-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.nft-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nft-card:hover .nft-image img {
    transform: scale(1.1);
}

.nft-badges {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
}

.badge {
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
}

.bg-common {
    background-color: var(--light-500);
    color: var(--dark);
}

.bg-rare {
    background-color: var(--secondary);
}

.bg-epic {
    background-color: var(--primary);
}

.bg-legendary {
    background-color: var(--accent);
}

.bg-mythic {
    background: linear-gradient(90deg, #ff2e63, #a61e4d);
}

.nft-info {
    padding: var(--space-4);
}

.nft-details {
    margin-bottom: var(--space-3);
}

.nft-details h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-1);
}

.nft-collection {
    font-size: var(--fs-xs);
    color: var(--light-500);
}

.nft-price {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3);
    color: var(--primary);
    font-weight: 700;
}

.nft-price img {
    margin-right: var(--space-1);
}

.nft-actions {
    display: flex;
    justify-content: space-between;
}

/* Collections Section */
.collections-section {
    background-color: var(--dark-800);
    padding: var(--space-10) 0;
}

.collection-card {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.collection-images {
    position: relative;
}

.collection-main-image {
    height: 180px;
    overflow: hidden;
}

.collection-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-main-image img {
    transform: scale(1.1);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    height: 60px;
}

.collection-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-info {
    padding: var(--space-4);
}

.collection-info h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-3);
}

.collection-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.stat .label {
    display: block;
    margin-top: 25px;
    font-size: var(--fs-xs) !important; 
    color: var(--light-500);
    margin-bottom: var(--space-1);
}

.stat .value {
    font-weight: 700;
    color: var(--light);
}

/* NFT Detail Modal */
.btn-close {
    background-color: lightblue !important;

}

.nft-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.nft-detail-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

.nft-collection-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    color: var(--light-500);
    margin-bottom: var(--space-2);
}

.nft-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-3);
}

.nft-owner {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-sm);
    color: var(--light-500);
    margin-bottom: var(--space-4);
}

.owner-address {
    color: var(--primary);
}

.nft-price-detail {
    background-color: var(--dark-600);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.current-price span:first-child {
    font-size: var(--fs-sm);
    color: var(--light-500);
    margin-bottom: var(--space-1);
    display: block;
}

.price-value {
    display: flex;
    align-items: center;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary);
}

.usd-value {
    font-size: var(--fs-sm);
    color: var(--light-500);
    margin-left: var(--space-2);
}

.nft-attributes {
    margin-bottom: var(--space-4);
}

.nft-attributes h5 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-2);
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.attribute-item {
    background-color: var(--dark-600);
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

.attribute-name {
    display: block;
    font-size: var(--fs-xs);
    color: var(--light-500);
}

.attribute-value {
    font-weight: 600;
}

.nft-game-utility h5 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-2);
}

.nft-game-utility p {
    color: var(--light-600);
    font-size: var(--fs-sm);
}

.nft-actions-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-hero-content h1 {
        font-size: 3rem;
    }
    
    .collection-main-image {
        height: 150px;
    }
    
    .collection-grid {
        height: 50px;
    }
    
    .nft-detail-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero-content p {
        font-size: var(--fs-lg);
    }
    
    .attributes-grid {
        grid-template-columns: 1fr;
    }
    
    .nft-detail-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        min-height: 30vh;
    }
    
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-hero-content p {
        font-size: var(--fs-md);
    }
    
    .nft-image {
        height: 200px;
    }
    
    .collection-main-image {
        height: 120px;
    }
    
    .collection-grid {
        height: 40px;
    }
    
    .collection-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        width: 50%;
        margin-bottom: var(--space-2);
    }
}