/* Base styles */
body {
    background: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

/* Navigation */
.nav-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-link {
    color: #00c6ff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0099ff;
}

/* Tab Navigation */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

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

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00c6ff;
}

/* Filters Section */
.filters-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

select {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    min-width: 150px;
}

/* Activity List */
.activity-list {
    min-height: 400px;
    position: relative;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-links {
    display: flex;
    gap: 10px;
}

.transaction-links a {
    color: #00c6ff;
    text-decoration: none;
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    color: #666;
    font-size: 14px;
}

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

.activity-row {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
}

.token-info {
    flex: 1;
}

.transaction-info {
    flex: 2;
}

.links {
    display: flex;
    gap: 1rem;
}

.links a {
    color: #00c3ff;
    text-decoration: none;
}

.error-message {
    color: #ff4444;
    text-align: center;
    padding: 2rem;
}

.no-activity {
    text-align: center;
    padding: 2rem;
    color: #666;
}

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

.pagination button {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .transaction-item {
        grid-template-columns: 1fr;
    }

    .filter-group {
        flex-direction: column;
    }

    select {
        width: 100%;
    }
}

.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

.activity-item {
    background: rgba(20, 20, 20, 0.98);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.activity-content {
    display: grid;
    grid-template-columns: 180px 1fr 160px;
    gap: 1rem;
    align-items: start;
}

/* Property Details */
.property-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    font-size: 0.75rem;
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.25rem 0;
}

.detail-label {
    color: #666;
    min-width: 85px;
}

.detail-value {
    color: #fff;
}

/* Transaction Details */
.transaction-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    text-align: center;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.expiration {
    font-size: 0.7rem;
    color: #888;
    white-space: nowrap;
}

.price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00ff88;
    white-space: nowrap;
}

/* Timestamp */
.timestamp {
    color: #666;
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

/* Wallet Info */
.wallet-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.from-address, .to-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Links styling */
.links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.links a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #00c6ff;
}

/* Token info */
.token-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.token-name:hover {
    color: #00c6ff;
}

/* Tags */
.zoning-tag, .neighborhood-tag {
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Property Image */
.property-image {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Token Info and Type */
.token-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.token-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ead206;
    text-decoration: none;
}

/* Zoning Tags */
.zoning-tag {
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

.zoning-tag.residential {
    background: rgba(46, 213, 115, 0.15);
    color: rgb(46, 213, 115);  /* Bright green */
}

.zoning-tag.commercial {
    background: rgba(0, 198, 255, 0.15);
    color: rgb(0, 198, 255);  /* Bright blue */
}

.zoning-tag.industrial {
    background: rgba(255, 214, 0, 0.15);
    color: rgb(255, 214, 0);  /* Bright yellow */
}

.zoning-tag.mixed-use {
    background: rgba(255, 159, 64, 0.15);
    color: rgb(255, 159, 64);  /* Orange */
}


/* Marketplace Links */
.marketplace {
    color: #666;
    font-weight: 500;
}

.marketplace.opensea {
    color: #18d818;  /* OpenSea blue */
}

.marketplace.reservoir {
    color: #6adcff;  /* Reservoir blue */
}

/* Transaction Links */
.from-address, .to-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-label {
    color: #666;
    min-width: 40px;
}

.address {
    color: #2081e2;  /* Etherscan blue */
    text-decoration: none;
    font-family: monospace;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.address:hover {
    color: #00c6ff;
}

/* Platform Links */
.platform-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.platform-links a {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.platform-links a:hover {
    opacity: 0.8;
}

.platform-links .etherscan {
    color: #2081e2;
}

.platform-links .opensea {
    color: #2081e2;
}

/* Timestamp */
.timestamp {
    color: #666;
    font-size: 0.75rem;
}

/* Property Image */
.property-image {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Currency Display */
.currency-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

/* ETH Styling */
.eth-sale {
    color: rgb(46, 213, 115);  /* Bright green */
}

.eth-sale .value {
    color: rgb(46, 213, 115);  /* Bright green */
    font-weight: 600;
}

/* WETH Styling */
.weth-sale {
    color: rgb(255, 214, 0);  /* Bright yellow */
}

.weth-sale .value {
    color: rgb(255, 214, 0);  /* Bright yellow */
    font-weight: 600;
}

/* OpenSea Link */
.opensea-link {
    color: #2081e2;  /* OpenSea blue */
    text-decoration: none;
    margin-left: 0.5rem;
}

.opensea-link:hover {
    text-decoration: underline;
}

/* Address label (From: and To:) */
.label {
    color: #666;
    font-size: 0.75rem;
}

.activity-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    border-radius: 8px 8px 0 0;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.activity-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 0;
}

.activity-tabs .tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.activity-tabs .tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.activity-tabs .tab.active {
    background: #d9703d;
}

#wwmm-activity-container {
    margin-top: 20px;
}

/* WILD Sale Styling */
.wild-sale {
    color: #d9703d;  /* Dark Orange */
}

.wild-sale .value {
    color: #d9703d;  /* Dark Orange */
    font-weight: 600;
}

/* WWMM Link Styling */
.platform-links .wwmm {
    color: #d9703d;  /* Dark Orange */
}

.platform-links .wwmm:hover {
    opacity: 0.8;
}

.end-of-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    border-top: 1px solid #333;
}

/* Main content visibility */
.main-content {
    display: none;
}

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

/* Main tabs styling */
.main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.main-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-tab.active {
    color: #fff;
    position: relative;
}

.main-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00c6ff;
}

/* Listings tabs styling */
.listings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.listings-tabs .tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.listings-tabs .tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.listings-tabs .tab.active {
    background: #d9703d;
}


/* Listings Container */
#opensea-listings-container,
#wwmm-listings-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px;
}

/* Listing Card */
.listing-card {
    background: rgb(8, 8, 8);
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
    margin: 4px;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

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

/* Image container */
.listing-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info section */
.listing-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00ff88;
    margin: 2px 0;
    margin-right: 8px; /* Add right margin to move it left */
}
/* Traits grid */
.traits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 2px 0;
}

.trait {
    background: #111;
    padding: 3px;
    border-radius: 2px;
    border: 1px solid #222;
}

.trait-type {
    display: block;
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 1px;
}

.trait-value {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Buy button */
.buy-button {
    padding: 6px;
    background: #2081e2;
    color: white;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 4px;
    transition: background-color 0.2s ease;
}

.buy-button:hover {
    background: #1868b7;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #opensea-listings-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    #opensea-listings-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #opensea-listings-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #opensea-listings-container {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing CSS */

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zoning-icon {
    font-size: 1.5rem;
    line-height: 1;
}


.listing-image img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 12px;
}

.listing-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #2081e2;
    margin: 8px 0;
}

.listing-traits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.trait {
    background: #040404;
    padding: 8px;
    border-radius: 4px;
}

.trait-type {
    font-weight: bold;
    color: #666;
}

.listing-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.detail {
    margin: 4px 0;
}

.detail-type {
    color: #666;
}

/* Title and price row adjustments */
.title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
    padding: 4px;
}
/* Expiration styling - move to bottom */
.expiration {
    font-size: 0.65rem;
    color: #d9703d;
    white-space: nowrap;
    text-align: right;
    order: 2; /* Ensure expiration appears second */
}

.listing-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ead206;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 4px;
}

.price {
    font-size: 0.8rem;
    font-weight: bold;
    color: #00ff88;
    white-space: nowrap;
    margin-right: 4px;
    order: 1;
}

.zoning-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.listing-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ead206;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Volume Stats Container */
.volume-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.98);
    border-radius: 8px;
    margin-bottom: 20px;
}

.volume-stat {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.volume-stat h3 {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.volume-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d9703d;
}

.volume-count {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .volume-stats-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.volume-value-usd {
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    width: 100px;
}

.price-input::placeholder {
    color: #666;
}

.price-input:focus {
    outline: none;
    border-color: #00c6ff;
}

.rarity-rank {
    font-size: 0.8em;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
