﻿/* ==========================================================================
   MAKENEWS — Blog Editorial G1-Style
   Author: Eng. Cesário Monteiro | JNSOFT Engenharia
   ========================================================================== */

/* ── EDITORIAL TOPBAR ── */
.ms-editorial-bar {
    background: #f5f6f8;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 90;
    box-shadow: none;
}
.ms-editorial-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 52px;
}
.ms-editorial-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a202c;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    padding-right: 24px;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}
.ms-editorial-brand strong { color: #E07B00; font-weight: 700; }
.ms-editorial-brand .fa { color: #E07B00; font-size: 16px; }

.ms-cat-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
    height: 100%;
}
.ms-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    color: #718096;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.ms-cat-btn:hover { color: #1a202c; text-decoration: none; }
.ms-cat-btn.active {
    color: #E07B00;
    border-bottom-color: #E07B00;
}
.ms-cat-horo.active { color: #ffd700; border-bottom-color: #ffd700; }
.ms-cat-manchete.active { color: #e53935; border-bottom-color: #e53935; }
.ms-cat-esportes.active { color: #43a047; border-bottom-color: #43a047; }
.ms-cat-divulgacoes.active { color: #8e24aa; border-bottom-color: #8e24aa; }
.ms-cat-video.active { color: #ff6f00; border-bottom-color: #ff6f00; }

.ms-editorial-date {
    margin-left: auto;
    color: #a0aec0;
    font-size: 11px;
    font-family: 'Barlow', sans-serif;
    white-space: nowrap;
    padding-left: 20px;
}

/* ── OFFSET: navbar(50px) + editorial bar(52px) = 102px ── */
.ms-blog-wrap { padding-top: 102px; }

/* ── EDITORIAL BOTTOM (static, no fluxo normal) ── */
.ms-editorial-bottom {
    position: static !important;
    margin-top: 40px;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

/* ── HERO ARTICLE ── */
.ms-hero-article {
    position: relative;
    height: 320px;
    background: #0f1923 center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.ms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8,12,18,0.1) 0%,
        rgba(8,12,18,0.5) 45%,
        rgba(8,12,18,0.92) 100%
    );
    z-index: 1;
}
.ms-hero-article .container { position: relative; z-index: 2; padding-bottom: 44px; width: 100%; }
.ms-hero-content { max-width: 680px; }

.ms-hero-cat {
    display: inline-block;
    background: #E07B00;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 14px;
}
.ms-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ms-hero-resumo {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0 0 20px;
}
.ms-hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ms-hero-meta > span {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
}
.ms-hero-meta > span .fa { margin-right: 5px; }
.ms-hero-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E07B00;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s;
}
.ms-hero-read:hover { background: #c96f00; transform: translateX(2px); }

/* ── BREAKING BAR ── */
.ms-breaking-bar {
    background: #E07B00;
    overflow: hidden;
}
.ms-breaking-inner {
    display: flex;
    align-items: center;
    height: 38px;
}
.ms-breaking-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #080c12;
    color: #E07B00;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}
.ms-breaking-tag .fa { font-size: 10px; }
.ms-breaking-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
}
.ms-breaking-content {
    display: flex;
    align-items: center;
    animation: msBreakingScroll 40s linear infinite;
    white-space: nowrap;
}
.ms-breaking-content:hover { animation-play-state: paused; }
@keyframes msBreakingScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ms-breaking-item {
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 8px;
    white-space: nowrap;
    transition: color 0.15s;
}
.ms-breaking-item:hover { color: #0f1923; text-decoration: none; }
.ms-breaking-dot {
    color: rgba(255,255,255,0.5);
    padding: 0 12px;
}

/* ── MAIN BLOG BODY ── */
.ms-blog-body {
    background: #f4f4f2;
    padding: 36px 0 60px;
}

/* AdSense strips */
.ms-adsense-strip {
    text-align: center;
    margin-bottom: 28px;
    padding: 10px 0;
}
.ms-adsense-side {
    text-align: center;
    margin-bottom: 20px;
}
.ms-ad-label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b0b0b0;
    margin-bottom: 6px;
}
.ms-ad-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e6;
    border: 1px dashed #ccc;
    color: #aaa;
    font-size: 12px;
    font-family: monospace;
}
.ms-ad-728 { width: 100%; max-width: 728px; height: 90px; }
.ms-ad-300 { width: 300px; max-width: 100%; height: 250px; }

/* Section header */
.ms-section-head { margin-bottom: 24px; }
.ms-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f1923;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
    display: inline-block;
}
.ms-section-rule {
    height: 3px;
    background: linear-gradient(to right, #E07B00 60px, #ddd 60px);
    border: none;
    margin: 0 0 16px;
}

/* ── NEWS CARDS ── */
.ms-news-row { display: flex; flex-wrap: wrap; }
.ms-card-col { margin-bottom: 24px; display: flex; }
.ms-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ms-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}
.ms-card-imglink { display: block; }
.ms-card-thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #1a252f;
}
.ms-card-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ms-card:hover .ms-card-img { transform: scale(1.04); }
.ms-card-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #E07B00;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 1;
}
.ms-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ms-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-card-title a {
    color: #0f1923;
    text-decoration: none;
    transition: color 0.2s;
}
.ms-card-title a:hover { color: #E07B00; }
.ms-card-resumo {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #5c6b7a;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ms-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: #aab;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto;
}
.ms-card-footer .fa { margin-right: 3px; }

/* Empty state */
.ms-empty-state {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
}
.ms-empty-state .fa { font-size: 52px; display: block; margin-bottom: 16px; color: #ddd; }
.ms-empty-state p { font-size: 16px; margin: 0 0 8px; color: #888; }
.ms-empty-state small { font-size: 13px; }
.ms-empty-emoji { font-size: 52px; display: block; margin-bottom: 16px; }

/* ── VÍDEOS NEWS GRID ── */
.ms-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.ms-video-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.09);
    transition: box-shadow 0.25s, transform 0.25s;
}
.ms-video-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    transform: translateY(-3px);
}
.ms-video-link { display: block; text-decoration: none; color: inherit; }
.ms-video-link:hover { text-decoration: none; color: inherit; }
.ms-video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}
.ms-video-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s;
}
.ms-video-card:hover .ms-video-img { transform: scale(1.04); opacity: 0.85; }
.ms-video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    background: rgba(224,123,0,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    padding-left: 4px;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.ms-video-card:hover .ms-video-play {
    background: #E07B00;
    transform: translate(-50%, -50%) scale(1.12);
}
.ms-video-duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 2;
}
.ms-video-source-tag {
    position: absolute;
    top: 8px; left: 8px;
    background: #c00000;
    color: #fff;
    font-size: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    z-index: 2;
}
.ms-video-info {
    padding: 14px 14px 16px;
}
.ms-video-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0f1923;
    line-height: 1.35;
    margin: 0 0 6px;
}
.ms-video-info h4:hover { color: #E07B00; }
.ms-video-info span {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    color: #aaa;
}
.ms-video-info .ms-video-fonte {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #E07B00;
    margin-bottom: 4px;
}

/* Video card no news card normal (overlay play) */
.ms-card-thumb .ms-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}
.ms-card:hover .ms-video-overlay { opacity: 1; }
.ms-video-play-sm {
    width: 44px; height: 44px;
    background: rgba(224,123,0,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    padding-left: 3px;
}

/* ── HORÓSCOPO GRID ── */
.ms-horo-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #888;
    margin: -8px 0 20px;
}
.ms-horo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ms-horo-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ms-horo-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.ms-horo-emoji {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}
.ms-horo-signo {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f1923;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}
.ms-horo-text {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #5c6b7a;
    line-height: 1.65;
    margin: 0;
}

/* ── SIDEBAR ── */
.ms-sidebar { padding-top: 46px; }
.ms-sidebar-widget {
    background: #fff;
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.ms-widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f1923;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.ms-widget-bar {
    width: 4px;
    height: 18px;
    background: #E07B00;
    border-radius: 2px;
    flex-shrink: 0;
}
.ms-widget-empty {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin: 0;
}

/* Mais lidas */
.ms-toplida {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: opacity 0.2s;
}
.ms-toplida:last-child { border-bottom: none; }
.ms-toplida:hover { opacity: 0.75; }
.ms-toplida-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #E07B00;
    color: #fff;
    border-radius: 50%;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.ms-toplida-titulo {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.45;
}

/* Sidebar CTA box */
.ms-sidebar-cta-box {
    background: linear-gradient(135deg, #0f1923, #1a252f);
    border-radius: 3px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
}
.ms-cta-icon {
    font-size: 32px;
    color: #E07B00;
    margin-bottom: 12px;
    display: block;
}
.ms-sidebar-cta-box h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.ms-sidebar-cta-box p {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin: 0 0 16px;
}
.ms-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E07B00;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.ms-cta-link:hover { background: #c96f00; }

/* Newsletter */
.ms-newsletter-text {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #5c6b7a;
    margin: 0 0 12px;
}
.ms-newsletter-form {
    display: flex;
    gap: 0;
}
.ms-newsletter-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 2px 0 0 2px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}
.ms-newsletter-input:focus { border-color: #E07B00; }
.ms-newsletter-btn {
    background: #E07B00;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.ms-newsletter-btn:hover { background: #c96f00; }

/* ── BLOG CTA FINAL ── */
.ms-blog-cta {
    background: linear-gradient(135deg, #0A0E17 0%, #1a252f 100%);
    padding: 60px 0;
    border-top: 3px solid #E07B00;
}
.ms-blog-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.ms-blog-cta h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.ms-blog-cta p {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.ms-blog-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ms-btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E07B00;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.ms-btn-cta-white:hover { background: #c96f00; }
.ms-btn-cta-wpp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
}
.ms-btn-cta-wpp:hover { border-color: #25D366; color: #25D366 !important; }
.ms-btn-cta-wpp .fa { color: #25D366; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .ms-editorial-date { display: none; }
    .ms-hero-article { height: 270px; }
    .ms-hero-title { font-size: 26px; }
    .ms-horo-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-sidebar { padding-top: 24px; }
    .ms-video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .ms-editorial-brand { display: none; }
    .ms-cat-btn span { display: none; }
    .ms-cat-btn { padding: 0 12px; }
    .ms-hero-article { height: 220px; }
    .ms-hero-title { font-size: 20px; }
    .ms-hero-resumo { display: none; }
    .ms-horo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ms-video-grid { grid-template-columns: 1fr; }
    .ms-ad-728 { height: 60px; }
    .ms-blog-cta-inner { flex-direction: column; text-align: center; }
    .ms-blog-cta-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .ms-horo-grid { grid-template-columns: 1fr 1fr; }
    .ms-hero-article { height: 190px; }
    .ms-hero-title { font-size: 17px; }
    .ms-video-grid { grid-template-columns: 1fr; }
}
