/**
 * NFT MARKETPLACE STYLES
 * PinocchioNews.io
 */

/* Container */
.nft-marketplace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
}

/* Header */
.marketplace-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.marketplace-title h1 {
    font-size: 2rem;
    color: #00ff00;
    margin: 0;
}

.marketplace-title p {
    color: #aaa;
    margin: 5px 0 0;
}

/* Stats */
.marketplace-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

/* Actions */
.marketplace-actions {
    display: flex;
    gap: 10px;
}

.marketplace-actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect-wallet {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
}

.btn-my-nfts {
    background: linear-gradient(135deg, #00ffff, #0099cc);
    color: #000;
}

.btn-list-nft {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: #fff;
}

.marketplace-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

/* External Marketplaces */
.external-marketplaces {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.external-link img {
    width: 20px;
    height: 20px;
}

.external-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.external-link.opensea:hover {
    background: rgba(32, 129, 226, 0.3);
}

.external-link.blur:hover {
    background: rgba(255, 102, 0, 0.3);
}

.external-link.rarible:hover {
    background: rgba(254, 218, 3, 0.3);
}

/* Filters */
.marketplace-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #00ff00;
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #00ff00;
}

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

.price-range input {
    width: 80px;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group input {
    width: 100%;
}

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

/* NFT Card */
.nft-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.nft-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.nft-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nft-card:hover .nft-image {
    transform: scale(1.05);
}

.nft-tier-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
}

.auction-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

/* Rarity Badges */
.rarity-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-common {
    background: linear-gradient(135deg, #808080, #606060);
    color: #fff;
}

.rarity-uncommon {
    background: linear-gradient(135deg, #1eff00, #00cc00);
    color: #000;
}

.rarity-rare {
    background: linear-gradient(135deg, #0070dd, #0050aa);
    color: #fff;
}

.rarity-epic {
    background: linear-gradient(135deg, #a335ee, #8020cc);
    color: #fff;
}

.rarity-legendary {
    background: linear-gradient(135deg, #ff8000, #cc6600);
    color: #fff;
}

.rarity-mythic {
    background: linear-gradient(135deg, #e6cc80, #b8a050);
    color: #000;
}

.rarity-unique {
    background: linear-gradient(135deg, #ff00ff, #cc00cc);
    color: #fff;
    animation: pulse-glow 2s infinite;
}

.rarity-genesis {
    background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0077ff, #9900ff);
    background-size: 200% 100%;
    animation: rainbow-shift 3s linear infinite;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.8); }
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nft-info {
    padding: 15px;
}

.nft-name {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #fff;
}

.nft-headline {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Verdict and Category */
.nft-verdict-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.verdict-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.nft-points {
    font-size: 0.8rem;
    color: #ffd700;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
    display: inline-block;
}

.nft-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.nft-price {
    display: flex;
    flex-direction: column;
}

.eth-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00ff00;
}

.pnc-price {
    font-size: 0.8rem;
    color: #888;
}

.nft-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #666;
}

.nft-stats i {
    margin-right: 4px;
}

.auction-timer {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 0.85rem;
    color: #ff6b6b;
    text-align: center;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    color: #fff;
    margin: 0 0 10px;
}

.no-results p {
    color: #888;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.btn-load-more {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #00ff00;
    color: #000;
}

/* Modals */
.nft-modal,
.list-modal,
.my-nfts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999998;
    padding: 20px;
    overflow-y: auto;
}

.nft-modal-content,
.list-modal-content,
.my-nfts-modal-content {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 2px solid #00ff00;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.modal-header h2 {
    margin: 0;
    color: #00ff00;
}

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 20px;
}

/* NFT Detail Modal */
.nft-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

@media (max-width: 768px) {
    .nft-detail-body {
        grid-template-columns: 1fr;
    }
}

.nft-detail-image {
    position: relative;
}

.nft-detail-image img {
    width: 100%;
    border-radius: 10px;
}

.nft-tier-badge-large {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #000;
}

.nft-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nft-headline-large {
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #00ff00;
}

/* Verdict and Category Detail */
.nft-verdict-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.verdict-large {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-large {
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    font-size: 0.9rem;
}

.points-earned-large {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    color: #ffd700;
    font-size: 1rem;
    text-align: center;
}

.rarity-badge-large {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.nft-price-section {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
}

.current-price .label,
.auction-info .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.current-price .eth-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
}

.current-price .pnc-value {
    display: block;
    font-size: 0.9rem;
    color: #888;
}

.auction-info .timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.nft-features h4 {
    color: #00ff00;
    margin: 0 0 10px;
}

.nft-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nft-features li {
    padding: 5px 0;
    color: #ccc;
}

.nft-metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.meta-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.meta-item .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 3px;
}

.meta-item .value {
    color: #fff;
    font-weight: bold;
}

.nft-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nft-actions button {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
}

.btn-bid {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    color: #fff;
}

.btn-offer {
    background: linear-gradient(135deg, #00ffff, #0099cc);
    color: #000;
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nft-actions button:hover {
    transform: translateY(-2px);
}

.external-links {
    display: flex;
    gap: 20px;
}

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

.external-links a:hover {
    text-decoration: underline;
}

/* List NFT Form */
.list-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #00ff00;
}

.form-group select,
.form-group input {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.sale-type-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input {
    accent-color: #00ff00;
}

.form-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.form-info p {
    margin: 5px 0;
    color: #aaa;
}

.btn-list-submit {
    padding: 15px;
    background: linear-gradient(135deg, #00ff00, #00cc00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-list-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

/* My NFTs */
.connect-prompt {
    text-align: center;
    padding: 60px 20px;
}

.connect-prompt h3 {
    color: #fff;
    margin: 0 0 10px;
}

.connect-prompt p {
    color: #888;
    margin-bottom: 20px;
}

.my-nfts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.my-nft-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.my-nft-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.my-nft-info {
    padding: 10px;
}

.my-nft-info h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #000;
}

.my-nft-actions {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.my-nft-actions button {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
}

.my-nft-actions button:hover {
    background: #00ff00;
    color: #000;
}

/* Notifications */
.marketplace-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.marketplace-notification.success {
    background: linear-gradient(135deg, #00cc00, #009900);
    color: #fff;
}

.marketplace-notification.error {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

.marketplace-notification.warning {
    background: linear-gradient(135deg, #ffaa00, #cc8800);
    color: #000;
}

.marketplace-notification.info {
    background: linear-gradient(135deg, #0099ff, #0066cc);
    color: #fff;
}

.marketplace-notification button {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .marketplace-header {
        flex-direction: column;
        text-align: center;
    }
    
    .marketplace-stats {
        justify-content: center;
    }
    
    .marketplace-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .marketplace-filters {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    
    .nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .external-marketplaces {
        flex-direction: column;
        text-align: center;
    }
}
