/* NFT Card Styles */

.nft-card {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(108, 99, 255, 0.3);
    border-color: rgba(108, 99, 255, 0.6);
}

.nft-card:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6c63ff, #ff6b6b, #6c63ff);
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nft-card:hover:before {
    opacity: 1;
}

.nft-card-image-container {
    position: relative;
    overflow: hidden;
    height: 220px; /* Fixed height for consistency */
}

.nft-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    transition: transform 0.5s ease;
}

.nft-card-content {
    padding: 15px;
}

.nft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.nft-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.nft-card-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(108, 99, 255, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
}

.nft-card-details {
    margin-bottom: 15px;
}

.nft-card-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.nft-card-detail-label {
    color: var(--text-secondary);
}

.nft-card-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.nft-card-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.nft-card-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 5px;
}

.nft-card-price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6c63ff;
    display: flex;
    align-items: center;
}

.nft-card-price-value i {
    font-size: 0.9rem;
    margin-right: 5px;
}

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

.nft-card-button {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-card-button i {
    margin-right: 5px;
}

.nft-card-button.primary {
    background: linear-gradient(135deg, #6c63ff 0%, #5a52e0 100%);
    color: white;
}

.nft-card-button.primary:hover {
    background: linear-gradient(135deg, #5a52e0 0%, #4a43d0 100%);
    box-shadow: 0 5px 10px rgba(90, 82, 224, 0.3);
}

.nft-card-button.secondary {
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.nft-card-button.secondary:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.5);
}

.nft-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.nft-card-badge {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.nft-card-badge.fractional {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.8) 0%, rgba(90, 82, 224, 0.8) 100%);
}

.nft-card-badge.parent {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(224, 82, 82, 0.8) 100%);
}

.nft-card-badge.listed {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.8) 0%, rgba(39, 174, 96, 0.8) 100%);
}

.nft-card-badge.buyout {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.8) 0%, rgba(255, 152, 0, 0.8) 100%);
}

.nft-card-owner {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}

.nft-card-owner-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    background: linear-gradient(135deg, #6c63ff 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.nft-card-owner-address {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Hover effect for image */
.nft-card-image-container:hover .nft-card-image {
    transform: scale(1.05);
}

.nft-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nft-card-image-container:hover .nft-card-image-overlay {
    opacity: 1;
}

.nft-card-view-button {
    background: rgba(108, 99, 255, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.nft-card-view-button:hover {
    background: rgba(108, 99, 255, 1);
    transform: scale(1.05);
}

/* Responsive adjustments for card content */
@media (max-width: 768px) {
    .nft-card-image-container {
        height: 180px;
    }
    
    .nft-card-content {
        padding: 12px;
    }
    
    .nft-card-title {
        font-size: 1rem;
    }
    
    .nft-card-detail {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .nft-card-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .nft-card-image-container {
        height: 200px;
    }
    
    .nft-card-content {
        padding: 10px;
    }
    
    .nft-card-title {
        font-size: 0.95rem;
    }
    
    .nft-card-detail {
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    .nft-card-button {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
}
