/* ==========================================================================
   WYD ARES — tema do site (usado por todas as páginas)
   ========================================================================== */

:root {
    --bg: #0d0906;
    --bg-2: #140e09;
    --panel: rgba(28, 20, 13, .82);
    --panel-head: rgba(36, 26, 16, .6);
    --line: rgba(196, 146, 74, .22);
    --line-soft: rgba(255, 255, 255, .06);
    --gold: #e8a94f;
    --gold-light: #f6c97a;
    --gold-deep: #c9822f;
    --cream: #f4e6cc;
    --text: #eadbc0;
    --muted: #b3a185;
    --dim: #7f705c;
    --online: #4ade80;
    --soon: #f6c97a;
    --font-title: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(900px 600px at 12% 8%, rgba(120, 82, 30, .38), transparent 70%),
        radial-gradient(700px 500px at 88% 40%, rgba(90, 60, 25, .22), transparent 70%),
        radial-gradient(800px 600px at 20% 85%, rgba(80, 52, 20, .2), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    background-color: var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

main { flex: 1 0 auto; }

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

::selection { background: rgba(232, 169, 79, .35); color: #fff; }

html { scrollbar-color: var(--gold-deep) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-deep)); border-radius: 10px; border: 2px solid var(--bg); }

.container {
    width: min(1090px, calc(100% - 32px));
    margin: 0 auto;
}

/* ---------- Brasas ao fundo ---------- */
.embers {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffd38a;
    box-shadow: 0 0 6px 1px rgba(246, 180, 90, .7);
    opacity: 0;
    animation: rise linear infinite;
}

@keyframes rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .8; }
    90%  { opacity: .5; }
    100% { transform: translate(var(--drift, 30px), -105vh); opacity: 0; }
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Cabeçalho ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 9, 6, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.nav {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .95rem;
}

.nav-links a,
.nav-actions a:not(.btn) {
    color: var(--muted);
    transition: color .2s;
}

.nav-links a:hover,
.nav-actions a:not(.btn):hover { color: var(--cream); }

.nav-links a.is-active { color: var(--gold-light); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    color: #1d1207;
    border: 0;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    box-shadow: 0 8px 22px rgba(201, 130, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 169, 79, .45), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.btn-outline {
    color: var(--gold-light);
    border: 1px solid rgba(232, 169, 79, .45);
    background: rgba(13, 9, 6, .35);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(232, 169, 79, .1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: .9rem;
}

/* ---------- Hero (página inicial) ---------- */
.hero {
    padding: 80px 0 70px;
    text-align: center;
}

.hero-logo {
    display: block;
    width: auto;
    height: 170px;
    margin: 0 auto 36px;
    filter: drop-shadow(0 0 24px rgba(232, 169, 79, .25)) drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(232, 169, 79, .4);
    background: rgba(40, 28, 16, .7);
    color: var(--gold-light);
    font-size: .85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--soon);
    box-shadow: 0 0 8px var(--soon);
    animation: pulse 2s ease-in-out infinite;
}

.status.is-online .status-dot {
    background: var(--online);
    box-shadow: 0 0 8px var(--online);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.hero h1 {
    margin: 10px 0 14px;
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--cream);
    text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}

.hero p {
    max-width: 580px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-actions .btn { min-width: 160px; padding: 14px 24px; }

.hero-community { margin-top: 24px; }

/* ---------- Topo das páginas internas ---------- */
.page-head {
    padding: 56px 0 10px;
}

.page-head h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--cream);
}

.page-head h1 svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
    flex-shrink: 0;
}

.page-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- Seções ---------- */
.section { padding: 50px 0; }
.section.tight { padding-top: 24px; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--cream);
}

.section-title svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.section-sub {
    margin: 6px 0 22px;
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- Painel / caixa ---------- */
.panel {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.panel-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 44px 24px;
    text-align: center;
}

.panel-center h2 {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--cream);
}

.panel-center p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.panel-center .hero-actions { margin-top: 8px; }

/* ---------- Notícias ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 169, 79, .55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(232, 169, 79, .1);
}

.news-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.news-card:hover .news-cover img { transform: scale(1.05); }

/* capa que mostra a arte inteira (sem cortar) */
.news-cover.full { aspect-ratio: 4 / 3; }

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(232, 169, 79, .5);
    background: rgba(13, 9, 6, .82);
    color: var(--cream);
    font-size: .75rem;
    font-weight: 600;
}

.news-body { padding: 18px 20px 22px; }

.news-body time {
    color: var(--muted);
    font-size: .85rem;
}

.news-body h3 {
    margin: 6px 0 10px;
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cream);
}

.news-card:hover h3 { color: var(--gold-light); }

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

/* ---------- Artigo (notícia / guia) ---------- */
.article {
    max-width: 820px;
    overflow: hidden;
}

.article-cover {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--line);
}

.article-inner { padding: 30px 34px 34px; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .88rem;
}

.article-meta .tag {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(232, 169, 79, .5);
    color: var(--cream);
    font-size: .75rem;
    font-weight: 600;
}

.article h2 {
    margin: 0 0 18px;
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.25;
    color: var(--cream);
}

.article-text {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-text p { margin: 0 0 1rem; }
.article-text strong { color: var(--gold-light); }

.article-text h3 {
    margin: 1.8rem 0 .7rem;
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--cream);
}

.article-text ul { margin: 0 0 1rem; padding-left: 1.3rem; list-style: none; }
.article-text li { position: relative; margin-bottom: .4rem; }
.article-text li::before {
    content: "◆";
    position: absolute;
    left: -1.2rem;
    top: .1rem;
    font-size: .65rem;
    color: var(--gold);
}

.article-sign {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    text-align: right;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--gold-light);
}

.empty {
    padding: 50px 24px;
    text-align: center;
}

.empty h2 { margin: 0 0 8px; }
.empty p { margin: 0; color: var(--muted); }

/* ---------- Tabelas ---------- */
.table-wrap {
    max-width: 672px;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.table-wrap.wide { max-width: none; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--panel-head);
    border-bottom: 1px solid var(--line-soft);
}

thead th.gold { color: var(--gold-light); }

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
}

tbody tr:last-child td { border-bottom: 0; }

tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(232, 169, 79, .05); }

td.strong { color: var(--cream); font-weight: 500; }
td.dim { color: var(--dim); }
td.gold { color: var(--gold-light); font-weight: 600; white-space: nowrap; }
td.light { color: var(--text); }

/* ---------- Rodapé ---------- */
footer {
    margin-top: 40px;
    padding: 26px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: .85rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-content img { height: 48px; width: auto; opacity: .85; }

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
    .nav-links { gap: 16px; font-size: .88rem; }
    .nav-actions { gap: 14px; font-size: .88rem; }
    .nav-links a.hide-sm { display: none; }
    .hero { padding: 50px 0 40px; }
    .hero-logo { height: 130px; margin-bottom: 26px; }
    .hero p { font-size: 1rem; }
    .page-head { padding-top: 40px; }
    .article-inner { padding: 22px 18px 26px; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
    .nav-links a.hide-xs { display: none; }
    .hero-actions .btn { flex: 1 1 100%; }
    .news-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ember, .status-dot { animation: none; }
    .ember { display: none; }
}
