/* ==============================
   ADVERTORIAL CSS — Réplica Metrópoles
   ============================== */

/* ==============================
   1. RESET + BASE
   ============================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ==============================
   2. CSS VARIABLES (Metrópoles tokens)
   ============================== */
:root {
    /* Typography */
    --font-headline: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-body: 'Merriweather', Georgia, 'Times New Roman', serif;
    --font-ui: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Colors */
    --color-brand: #D80027;
    --color-headline: #3F2C2E;
    --color-body: #131313;
    --color-subtitle: #6B6566;
    --color-meta: #6B6566;
    --color-bg: #f0eeee;
    --color-article-bg: #ffffff;
    --color-border: #e0e0e0;
    --color-link: #D80027;

    /* Sizing */
    --layout-max: 1300px;
    --article-width: 978px;
    --sidebar-width: 300px;
    --layout-gap: 30px;

    /* Body text */
    --body-font-size: 19px;
    --body-line-height: 36px;
    --headline-font-size: 36px;
    --subtitle-font-size: 13px;
}

/* ==============================
   3. BASE TYPOGRAPHY
   ============================== */
body {
    font-family: var(--font-body);
    font-size: var(--body-font-size);
    color: var(--color-body);
    background: var(--color-bg);
    line-height: var(--body-line-height);
}

/* ==============================
   4. HEADER
   ============================== */
.m-header {
    background: var(--color-brand);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.m-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 18px 20px;
}

.m-header__menu,
.m-header__search {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.m-header__search {
    justify-content: flex-end;
}

.m-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-header__logo img {
    height: 48px;
    width: auto;
}

/* Logo text fallback */
.m-header__logo-text {
    font-family: var(--font-headline);
    font-size: 50px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Nav bar */
.m-header__nav {
    background: #ffffff;
    border-top: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.m-header__nav::-webkit-scrollbar {
    display: none;
}

.m-header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 20px;
}

.m-header__nav a {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    padding: 10px 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.m-header__nav a:hover {
    color: var(--color-brand);
}

/* ==============================
   5. LAYOUT (Article + Sidebar)
   ============================== */
.m-layout {
    display: flex;
    gap: var(--layout-gap);
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 20px 20px 40px;
    align-items: flex-start;
}

.m-article {
    flex: 1;
    min-width: 0;
    background: var(--color-article-bg);
    padding: 24px 30px 40px;
}

.m-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ==============================
   6. BREADCRUMB
   ============================== */
.m-breadcrumb {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-meta);
    margin-bottom: 16px;
}

.m-breadcrumb a {
    color: var(--color-meta);
}

.m-breadcrumb a:hover {
    text-decoration: underline;
}

.m-breadcrumb span {
    margin: 0 6px;
    color: #999;
}

/* ==============================
   7. CATEGORY LABEL
   ============================== */
.m-category {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 10px;
    text-transform: none;
}

.m-category a {
    color: var(--color-brand);
}

.m-category a:hover {
    text-decoration: underline;
}

/* ==============================
   8. HEADLINE (H1)
   ============================== */
.m-headline {
    font-family: var(--font-headline);
    font-size: var(--headline-font-size);
    font-weight: 900;
    color: var(--color-headline);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* ==============================
   9. SUBTITLE
   ============================== */
.m-subtitle {
    font-family: var(--font-body);
    font-size: var(--subtitle-font-size);
    font-weight: 400;
    color: var(--color-subtitle);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ==============================
   10. META (author + date)
   ============================== */
.m-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    font-family: var(--font-ui);
    font-size: 13px;
}

.m-meta__author {
    color: var(--color-brand);
    font-weight: 700;
}

.m-meta__author:hover {
    text-decoration: underline;
}

.m-meta__date {
    color: var(--color-meta);
    font-weight: 400;
}

/* ==============================
   11. SHARE BUTTONS
   ============================== */
.m-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.m-share__label {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--color-meta);
    margin-right: 4px;
}

.m-share__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: opacity 0.2s;
}

.m-share__btn:hover {
    opacity: 0.8;
}

.m-share__btn--whatsapp {
    background: #25D366;
}

.m-share__btn--facebook {
    background: #1877F2;
}

.m-share__btn--twitter {
    background: #000000;
}

.m-share__btn--telegram {
    background: #0088cc;
}

/* ==============================
   12. FIGURES & IMAGES
   ============================== */
.m-figure {
    margin: 0 0 24px;
}

.m-figure img {
    width: 100%;
    display: block;
    border-radius: 0;
}

.m-figure figcaption {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-meta);
    text-align: right;
    padding: 6px 0;
}

.m-figure figcaption::before {
    content: "📷 ";
}

/* ==============================
   13. ARTICLE BODY
   ============================== */
.m-body {
    font-family: var(--font-body);
    font-size: var(--body-font-size);
    color: var(--color-body);
    line-height: var(--body-line-height);
}

.m-body p {
    margin-bottom: 20px;
}

.m-body h2 {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 900;
    color: var(--color-headline);
    margin: 32px 0 16px;
    line-height: 1.3;
}

.m-body h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-headline);
    margin: 28px 0 12px;
    line-height: 1.3;
}

.m-body strong {
    font-weight: 700;
}

.m-body em {
    font-style: italic;
}

.m-body a {
    color: var(--color-link);
    text-decoration: underline;
}

.m-body a:hover {
    opacity: 0.7;
}

.m-body blockquote {
    border-left: 4px solid var(--color-brand);
    padding: 12px 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--color-subtitle);
    background: #fafafa;
}

/* --- TEXT EMPHASIS STYLES (Metrópoles) --- */

/* Yellow highlight — gradient technique from Metrópoles */
.highlight {
    color: var(--color-body);
    background: linear-gradient(90deg, #FFE26D 50%, transparent 0);
    background-size: 200%;
    background-position: 0% 50%;
    padding: 2.5px 0;
}

/* Red bold — brand red + bold weight */
.m-red-bold {
    color: var(--color-brand);
    font-weight: 700;
}

/* Red underline link — brand red + underline */
.m-red-link {
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: underline;
}

.m-red-link:hover {
    opacity: 0.7;
}

/* ==============================
   14. "LEIA TAMBÉM" (Related)
   ============================== */
.m-related {
    background: #f8f8f8;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-brand);
    padding: 20px 24px;
    margin: 28px 0;
}

.m-related h4 {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 12px;
    text-transform: none;
}

.m-related ul {
    list-style: none;
}

.m-related li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.m-related li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.m-related a {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.m-related a:hover {
    color: var(--color-brand);
}

.m-related .m-related__category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 2px;
}

/* ==============================
   15. CTA EDITORIAL (inline link)
   ============================== */
.m-cta {
    margin: 32px 0;
    text-align: center;
}

.m-cta a {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-brand);
    border: 2px solid var(--color-brand);
    padding: 14px 32px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.m-cta a:hover {
    background: var(--color-brand);
    color: #fff;
}

/* ==============================
   16. ARTICLE SOURCES
   ============================== */
.m-sources {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-meta);
    font-style: italic;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: 32px;
}

/* ==============================
   17. SIDEBAR
   ============================== */
.m-sidebar__section {
    background: var(--color-article-bg);
    padding: 20px;
    margin-bottom: 20px;
}

.m-sidebar__title {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-headline);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--color-brand);
}

.m-sidebar__title::before {
    content: "■ ";
    color: var(--color-brand);
}

.m-sidebar__item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.m-sidebar__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.m-sidebar__item-img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 2px;
}

.m-sidebar__item-content {
    flex: 1;
}

.m-sidebar__item-category {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-brand);
    display: block;
    margin-bottom: 4px;
}

.m-sidebar__item-title {
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-headline);
    line-height: 1.3;
}

.m-sidebar__item-title:hover {
    color: var(--color-brand);
}

/* ==============================
   18. FOOTER
   ============================== */
.m-footer {
    background: #ffffff;
    border-top: 3px solid var(--color-brand);
    padding: 30px 20px;
    margin-top: 40px;
}

.m-footer__inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}

.m-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.m-footer__links a {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    transition: color 0.2s;
}

.m-footer__links a:hover {
    color: var(--color-brand);
}

.m-footer__copyright {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #999;
}

/* ==============================
   19. CTA FOLLOW (Siga o perfil)
   ============================== */
.m-follow {
    background: #f8f8f8;
    border: 1px solid var(--color-border);
    padding: 16px 24px;
    margin: 28px 0;
    font-family: var(--font-ui);
    font-size: 14px;
    color: #333;
    text-align: center;
}

.m-follow a {
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: underline;
}

/* ==============================
   21. COMMENTS SECTION
   ============================== */
.m-comments {
    background: var(--color-article-bg);
    padding: 24px 30px 40px;
    margin-top: 2px;
}

.m-comments__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-brand);
}

.m-comments__title {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-headline);
}

.m-comments__count {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-meta);
}

.m-comment {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.m-comment:last-child {
    border-bottom: none;
}

.m-comment__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.m-comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: #888;
    flex-shrink: 0;
}

.m-comment__author {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-headline);
}

.m-comment__date {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-meta);
}

.m-comment__text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-body);
    margin-left: 46px;
}

.m-comment__actions {
    display: flex;
    gap: 16px;
    margin-left: 46px;
    margin-top: 8px;
}

.m-comment__action {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-meta);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-comment__action:hover {
    color: var(--color-brand);
}

.m-comments__load-more {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand);
    background: #f8f8f8;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.m-comments__load-more:hover {
    background: #eee;
}

/* Comment form */
.m-comment-form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.m-comment-form__title {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-headline);
    margin-bottom: 12px;
}

.m-comment-form__input,
.m-comment-form__textarea {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--color-body);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fafafa;
    transition: border-color 0.2s;
}

.m-comment-form__input:focus,
.m-comment-form__textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    background: #fff;
}

.m-comment-form__textarea {
    resize: vertical;
    min-height: 70px;
}

.m-comment-form__submit {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--color-brand);
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.m-comment-form__submit:hover {
    opacity: 0.85;
}

/* ==============================
   20. RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .m-sidebar {
        display: none;
    }

    .m-article {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --headline-font-size: 30px;
        --body-font-size: 18px;
        --body-line-height: 34px;
        --subtitle-font-size: 14px;
    }

    .m-header__top {
        padding: 10px 16px;
    }

    .m-header__logo-text {
        font-size: 28px;
    }

    .m-header__nav-inner {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .m-header__nav a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .m-layout {
        padding: 12px 0;
        gap: 0;
    }

    .m-article {
        padding: 16px 16px 32px;
    }

    .m-headline {
        font-size: var(--headline-font-size);
        letter-spacing: -0.3px;
    }

    .m-share {
        flex-wrap: wrap;
    }

    .m-share__btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .m-body h2 {
        font-size: 20px;
    }

    .m-related {
        padding: 16px 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --headline-font-size: 26px;
        --body-font-size: 17px;
        --body-line-height: 32px;
        --subtitle-font-size: 13px;
    }

    .m-header__menu,
    .m-header__search {
        font-size: 12px;
        min-width: auto;
    }

    .m-header__logo-text {
        font-size: 22px;
    }
}