/* NFT Marketplace Styles */

/* Main container */
.nft-container {
    padding: 120px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Connect wallet section */
.connect-wallet-container {
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.connect-wallet-btn {
    background: linear-gradient(45deg, #6c63ff, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Tab navigation */
.tab-container {
    margin-bottom: 40px;
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(108, 99, 255, 0.5) rgba(20, 20, 30, 0.3); /* Firefox */
}

/* Custom scrollbar for Webkit browsers */
.tab-nav::-webkit-scrollbar {
    height: 4px;
}

.tab-nav::-webkit-scrollbar-track {
    background: rgba(20, 20, 30, 0.3);
    border-radius: 10px;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.5);
    border-radius: 10px;
}

.tab-button {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent tabs from shrinking */
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #6c63ff, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: #fff;
}

.tab-button.active {
    color: #fff;
    font-weight: 600;
}

.tab-button.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* NFT marketplace grid */
.nft-marketplace {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* NFT filters */
.nft-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

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

.nft-filter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nft-filter-select {
    background: rgba(30, 30, 40, 0.7);
    color: #fff;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.nft-search {
    position: relative;
    margin-left: auto;
}

.nft-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.nft-search input {
    background: rgba(30, 30, 40, 0.7);
    color: #fff;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    padding: 8px 12px 8px 35px;
    font-size: 0.9rem;
    width: 200px;
}

/* Empty state */
.nft-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.nft-empty-state h3 {
    margin-bottom: 10px;
}

.nft-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Error state */
.nft-error-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 20, 20, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 99, 99, 0.3);
    color: #ff6b6b;
}

.nft-error-state h3 {
    margin-bottom: 10px;
    color: #ff6b6b;
}

.nft-error-state p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Loading state */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(108, 99, 255, 0.3);
    border-top: 3px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .nft-marketplace {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .nft-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nft-search {
        width: 100%;
        margin-left: 0;
    }
    
    .nft-search input {
        width: 100%;
    }
}
