/* NFTs Page - MS-DOS Aesthetic */
:root {
    --dos-blue: #0000AA;
    --dos-blue-light: #0000CC;
    --dos-grey: #AAAAAA;
    --dos-grey-light: #CCCCCC;
    --dos-white: #FFFFFF;
    --dos-cyan: #00AAAA;
    --font-dos: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body.nfts-page {
    font-family: var(--font-dos);
    font-size: 14px;
    line-height: 1.4;
    background-color: var(--dos-blue);
    color: var(--dos-grey);
    min-height: 100vh;
}

/* Header */
.nfts-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dos-blue);
    border-bottom: 1px solid var(--dos-grey);
    z-index: 1000;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nfts-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nfts-logo {
    color: var(--dos-grey-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.nfts-logo:hover {
    color: var(--dos-white);
}

.nfts-title {
    color: var(--dos-grey-light);
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

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

.nfts-back-link {
    color: var(--dos-grey);
    text-decoration: none;
    font-size: 12px;
}

.nfts-back-link:hover {
    color: var(--dos-white);
}

/* Main Content */
.nfts-main {
    padding: 80px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Title */
.nfts-page-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--dos-grey);
    padding-bottom: 16px;
}

.nfts-page-title {
    font-size: 16px;
    font-weight: normal;
    color: var(--dos-grey-light);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.nfts-page-subtitle {
    font-size: 12px;
    color: var(--dos-grey);
    opacity: 0.7;
}

/* Table Header */
.nfts-table-header {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr 0.6fr 1fr 0.6fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dos-grey);
    font-size: 11px;
    color: var(--dos-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nfts-table-header span {
    white-space: nowrap;
}

/* Sortable Headers */
.nfts-table-header .sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.nfts-table-header .sortable:hover {
    color: var(--dos-white);
}

.nfts-table-header .sortable.active {
    color: var(--dos-white);
}

.sort-icon {
    display: inline-block;
    margin-left: 2px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.sortable:hover .sort-icon,
.sortable.active .sort-icon {
    opacity: 1;
}

/* NFT List */
.nfts-list {
    display: flex;
    flex-direction: column;
}

/* NFT Item */
.nft-item {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr 0.6fr 1fr 0.6fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(170, 170, 170, 0.2);
    align-items: center;
    transition: background-color 0.15s ease;
}

.nft-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* NFT Title */
.nft-title {
    color: var(--dos-grey-light);
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NFT Values */
.nft-year,
.nft-chain,
.nft-supply,
.nft-distribution,
.nft-onchain,
.nft-type {
    font-size: 12px;
    color: var(--dos-grey);
}

.nft-chain {
    text-transform: capitalize;
}

/* Chain Colors */
.nft-chain[data-chain="Bitcoin"] {
    color: #F7931A;
}

.nft-chain[data-chain="Ethereum"] {
    color: #627EEA;
}

.nft-chain[data-chain="Tezos"] {
    color: #2C7DF7;
}

.nft-chain[data-chain="Solana"] {
    color: #14F195;
}

.nft-chain[data-chain="Counterparty"] {
    color: #EB145A;
}

/* On-chain indicator */
.nft-onchain-yes {
    color: #00FF00;
}

.nft-onchain-no {
    color: var(--dos-grey);
    opacity: 0.5;
}

/* Link */
.nft-link a {
    color: var(--dos-cyan);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s ease;
}

.nft-link a:hover {
    color: var(--dos-white);
}

/* Footer */
.nfts-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--dos-grey);
    text-align: center;
}

.nfts-footer-text {
    font-size: 11px;
    color: var(--dos-grey);
    opacity: 0.5;
}

/* Loading State */
.nfts-loading {
    text-align: center;
    padding: 40px;
    color: var(--dos-grey);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .nfts-table-header,
    .nft-item {
        grid-template-columns: 1.5fr 0.5fr 0.7fr 0.5fr 0.8fr 0.5fr 0.6fr 0.6fr;
        gap: 8px;
        font-size: 11px;
    }
    
    .nft-title {
        font-size: 12px;
    }
    
    .nft-year,
    .nft-chain,
    .nft-supply,
    .nft-distribution,
    .nft-onchain,
    .nft-type,
    .nft-link a {
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .nfts-main {
        padding: 70px 16px 24px;
    }
    
    .nfts-page-header {
        margin-bottom: 24px;
        text-align: center;
    }
    
    .nfts-page-title {
        font-size: 18px;
    }
    
    .nfts-table-header {
        display: none;
    }
    
    .nft-item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        margin-bottom: 12px;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(170, 170, 170, 0.3);
        border-radius: 4px;
    }
    
    .nft-item:hover {
        background: rgba(0, 0, 0, 0.4);
    }
    
    /* Title and Chain Header */
    .nft-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .nft-title {
        font-size: 15px;
        color: var(--dos-white);
        margin: 0;
        padding: 0;
        flex: 1;
        white-space: normal;
        line-height: 1.3;
    }
    
    .nft-chain-badge {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        font-weight: 500;
    }
    
    .nft-chain-badge[data-chain="Bitcoin"] {
        background: rgba(247, 147, 26, 0.2);
        color: #F7931A;
        border: 1px solid rgba(247, 147, 26, 0.4);
    }
    
    .nft-chain-badge[data-chain="Ethereum"] {
        background: rgba(98, 126, 234, 0.2);
        color: #627EEA;
        border: 1px solid rgba(98, 126, 234, 0.4);
    }
    
    .nft-chain-badge[data-chain="Tezos"] {
        background: rgba(44, 125, 247, 0.2);
        color: #2C7DF7;
        border: 1px solid rgba(44, 125, 247, 0.4);
    }
    
    .nft-chain-badge[data-chain="Solana"] {
        background: rgba(20, 241, 149, 0.15);
        color: #14F195;
        border: 1px solid rgba(20, 241, 149, 0.4);
    }
    
    .nft-chain-badge[data-chain="Counterparty"] {
        background: rgba(235, 20, 90, 0.2);
        color: #EB145A;
        border: 1px solid rgba(235, 20, 90, 0.4);
    }
    
    /* Meta Grid */
    .nft-meta-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 12px;
    }
    
    .nft-meta-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .nft-meta-label {
        color: var(--dos-cyan);
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0.8;
    }
    
    .nft-meta-value {
        color: var(--dos-grey-light);
        font-size: 12px;
    }
    
    .nft-meta-value.onchain-yes {
        color: #00FF00;
    }
    
    .nft-meta-value.onchain-no {
        color: var(--dos-grey);
        opacity: 0.5;
    }
    
    /* View Link Button */
    .nft-link {
        margin-top: 4px;
    }
    
    .nft-link a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
        background: rgba(0, 170, 170, 0.15);
        border: 1px solid var(--dos-cyan);
        color: var(--dos-cyan);
        text-decoration: none;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.2s ease;
        border-radius: 3px;
        min-height: 44px;
    }
    
    .nft-link a:hover,
    .nft-link a:active {
        background: rgba(0, 170, 170, 0.3);
        color: var(--dos-white);
    }
    
    .nft-header-left {
        gap: 12px;
    }
    
    .nfts-title {
        display: none;
    }
    
    .nfts-footer {
        margin-top: 24px;
    }
}

/* Scanlines overlay for retro effect */
.nfts-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    opacity: 0.3;
}

/* Cursor blink */
.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


