@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-accent: 'Space Grotesk', sans-serif;
    --accent-spacing: -0.03em;
}

/* ─── RESET ──────────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── BASE ───────────────────────────────────────────────── */

body {
    font-family: 'Chivo Mono', monospace;
    background-color: #f5f5f0;
    color: #000;
}

.hidden {
    display: none;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */

.container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 20px;
    flex: 1;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */

.sidebar {
    grid-column: 1;
    padding: 50px 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 80px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav {
    margin-bottom: 60px;
}

.nav-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.nav-item::before {
    content: '🡒';
    font-family: 'Inter', 'Apple Color Emoji', sans-serif;
    margin-right: 12px;
    font-size: 14px;
}

.nav-item:hover {
    opacity: 0.6;
}

.nav-alone {
    margin-bottom: 30px;
}

.nav-alone-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    width: auto;
}
.nav-alone-img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-alone-item:hover {
    opacity: 0.6;
}

.stats {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.stats div {
    margin-bottom: 2px;
}

.status-line {
    font-size: 11px;
    color: #666;
    margin-top: 20px;
    line-height: 1.5;
    min-height: 20px;
}

.stat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    margin-bottom: 8px;
}

.stat-link:hover {
    opacity: 0.6;
}

.stat-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.connect-btn {
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-family: 'Chivo Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.connect-btn:hover {
    background-color: #333;
}

.cache-btn {
    margin-top: 10px;
    background-color: #666;
}

.cache-btn:hover {
    background-color: #444;
}

.wallet-addr {
    font-size: 10px;
    color: #666;
    margin-top: 8px;
    word-break: break-all;
}

.simple-btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-family: 'Chivo Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: #333;
}

.mint-btn {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-family: 'Chivo Mono', monospace;
    font-size: 18px;
    cursor: pointer;
    width: 50%;
    text-align: center;
}

.mint-btn:hover {
    background-color: #333;
}

/* ─── CONTENT ────────────────────────────────────────────── */

.content {
    grid-column: 2 / -1;
    padding: 50px 40px 80px 0;
}

.intro {
    margin-bottom: 35px;
}

.intro h1 {
    font-family: var(--font-accent);
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: var(--accent-spacing);
}

.intro p {
    font-size: 14px;
    line-height: 1.65;
}

.divider {
    border: none;
    border-top: 1px solid #000;
    margin: 45px 0;
}

.section-title {
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: var(--accent-spacing);
}

.section-title::before {
    content: '';
    width: 22px; 
    height: 22px;
    background-image: url('../media/logo-black.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* ─── GRIDS ──────────────────────────────────────────────── */

.grid1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
    background-color: #eae4d9;
    padding: 20px;
}

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

.grid1-inner-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.grid1-item2 {
    text-align: left;
}

.grid1-body {
    font-family: 'Chivo Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
}

.grid1 .title {
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.5;
    letter-spacing: var(--accent-spacing);
}

.grid1-full {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #eae4d9;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.grid3-item {
    text-align: left;
}

.grid3-block {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
}

.grid3-title {
    font-family: var(--font-accent);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: var(--accent-spacing);
}

.grid3-body {
    font-family: 'Chivo Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.grid4-item {
    text-align: left;
}

.grid4-block {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
}

.grid4-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid4-title {
    font-family: var(--font-accent);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: var(--accent-spacing);
}

.grid4-body {
    font-family: 'Chivo Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
}

/* ─── GALLERY ────────────────────────────────────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    text-align: left;
}

.gallery-loading {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #999;
    padding: 40px 0;
}

.art-preview {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0;
    line-height: 0;
    background: #000;
}

.art-preview canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.art-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.art-title {
    font-family: 'Chivo Mono', monospace;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
}

.art-title-mini {
    font-family: 'Chivo Mono', monospace;
    font-size: 10px;
    margin-bottom: 8px;
    font-weight: 400;
}

.art-details {
    font-size: 9.5px;
    line-height: 1.5;
}

.art-details div {
    margin-bottom: 1px;
}

/* ─── COMMUNITY GALLERY ──────────────────────────────────── */

.community-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.community-grid .gallery-item .art-preview {
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
}

.community-grid .gallery-item .art-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ─── PAGER ──────────────────────────────────────────────── */

.gallery-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    font-family: 'Chivo Mono', monospace;
    font-size: 11px;
}

.pager-btn {
    background: #fff;
    border: 1px solid #000;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Chivo Mono', monospace;
    font-size: 11px;
    transition: background 0.15s;
}

.pager-btn:hover {
    background: #000;
    color: #fff;
}

.pager-current {
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border: 1px solid #000;
}

.pager-dots {
    padding: 6px 4px;
    color: #999;
}

/* ─── TRANSFERS ──────────────────────────────────────────── */

.transfers {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* ─── HISTORY ────────────────────────────────────────────── */

.history-input {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-bottom: 45px;
}

.history-input label {
    font-size: 11px;
    white-space: nowrap;
}

.history-input input {
    border: 1px solid #000;
    padding: 10px 14px;
    font-family: 'Chivo Mono', monospace;
    font-size: 11px;
    width: 220px;
    background: #fff;
    outline: none;
}

.history-input button {
    background-color: #eae4d9;
    border: none;
    padding: 10px 24px;
    font-family: 'Chivo Mono', monospace;
    font-size: 10px;
    cursor: pointer;
}

.history-input button:hover {
    background-color: #c8c8bc;
}

.history-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.history-column {
    grid-column: span 1;
}

.history-column2 {
    grid-column: span 4;
}

.history-column h3 {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.history-art {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.history-art canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.history-info {
    grid-column: span 2;
}

.history-title {
    font-family: var(--font-accent);
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: var(--accent-spacing);
}

.history-info .art-details {
    font-family: 'Chivo Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.history-empty {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #999;
    padding: 20px 0;
}

/* ─── TIMELINE ───────────────────────────────────────────── */

.history-timeline {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timeline-thumb {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ebebdf;
    overflow: hidden;
}

.timeline-thumb canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.timeline-thumb.current {
    border: 2px solid #000;
}

.timeline-label {
    font-size: 8px;
    text-align: center;
    color: #666;
    width: 100%;
    word-break: break-all;
}

/* ─── SIMULATOR ──────────────────────────────────────────── */

#preview-section .history-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

/* ─── FAQ ────────────────────────────────────────────────── */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0 12px;
}

.faq-n {
    font-family: 'Chivo Mono', monospace;
    font-size: 11px;
    color: #999;
    padding-top: 2px;
}

.faq-q {
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    user-select: none;
    line-height: 1.5;
    letter-spacing: var(--accent-spacing);
}

.faq-q:hover {
    opacity: 0.6;
}

.faq-arrow {
    font-size: 14px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 20px;
    color: #999;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    grid-column: 2;
    font-family: 'Chivo Mono', monospace;
    font-size: 12px;
    line-height: 1.65;
    color: #444;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ─── MINT ─────────────────────────────────────────────── */

.mint-info {
    font-family: 'Chivo Mono', monospace;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}

.mint-info-mini {
    font-family: 'Chivo Mono', monospace;
    font-size: 12px;
    color: #000;
    margin-bottom: 8px;
}

.mint-info-mini a{
    color: #000;
    text-decoration: underline;
}

.mint-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin: 0 auto;
    margin-bottom: 20px;
}

.mint-logo img {
    width:100%;
    height:100%;
    object-fit:contain;
}

/* ─── INPUT FIELDS ─────────────────────────────────────────────── */

.input-field {
    border:1px solid #000;
    padding:10px 14px;
    font-family:'Chivo Mono',monospace;
    font-size:11px;
    width:100%;
    background:#fff;
    outline:none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */

.footer {
    background-color: #000;
    color: #fff;
    padding: 35px 45px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.footer-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.footer-icon img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.footer-text {
    font-size: 13px;
}

.footer-links {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* ─── RESPONSIVE 800px ───────────────────────────────────── */

@media (max-width: 800px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        height: auto;
        position: static;
        padding: 30px;
    }

    .content {
        padding: 30px;
    }

    .logo {
        margin-bottom: 30px;
    }

    .nav {
        margin-bottom: 30px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .transfers {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-display {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-info {
        grid-column: 1 / -1;
    }

    .history-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ─── RESPONSIVE 500px ───────────────────────────────────── */

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-display {
        grid-template-columns: 1fr 1fr;
    }

    .history-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}



.grid6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.grid6-item {
    text-align: left;
}

.grid6-block {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    background: #000;
}

.grid6-block canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.grid6-title {
    font-family: var(--font-accent);
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: var(--accent-spacing);
}

.grid6-body {
    font-family: 'Chivo Mono', monospace;
    font-size: 10px;
    line-height: 1.5;
    color: #000;
}

@media (max-width: 800px) {
    .grid6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .grid6 { grid-template-columns: repeat(2, 1fr); }
}


/* ─── ARTIST GALLERY ──────────────────────────────────────────────── */

.guild-data {
    display:none;
    margin-top: 25px;
}

.guild-data-block {
    display:grid;
    grid-template-columns:1fr 1fr;
}

.guild-data-item {
    padding: 20px 24px;
}

/* ─── Listing ──────────────────────────────────────────────── */

.listing-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
    margin-bottom: 8px;
    font-size: 12px;
}

.listing-btn:hover {
    opacity: 0.6 !important;
}

.stat-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.grid5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 800px) {
    .grid5 { grid-template-columns: repeat(2, 1fr); }
}