/* =========================================================
   DivinationChaloce Theme — NFT
   Dark Theme + Gold Frame + Vertical Frame
   ========================================================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #000;
}

body.dc-nft-body {
    width: 100%;
    min-height: 100vh;
    direction: rtl;
    background-color: #05080f;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: #e5e5e8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* =========================================================
   قاب عمودی NFT
   ========================================================= */

.dc-nft-frame {
    position: relative;
    width: 100%;
    max-width: calc(100vh * 0.8);
    min-height: 100vh;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;

    /* ===== تصویر پس‌زمینه ===== */
    background-image: url('../../assets/images/bg/nft-bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: local;   /* با اسکرول داخلی همراه باشد */
    background-color: #0f0f14;      /* رنگ جایگزین اگر تصویر لود نشد */

    box-shadow: 0 0 80px rgba(0, 0, 0, .9);
    z-index: 1;
}

.dc-nft-scroll {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, .4) transparent;
}
.dc-nft-scroll::-webkit-scrollbar { width: 6px; }
.dc-nft-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, .4);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .dc-nft-frame { max-width: 100%; }
}

/* =========================================================
   Sandwich Menu
   ========================================================= */

.dc-nft-menu-toggle {
    position: fixed;
    top: 20px;
    right: calc(50% - (100vh * 0.4) + 20px);
    width: 42px;
    height: 42px;
    background: rgba(15, 15, 20, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, .5);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all .3s ease;
}

.dc-nft-menu-toggle:hover {
    background: rgba(212, 175, 55, .25);
    border-color: #f0e68c;
}

.dc-nft-menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #f0e68c;
    border-radius: 2px;
    transition: all .3s ease;
}

.dc-nft-menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.dc-nft-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.dc-nft-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.dc-nft-menu {
    position: fixed;
    top: 72px;
    right: calc(50% - (100vh * 0.4) + 20px);
    min-width: 200px;
    background: rgba(15, 15, 20, .96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s ease;
}

.dc-nft-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dc-nft-menu a {
    display: block;
    padding: 10px 18px;
    color: #e5e5e8;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s ease;
    border-right: 2px solid transparent;
}

.dc-nft-menu a:hover {
    background: rgba(212, 175, 55, .1);
    color: #f0e68c;
    border-right-color: #d4af37;
}

@media (max-width: 768px) {
    .dc-nft-menu-toggle { top: 15px; right: 15px; width: 38px; height: 38px; }
    .dc-nft-menu { top: 62px; right: 15px; min-width: 180px; }
    .dc-nft-menu a { font-size: 12px; padding: 9px 16px; }
}

/* =========================================================
   Hero
   ========================================================= */

.dc-nft-hero {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, .25);
}

.dc-nft-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 20, .85) 0%,
        rgba(15, 15, 20, .55) 50%,
        rgba(15, 15, 20, .85) 100%
    );
    z-index: 1;
}

.dc-nft-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}

.dc-nft-hero-title {
    margin: 0 0 12px;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #d4af37 0%, #f0e68c 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(212, 175, 55, .35);
}

.dc-nft-hero-subtitle {
    margin: 0;
    font-size: 1rem;
    opacity: .9;
    color: #d4d4dc;
    letter-spacing: 1px;
}

/* =========================================================
   Container
   ========================================================= */

.dc-nft-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

/* =========================================================
   Intro
   ========================================================= */

.dc-nft-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 100%;
}

.dc-nft-intro h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #d4af37;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, .4);
}

.dc-nft-intro p {
    margin: 0;
    line-height: 1.9;
    color: #a0a0b0;
    font-size: .9rem;
}

/* =========================================================
   NFT Grid
   ========================================================= */

.dc-nft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.dc-nft-card {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 34, .85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .15);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.dc-nft-card:hover {
    border-color: rgba(212, 175, 55, .5);
    box-shadow: 0 12px 40px rgba(212, 175, 55, .15), 0 0 30px rgba(0, 0, 0, .6);
    transform: translateY(-4px);
}

.dc-nft-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #0f0f14;
    border-bottom: 1px solid rgba(212, 175, 55, .15);
}

.dc-nft-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .3s ease;
    filter: brightness(.95);
}

.dc-nft-card:hover .dc-nft-card-image img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.dc-nft-card-badge {
    position: absolute;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: .3px;
}

.dc-nft-card-badge--sale {
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, .5);
}

.dc-nft-card-badge--new {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10a37f, #0d8c6d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 163, 127, .5);
}

.dc-nft-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dc-nft-card-title {
    margin: 0 0 8px;
    font-size: .98rem;
    line-height: 1.5;
    font-weight: 700;
}

.dc-nft-card-title a {
    color: #e5e5e8;
    text-decoration: none;
    transition: color .2s;
}

.dc-nft-card-title a:hover {
    color: #d4af37;
    text-shadow: 0 0 12px rgba(212, 175, 55, .5);
}

.dc-nft-card-excerpt {
    margin: 0 0 12px;
    color: #8888a0;
    font-size: .82rem;
    line-height: 1.8;
    flex: 1;
}

.dc-nft-card-price {
    color: #d4af37;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-shadow: 0 0 10px rgba(212, 175, 55, .3);
}

.dc-nft-card-price del {
    color: #666;
    font-size: .8rem;
    font-weight: normal;
    margin-left: 6px;
}

.dc-nft-card-price ins {
    text-decoration: none;
}

.dc-nft-card-actions {
    display: flex;
    gap: 8px;
}

.dc-nft-card-button {
    display: block;
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    transition: background .2s, transform .2s;
}

.dc-nft-card-button--primary {
    background: linear-gradient(135deg, #d4af37, #f0e68c);
    color: #1a1a22;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .3);
}

.dc-nft-card-button--primary:hover {
    background: linear-gradient(135deg, #f0e68c, #d4af37);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, .45);
}

.dc-nft-card-button--secondary {
    background: transparent;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, .4);
}

.dc-nft-card-button--secondary:hover {
    background: rgba(212, 175, 55, .1);
    border-color: #d4af37;
}

/* =========================================================
   Pagination
   ========================================================= */

.dc-nft-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dc-nft-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(26, 26, 34, .85);
    border: 1px solid rgba(212, 175, 55, .2);
    border-radius: 8px;
    color: #d4d4dc;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
    transition: background .2s, border-color .2s, color .2s;
    min-width: 38px;
    text-align: center;
}

.dc-nft-pagination .page-numbers:hover,
.dc-nft-pagination .page-numbers.current {
    background: linear-gradient(135deg, #d4af37, #f0e68c);
    color: #1a1a22;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, .4);
}

/* =========================================================
   Empty State
   ========================================================= */

.dc-nft-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(26, 26, 34, .85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px dashed rgba(212, 175, 55, .35);
    border-radius: 14px;
    color: #a0a0b0;
}

.dc-nft-empty-image {
    max-width: 160px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    opacity: .7;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, .3));
}

.dc-nft-empty h2 {
    margin: 0 0 10px;
    color: #d4af37;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, .5);
}

.dc-nft-empty p {
    margin: 0 0 20px;
    line-height: 1.8;
    font-size: .9rem;
}

.dc-nft-empty-cta {
    display: inline-block;
    padding: 11px 26px;
    background: linear-gradient(135deg, #d4af37, #f0e68c);
    color: #1a1a22;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .2s, box-shadow .2s;
}

.dc-nft-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, .4);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .dc-nft-hero { height: 260px; margin-bottom: 30px; }
    .dc-nft-hero-title { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .dc-nft-hero { height: 200px; margin-bottom: 24px; }
    .dc-nft-hero-title { font-size: 1.8rem; letter-spacing: 2px; }
    .dc-nft-hero-subtitle { font-size: .85rem; }

    .dc-nft-container { padding: 0 14px 40px; }

    .dc-nft-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dc-nft-card-body { padding: 14px 14px 16px; }
    .dc-nft-card-title { font-size: .92rem; }
    .dc-nft-card-excerpt { font-size: .78rem; }

    .dc-nft-pagination .page-numbers {
        padding: 7px 12px;
        font-size: .78rem;
        min-width: 34px;
    }
}