:root {
    --black: #0a0a0a;
    --black-2: #0d1317;
    --black-3: #111619;
    --blue: #436f8e;
    --gold: #887d59;
    --gray: #8f9696;
    --line: #1a2229;
    --line-2: #141a1f;
    --text-white: #f0f2f2;
    --text-light: #c8d0d0;
    --text-mid: #8f9696;
    --text-muted: #5a6464;
    --text-dim: #2e3838;
}

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

body {
    background: var(--black);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===================== NAV ===================== */
.pub-nav {
    background: var(--black);
    border-bottom: 0.5px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pub-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-logo {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.pub-nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

.pub-nav-link:hover {
    color: var(--text-light);
}

.pub-nav-link.active {
    color: var(--text-white);
    border-bottom-color: var(--text-white);
}

/* ===================== HERO ===================== */
.pub-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 32px 64px;
    text-align: center;
    border-bottom: 0.5px solid var(--line-2);
}

.pub-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 400;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.pub-hero-title em {
    color: var(--gold);
    font-style: italic;
}

.pub-hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.pub-hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--black-3);
    border: 0.5px solid var(--line);
    border-radius: 50px;
    padding: 14px 24px;
    max-width: 580px;
    margin: 0 auto 24px;
    transition: border-color 0.2s;
}

.pub-hero-search:focus-within {
    border-color: var(--blue);
}

.pub-hero-search i {
    font-size: 14px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.pub-hero-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 14px;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.pub-hero-search input::placeholder {
    color: var(--text-muted);
}

.pub-hero-search-clear {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pub-hero-search-clear:hover {
    color: var(--text-muted);
}

.pub-hero-meta {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.pub-hero-meta span {
    color: var(--gray);
}

/* ===================== LISTA ===================== */
.pub-list-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 80px;
}
 
.pub-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-2);
    margin-top: 1px;
}
 
.pub-list-item {
    background: var(--black);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    text-decoration: none;
    transition: background 0.2s;
}
 
.pub-list-item:hover {
    background: var(--black-2);
}
 
.pub-list-item:hover .pub-list-question { color: var(--text-white); }
.pub-list-item:hover .pub-list-cta { opacity: 1; }
.pub-list-item:hover .pub-list-cta-line { width: 28px; }
 
.pub-list-img {
    width: 64px;
    min-width: 64px;
    aspect-ratio: 9/16;
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid var(--line);
    background: var(--black-3);
    flex-shrink: 0;
}
 
.pub-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
.pub-list-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.pub-list-img-placeholder i {
    font-size: 16px;
    color: var(--line);
}
 
.pub-list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 2px;
}
 
.pub-list-date {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
 
.pub-list-question {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.4;
    transition: color 0.2s;
}
 
.pub-list-answer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
.pub-list-cta {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    transition: all 0.2s;
}
 
.pub-list-cta-line {
    width: 20px;
    height: 0.5px;
    background: currentColor;
    display: inline-block;
    transition: width 0.2s;
}
 
/* Responsivo lista */
@media (max-width: 640px) {
    .pub-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ===================== EMPTY ===================== */
.pub-empty {
    padding: 64px 0;
    text-align: center;
}

.pub-empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pub-empty-sub {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===================== DETALHE ===================== */
.pub-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.pub-detail-back {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.pub-detail-back:hover { color: var(--blue); }

.pub-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: start;
}

.pub-detail-date {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-detail-date::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
    flex-shrink: 0;
}

.pub-detail-question {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-white);
    line-height: 1.35;
    margin-bottom: 28px;
}

.pub-detail-divider {
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 24px;
    opacity: 0.6;
}

.pub-detail-answer-label {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.pub-detail-answer {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.85;
    word-break: break-word;
}

.pub-detail-footer {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 0.5px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-detail-back-bottom {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.pub-detail-back-bottom:hover { color: var(--blue); }

.pub-detail-right {
    position: sticky;
    top: 80px;
}

.pub-detail-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.pub-detail-img {
    width: 100%;
    border-radius: 6px;
    border: 0.5px solid var(--line);
    display: block;
    cursor: zoom-in;
}

.pub-detail-img-expand {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border: 0.5px solid var(--line);
    border-radius: 6px;
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: color 0.2s, border-color 0.2s;
}

.pub-detail-img-expand:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* ===================== FOOTER ===================== */
.pub-footer {
    border-top: 0.5px solid var(--line-2);
    padding: 24px 32px;
}

.pub-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ===================== PAGINAÇÃO ===================== */
.pub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 0 16px;
}

.pub-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid var(--line);
    border-radius: 6px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: border-color 0.2s, color 0.2s;
}

.pub-page-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pub-page-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pub-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pub-page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dim);
    text-decoration: none;
    border: 0.5px solid transparent;
    border-radius: 6px;
    transition: all 0.2s;
}

.pub-page-num:hover {
    color: var(--blue);
    border-color: var(--line);
}

.pub-page-num.active {
    color: var(--text-white);
    border-color: var(--blue);
    background: rgba(67,111,142,0.15);
}

.pub-page-ellipsis {
    font-size: 11px;
    color: var(--text-dim);
    padding: 0 4px;
    letter-spacing: 2px;
}

.pub-pagination-info {
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* ===================== RANKING ===================== */
.pub-list-num-rank {
    font-family: 'Playfair Display', serif !important;
    font-size: 16px !important;
    color: var(--gold) !important;
}

/* ===================== HAMBURGUER ===================== */
.pub-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.pub-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.pub-hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.pub-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.pub-hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.pub-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--black);
    border-top: 0.5px solid var(--line);
    border-bottom: 0.5px solid var(--line);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
}

.pub-mobile-menu.open {
    display: flex;
    max-height: 300px;
    padding: 8px 0;
}

.pub-mobile-link {
    font-size: 13px;
    color: var(--text-mid);
    text-decoration: none;
    padding: 14px 24px;
    border-bottom: 0.5px solid var(--line-2);
    transition: color 0.2s, background 0.2s;
}

.pub-mobile-link:last-child {
    border-bottom: none;
}

.pub-mobile-link:hover {
    color: var(--text-white);
    background: var(--black-2);
}

.pub-mobile-link.active {
    color: var(--text-white);
}

/* Mostrar hamburguer e esconder links no mobile */
@media (max-width: 640px) {
    .pub-nav-links {
        display: none;
    }

    .pub-hamburger {
        display: flex;
    }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 768px) {
    .pub-nav-links { gap: 20px; }
    .pub-nav-link { font-size: 12px; }

    .pub-hero { padding: 56px 20px 48px; }
    .pub-hero-title { font-size: 30px; }
    .pub-hero-search { padding: 12px 18px; }

    .pub-detail-layout { grid-template-columns: 1fr; }
    .pub-detail-right { position: static; order: -1; }
    .pub-detail-img { max-height: 320px; width: auto; margin: 0 auto; display: block; }
    .pub-detail-question { font-size: 22px; }
    .pub-detail-wrap { padding: 32px 20px 60px; }

    .pub-list-item { gap: 16px; }
    .pub-list-num { display: none; }
    .pub-list-wrap { padding: 0 20px 48px; }

    .pub-footer { padding: 20px; }
    .pub-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .pub-nav-links {
        display: none;
    }
    .pub-hero-title { font-size: 26px; }
}

/* ===================== AUTH ===================== */
.pub-auth-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.pub-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--black-2);
    border: 0.5px solid var(--line);
    border-radius: 12px;
    padding: 36px 32px;
}

.pub-auth-header {
    margin-bottom: 28px;
}

.pub-auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 8px;
}

.pub-auth-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pub-auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.pub-auth-alert-error {
    background: #2a0a0a;
    color: #e05c5c;
    border: 0.5px solid #4a1a1a;
}

.pub-auth-alert-success {
    background: #0a2018;
    color: #3dba7e;
    border: 0.5px solid #1a4030;
}

.pub-auth-field {
    margin-bottom: 18px;
}

.pub-auth-label {
    display: block;
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 7px;
    letter-spacing: 0.5px;
}

.pub-auth-input {
    width: 100%;
    background: var(--black-3);
    border: 0.5px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.pub-auth-input::placeholder {
    color: var(--text-dim);
}

.pub-auth-input:focus {
    border-color: var(--blue);
}

.pub-auth-btn {
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.pub-auth-btn:hover {
    opacity: 0.85;
}

.pub-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.pub-auth-footer a {
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

.pub-auth-footer a:hover {
    opacity: 0.7;
}

/* ===================== LIKE ===================== */
.pub-like-wrap {
    display: flex;
    align-items: center;
}

.pub-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0.5px solid var(--line);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.pub-like-btn:hover {
    border-color: #e05c5c;
    color: #e05c5c;
}

.pub-like-btn.liked {
    border-color: #e05c5c;
    color: #e05c5c;
    background: rgba(224, 92, 92, 0.08);
}

.pub-like-btn i {
    font-size: 15px;
}

.pub-like-login {
    border-style: dashed;
}