/* NFT Template Specific Styles */

/* Fix body overflow and base layout */
body.page-template-page-nft-php {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.page-template-page-nft-php .site {
    background: #ffffff;
}

body.page-template-page-nft-php .ast-container {
    max-width: 100%;
    padding: 0;
}

body.page-template-page-nft-php .site-content {
    padding: 0;
    margin: 0;
}

/* Remove extra padding for our own header */
body.page-template-page-nft-php .dashboard-container {
    padding-top: 0;
}

/* Hide dashboard grid similar to mining template */
body.page-template-page-nft-php .dashboard-grid {
    display: none !important;
}

/* Spacing */
body.page-template-page-nft-php .discover-section {
    margin-bottom: 40px;
}

/* Fallback icon style for NFTs */
body.page-template-page-nft-php .nft-symbol-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    text-transform: uppercase;
}

/* NFT carousel filtering styles */
body.page-template-page-nft-php .nft-card {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.page-template-page-nft-php .nft-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Ensure carousel adapts to filtered items */
body.page-template-page-nft-php #nftCarousel {
    min-height: 56px;
    overflow: visible;
}

/* Carousel grid */
body.page-template-page-nft-php .nft-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 0;
    max-height: none;
    overflow: visible;
}

/* Carousel wrapper */
body.page-template-page-nft-php .nft-carousel-wrapper {
    overflow: visible;
}

/* Page title */
body.page-template-page-nft-php .nft-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

@media (max-width: 768px) {
    body.page-template-page-nft-php .nft-page-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    body.page-template-page-nft-php .nft-carousel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body.page-template-page-nft-php .nft-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        overflow: visible;
        max-height: none;
    }
    body.page-template-page-nft-php .nft-name {
        font-size: 11px;
    }
    body.page-template-page-nft-php .nft-symbol {
        font-size: 9px;
    }
}

/* Blog section styles mirroring mining template with nft-* classes */
body.page-template-page-nft-php .nft-blog-section {
    padding: 24px 16px 40px 16px;
    background: #fff;
}

body.page-template-page-nft-php .nft-blog-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

body.page-template-page-nft-php .nft-blog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

body.page-template-page-nft-php .nft-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    body.page-template-page-nft-php .nft-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body.page-template-page-nft-php .nft-blog-grid {
        grid-template-columns: 1fr;
    }
}

body.page-template-page-nft-php .nft-blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-nft-php .nft-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.page-template-page-nft-php .nft-blog-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* Match mining thumb sizing and border */
body.page-template-page-nft-php .nft-blog-thumb {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

body.page-template-page-nft-php .nft-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    body.page-template-page-nft-php .nft-blog-thumb {
        height: 180px;
    }
}

body.page-template-page-nft-php .nft-blog-content {
    padding: 12px 12px 14px 12px;
}

body.page-template-page-nft-php .nft-blog-post-title {
    font-size: 16px;
    margin: 0 0 6px 0;
    color: var(--text-dark);
}

body.page-template-page-nft-php .nft-blog-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

body.page-template-page-nft-php .nft-blog-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* View all button */
body.page-template-page-nft-php .nft-blog-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

body.page-template-page-nft-php .nft-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

body.page-template-page-nft-php .nft-view-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


