/* Art Storefront Styles */

/* Hero */
.art-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.art-hero h2 {
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.art-hero p {
    color: #666;
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #555;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #00ff00;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.collection-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.collection-card:hover {
    border-color: #00ff00;
    transform: translateY(-2px);
}

.collection-card-image {
    aspect-ratio: 16/9;
    background: #050505;
    overflow: hidden;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.collection-card:hover .collection-card-image img {
    transform: scale(1.03);
}

.collection-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #111);
}

.collection-card-info {
    padding: 1.2rem;
}

.collection-card-info h3 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0.3rem;
}

.collection-card-artist {
    font-size: 0.85rem;
    color: #00ff00;
    margin-bottom: 0.3rem;
}

.collection-card-count {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.collection-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Collection Header */
.collection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.collection-cover {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    width: 100%;
}

.collection-header h2 {
    font-size: 1.8rem;
    color: #00ff00;
    margin-bottom: 0.3rem;
}

.collection-artist {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.collection-description {
    color: #666;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* NFT Public Grid */
.nft-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.nft-public-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.nft-public-card:hover {
    border-color: #00ff00;
    transform: translateY(-2px);
}

.nft-public-image {
    position: relative;
    aspect-ratio: 1;
    background: #050505;
    overflow: hidden;
}

.nft-public-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.nft-public-card:hover .nft-public-image img {
    transform: scale(1.03);
}

.nft-public-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #111);
}

.nft-sold-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #4fc3f7;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #004466;
}

.nft-public-info {
    padding: 0.8rem;
}

.nft-public-info h3 {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-public-edition {
    font-size: 0.8rem;
    color: #555;
}

.nft-public-price {
    font-size: 1rem;
    color: #00ff00;
    font-weight: 600;
    margin-top: 0.3rem;
}

.nft-public-price.sold {
    color: #4fc3f7;
}

/* Piece Detail */
.piece-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.piece-image-wrap {
    position: relative;
}

.piece-image {
    width: 100%;
    border-radius: 8px;
    background: #050505;
}

.piece-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.piece-info h2 {
    font-size: 1.8rem;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.piece-artist {
    color: #888;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.piece-edition {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.piece-collection {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.piece-collection a {
    color: #00ff00;
}

.piece-description {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
}

/* Purchase */
.piece-purchase {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
}

.piece-price {
    font-size: 1.8rem;
    color: #00ff00;
    font-weight: 700;
    margin-bottom: 1rem;
}

.piece-price.sold {
    color: #4fc3f7;
}

.piece-price-note {
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.piece-purchase-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #888;
    min-height: 1.5em;
}

.piece-buyer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-family: monospace;
}

.piece-tx {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.piece-tx a {
    color: #00ff00;
}

.piece-chain-info {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.piece-chain-info a {
    color: #888;
    text-decoration: none;
}

.piece-chain-info a:hover {
    color: #00ff00;
}

/* Responsive */
@media (max-width: 700px) {
    .piece-detail {
        grid-template-columns: 1fr;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .nft-public-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .art-hero h2 {
        font-size: 1.5rem;
    }
}
