/* =========================================================
   index.css — Estilos específicos da página Visão Geral
   do Baronato de Tavaquara
   ========================================================= */

/* ===== LAYOUT DA PÁGINA ===== */
.page-content {
    display: block;
    overflow: hidden;
}

/* ===== INFOBOX ===== */
.page-content .infobox {
    float: right;
    width: 320px;
    max-width: 100%;
    margin: 0 0 1.5rem 1.5rem;
    padding: 12px;
    background: #faf8f5;
    border: 1px solid #a8a29a;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.page-content .infobox::before { display: none; }
.page-content .infobox-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #a8a29a;
}
.page-content .infobox-flags {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.page-content .infobox-flags .flag-item { flex: 1; min-width: 0; }
.page-content .infobox img {
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 4px;
}
.page-content .infobox-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.8rem;
}
.page-content .infobox-table td {
    padding: 5px 6px;
    font-size: 0.8rem;
    vertical-align: top;
    border-bottom: 1px solid #e0dcd5;
}
.page-content .infobox-table td:first-child {
    width: 45%;
    font-weight: 700;
    color: #333;
}
.page-content .infobox-map {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d0d0d0;
}

/* ===== TEXTO INTRODUTÓRIO ===== */
.page-content .intro-text {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    width: auto;
    float: none;
    position: static;
}
.page-content .intro-text::before { display: none; }

.page-content .forum-container { clear: both; }

/* ===== FÓRUM: ÁTRIUM DE TAVAQUARA ===== */
.forum-container {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    padding: 1.5rem 2rem;
    position: relative;
    margin-top: 2rem;
    clear: both;
}
.forum-container::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid #1a1a1a;
    pointer-events: none;
}
.forum-header {
    text-align: center;
    padding: 0 0 1.5rem;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 1.5rem;
}
.forum-header h1 {
    font-family: 'IM Fell English SC', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #1a1a1a;
}
.forum-header .forum-sub {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    font-style: italic;
}
.forum-header .forum-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    letter-spacing: 2px;
}
.forum-category {
    margin-bottom: 8px;
    border: 2px solid #1a1a1a;
    background: #faf8f5;
}
.forum-category-header {
    background: #1a1a1a;
    color: #f5f1ec;
    padding: 8px 16px;
    font-family: 'IM Fell English SC', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.forum-category-header a { color: #f5f1ec; text-decoration: none; }
.forum-category-header a:hover { text-decoration: underline; }
.forum-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0dcd5;
    transition: background 0.15s;
}
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: #f0ece5; }
.forum-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    margin-right: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 50%;
    background: #fff;
}
.forum-icon.sub {
    font-size: 0.7rem;
    width: 28px; height: 28px;
    margin-left: 28px; margin-right: 12px;
    border: 1px solid #888;
    color: #666;
    background: #f7f4ef;
}
.forum-info { flex: 1; min-width: 0; }
.forum-info .forum-name {
    font-family: 'IM Fell English SC', serif;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
}
.forum-info .forum-name:hover { text-decoration: underline; }
.forum-info .forum-desc-small {
    font-size: 0.75rem;
    color: #777;
    margin-top: 2px;
    letter-spacing: 0.5px;
}
.forum-stats {
    text-align: right;
    font-size: 0.7rem;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    min-width: 60px;
}
.forum-stats .stat-number { font-weight: 700; color: #1a1a1a; }
.forum-subrows { padding-left: 16px; background: #f7f4ef; }
.forum-subrows .forum-row {
    border-bottom: 1px solid #e8e3dc;
    padding-left: 16px;
}
.forum-subrows .forum-row:last-child { border-bottom: none; }
.forum-divider {
    height: 2px;
    background: #1a1a1a;
    margin: 20px 0;
    opacity: 0.2;
}
.forum-footer-info {
    text-align: center;
    padding: 15px 0 5px;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 2px;
    border-top: 1px solid #e0dcd5;
    margin-top: 12px;
}
.forum-footer-info .online { color: #2a6b3a; font-weight: 700; }

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
    .forum-container { padding: 1.2rem 1.2rem; }
    .forum-header h1 { font-size: 1.6rem; letter-spacing: 4px; }
    .forum-row { padding: 10px 12px; }
    .forum-icon { width: 32px; height: 32px; font-size: 0.95rem; margin-right: 12px; }
    .forum-icon.sub { width: 24px; height: 24px; font-size: 0.6rem; margin-left: 20px; margin-right: 10px; }
    .forum-stats { font-size: 0.65rem; min-width: 50px; margin-left: 10px; }
    .forum-info .forum-name { font-size: 0.9rem; }
    .forum-info .forum-desc-small { font-size: 0.7rem; }
    .forum-category-header { font-size: 0.9rem; padding: 6px 12px; }
    .forum-subrows { padding-left: 10px; }
    .forum-subrows .forum-row { padding-left: 10px; }
}

@media (max-width: 700px) {
    .page-content .infobox {
        float: none;
        width: 100%;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 500px) {
    .forum-container { padding: 1rem; }
    .forum-header h1 { font-size: 1.3rem; letter-spacing: 3px; }
    .forum-header .forum-sub { font-size: 0.75rem; letter-spacing: 2px; }
    .forum-header .forum-desc { font-size: 0.7rem; }
    .forum-row { padding: 8px 8px; flex-wrap: wrap; }
    .forum-icon { width: 28px; height: 28px; font-size: 0.8rem; margin-right: 10px; }
    .forum-icon.sub { width: 22px; height: 22px; font-size: 0.55rem; margin-left: 14px; margin-right: 8px; }
    .forum-info .forum-name { font-size: 0.8rem; }
    .forum-info .forum-desc-small { font-size: 0.65rem; }
    .forum-stats { width: 100%; text-align: left; margin-left: 42px; margin-top: 2px; font-size: 0.6rem; min-width: unset; }
    .forum-category-header { font-size: 0.8rem; padding: 5px 10px; letter-spacing: 2px; }
    .forum-subrows { padding-left: 6px; }
    .forum-subrows .forum-row { padding-left: 6px; }
}