:root {
    --bg: #140b06;
    --paper: #e3cfa4;
    --paper-edge: #b49363;
    --text-main: #2f1b0f;
    --text-muted: #5b4632;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* FUNDO ORIGINAL (mantido) */
body {
    min-height: 100vh;
    font-family: "Times New Roman", serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(24, 14, 8, 0.6) 0%, rgba(10, 6, 4, 0.8) 45%, #050203 100%),
        url("hNAKGAl.jpg");
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 24px;
    background: #2b1a0e;
    border-bottom: 3px solid #3b2412;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* LOGO */
.logo-main {
    font-family: "Times New Roman", serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f3e9d4;
}

.logo-sub {
    font-size: 11px;
    letter-spacing: 3px;
    color: #c7b08a;
}

.logo-image {
    height: 85px;
}

.logo-image-index {
    height: 150px;
}

/* NAV SUPERIOR */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.nav a {
    padding: 6px 8px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a:hover {
    border: 1px solid #7b5a32;
    background: #3a2414;
}

/* SIDEBAR MAIS FORTE */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    padding: 20px 14px;
    background: #1a0f07;
    border-right: 4px solid #3b2412;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.side-nav-controls {
    margin-top: 16px;
    margin-bottom:16px;
    padding-top: 8px;
    border-top: 1px solid #3b2412;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-nav-controls-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav-controls-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c7b08a;
}

.side-nav-select {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    color: var(--text-main);
    font-size: 12px;
}

/* LINKS DA SIDEBAR (MAIORES E MAIS VISÍVEIS) */
.side-nav a {
    display: block;
    padding: 14px 12px;
    margin-bottom: 12px;

    font-size: 16px;           /* 🔥 maior */
    font-weight: bold;         /* 🔥 mais forte */
    letter-spacing: 1px;
    text-transform: uppercase;

    background: #2b1a0f;
    border: 2px solid #4a2d18;
    color: #f3e9d4;

    transition: 0.15s ease;
}

.side-nav a:hover {
    background: #5a3820;
    border-color: #d4b27a;
    color: #ffffff;
    transform: translateX(4px);
}

/* CONTEÚDO */
.page-main {
    padding: 40px 40px 40px;
    margin-left: 240px;
}

.page-main--center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.market-ad-top {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 24px;
    height: 120px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px dashed var(--paper-edge);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3e9d4;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.market-ad-right {
    position: absolute;
    top: 140px;
    right: 40px;
    width: 220px;
    min-height: 320px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px dashed var(--paper-edge);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3e9d4;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .market-ad-right {
        position: static;
        margin: 24px auto 0;
        max-width: 300px;
    }
}

.site-footer {
    margin-left: 240px;
    padding: 16px 40px 24px;
    border-top: 2px solid rgba(0, 0, 0, 0.7);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.9)
    );
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer-text {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f3e9d4;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .site-footer {
        margin-left: 0;
        padding: 16px 20px 24px;
    }
}

.page-main .hero-title {
    font-family: "Cinzel", serif !important;
    font-size: 55px !important; /* 🔥 AGORA MUDA */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 12px;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fff9dc 15%,
        #ffe28a 35%,
        #d4af37 55%,
        #b8860b 70%,
        #fff1b8 85%,
        #ffffff 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 6px 0 #5a3d10,
        0 10px 25px rgba(0,0,0,0.9),
        0 0 45px rgba(255,215,120,0.6);

    margin-bottom: 40px;
}

.sidebar-title {
    font-family: "Cinzel", serif;
    font-size: 32px; /* tamanho ideal pra sidebar */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fff6cc 20%,
        #ffe28a 45%,
        #d4af37 65%,
        #b8860b 80%,
        #fff1b8 95%,
        #ffffff 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 3px 0 #5a3d10,
        0 6px 15px rgba(0,0,0,0.8),
        0 0 20px rgba(255,215,120,0.4);

    margin: 0;
    line-height: 1.1;
    
}
.sidebar-title-top {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-main p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.top-controls-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 8px 0 12px;
}

.top-controls-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.top-controls-label {
    color: var(--text-muted);
    text-transform: uppercase;
}

.top-controls-select {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    color: var(--text-main);
    font-size: 12px;
}

.market-board {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 56px 52px;
    background: var(--paper);
    border: 3px solid var(--paper-edge);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    min-height: 60vh;
}

.market-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.market-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.market-header-main {
    max-width: 60%;
}

.sheet-embed-box {
    margin-top: 24px;
    border: 2px solid var(--paper-edge);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.sheet-embed-frame {
    width: 100%;
    min-height: 600px;
    border: none;
}

.ad-system-box {
    min-width: 220px;
    max-width: 260px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--paper-edge);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-system-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.market-back-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.market-back-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--paper-edge);
    color: #f3e9d4;
    text-decoration: none;
}

.market-section {
    margin-top: 56px;
}

.market-section-title {
    font-family: "Cinzel", serif;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
}

.city-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.city-filter-label {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.city-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.city-select {
    padding: 6px 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--paper-edge);
    color: #f3e9d4;
}

.add-ad-button {
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
    background: #2b1a0f;
    border: 2px solid #4a2d18;
    color: #f3e9d4;
    cursor: pointer;
}

.city-tag {
    padding: 6px 10px;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--paper-edge);
    color: #f3e9d4;
    cursor: pointer;
}

.buyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.buyer-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--paper-edge);
    border-radius: 6px;
    padding: 16px 18px;
}

.buyer-name {
    font-size: 16px;
    margin-bottom: 6px;
}

.buyer-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.buyer-price {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.buyer-notes {
    font-size: 13px;
}

.item-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.item-search-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    color: var(--text-main);
    border-radius: 999px;
}

.item-search-select {
    padding: 6px 10px;
    border: 1px solid var(--paper-edge);
    background: var(--paper);
    color: var(--text-main);
    font-size: 13px;
    border-radius: 999px;
}

.item-search-button {
    padding: 8px 14px;
    font-size: 14px;
    text-transform: uppercase;
    background: #2b1a0f;
    border: 2px solid #4a2d18;
    color: #f3e9d4;
    cursor: pointer;
}

.item-filter-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.item-filter-group {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--paper-edge);
    border-radius: 6px;
    padding: 14px 16px;
}

.item-filter-group-title {
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.item-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.item-filter-label {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.item-filter-tag {
    padding: 4px 8px;
    font-size: 12px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--paper-edge);
    color: #f3e9d4;
    cursor: pointer;
}

.market-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--paper);
    border: 2px solid var(--paper-edge);
    border-radius: 4px;
    padding: 24px 22px;
    min-height: 210px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.market-button:hover {
    background: #f7e6bc;
    border-color: #e0b96a;
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
}

.market-icon {
    width: 130px;
    height: 130px;
    margin-bottom: 12px;
    border-radius: 8px;
    object-fit: contain;
}

.market-icon-1 {
    width: 300px;
    height: 300px;
    margin-bottom: 12px;
    border-radius: 8px;
    object-fit: contain;
}

.market-button-title {
    font-family: "Cinzel", serif;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-align: center;
}

.market-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.market-button-text {
    font-size: 15px;
    margin-bottom: 12px;
    text-align: center;
}

.market-card-price {
    font-weight: bold;
    font-size: 14px;
    color: #3b2412;
}

/* BOTÃO ESTILO ANTIGO */
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;

    background: #5865F2;      /* cor principal do Discord */
    color: #ffffff;           /* texto/ícone brancos */
    border: 2px solid #404EED;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
    cursor: pointer;
}

.btn-discord:hover {
    background: #4752C4;      /* variação mais escura no hover */
    border-color: #232DEB;
}
/* ÍCONES */
.discord-svg,
.discord-svg-index {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }

    .side-nav {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #3b2412;
        flex-direction: row;
        overflow-x: auto;
    }

    .side-nav a {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .page-main {
        margin-left: 0;
        padding-top: 40px;
    }
}
