/**
 * Single Post Styles - MetSul Theme
 * Estilos para a página de post individual
 */

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.ms-single-post {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.ms-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .ms-single-layout {
        grid-template-columns: 1fr;
    }
}

.ms-article {
    background: var(--ms-white, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ========================================
   POST HEADER
   ======================================== */

.ms-post-header {
    padding: 24px 32px 20px;
}

/* Breadcrumbs */
.ms-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ms-text-light, #666);
    margin-bottom: 20px;
}

.ms-breadcrumbs a {
    color: var(--ms-text-light, #666);
    text-decoration: none;
    transition: color 0.2s;
}

.ms-breadcrumbs a:hover {
    color: var(--ms-blue-nav, #0066BF);
}

.ms-breadcrumbs__sep {
    opacity: 0.5;
}

.ms-breadcrumbs__current {
    font-weight: 600;
}

@media (max-width: 768px) {
    .ms-post-header {
        padding: 20px 16px 16px;
    }
}

/* Categorias */
.ms-post-header__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ms-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0f4f8;
    color: var(--ms-blue-nav, #0066BF);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.ms-category-pill:hover {
    background: var(--ms-blue-nav, #0066BF);
    color: #fff;
}

.ms-category-pill--primary {
    background: var(--ms-blue-nav, #0066BF);
    color: #fff;
}

.ms-category-pill--primary:hover {
    background: var(--ms-blue-dark, #003377);
}

.ms-category-pill--exclusive {
    background: var(--ms-blue-dark, #003377);
    color: #fff;
}

.ms-category-pill--exclusive:hover {
    background: #002255;
}

/* Título */
.ms-post-header__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ms-text);
    margin: 0 0 20px;
}

.ms-post-header h2.entry-subtitle {
    font-size: 18px !important;
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    .ms-post-header__title {
        font-size: 35px;
    }
}

/* Meta Info */
.ms-post-header__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.ms-post-header__meta svg {
    flex-shrink: 0;
}

.ms-post-header__date,
.ms-post-header__reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms-post-header__separator {
    color: #d1d5db;
}

/* Divider */
.ms-post-header__divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 16px;
}

/* Authors and Share Row */
.ms-post-header__authors-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 640px) {
    .ms-post-header__authors-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Authors */
.ms-post-header__authors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ms-author-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-author-badge__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ms-author-badge__info {
    display: flex;
    flex-direction: column;
}

.ms-author-badge__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ms-text, #333);
    text-decoration: none;
    line-height: 1.3;
}

.ms-author-badge__name:hover {
    color: var(--ms-blue-nav, #0066BF);
}

.ms-author-badge__role {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

/* Share Compact */
.ms-share-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ms-share-compact {
        width: 100%;
        flex-wrap: wrap;
    }
}

.ms-share-compact__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-share-compact__btn--whatsapp,
.ms-share-compact__btn--google,
.ms-share-compact__btn--whatsapp span,
.ms-share-compact__btn--google span {
    width: 100%;
    text-align: center !important;
}

@media (min-width: 900px) {
    .ms-share-compact__btn span {
        display: inline;
    }

    .ms-share-compact__btn--whatsapp,
    .ms-share-compact__btn--google,
    .ms-share-compact__btn--whatsapp span,
    .ms-share-compact__btn--google span {
        width: auto;
        text-align: center !important;
    }
}

.ms-share-compact__btn--google {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e5e7eb;
}

.ms-share-compact__btn--google:hover {
    background: #f0f4f8;
    border-color: #d1d5db;
}

.ms-share-compact__btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.ms-share-compact__btn--whatsapp:hover {
    background: #1fb855;
}

/* ========================================
   AI SUMMARY
   ======================================== */

.ms-ai-summary {
    display: flex;
    gap: 16px;
    padding: 20px 32px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 100%);
    border-left: 4px solid var(--ms-blue-nav, #0066BF);
    margin: 0 0 0 0;
}

@media (max-width: 768px) {
    .ms-ai-summary {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
}

.ms-ai-summary__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--ms-blue-nav, #0066BF);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ms-ai-summary__content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ms-blue-dark, #003377);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ms-ai-summary__content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ms-text, #333);
    margin: 0;
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.ms-featured-image {
    margin: 0;
}

.ms-featured-image__img {
    width: 100%;
    height: auto;
    display: block;
}

.ms-featured-image__caption {
    padding: 12px 32px;
    background: #f8f9fa;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ms-featured-image__caption {
        padding: 12px 16px;
    }
}

/* ========================================
   POST CONTENT
   ======================================== */

.ms-post-content {
    padding: 32px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ms-text, #333);
}

@media (max-width: 768px) {
    .ms-post-content {
        padding: 24px 16px;
        font-size: 16px;
    }
}

.ms-post-content p {
    margin: 0 0 24px;
}

.ms-post-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--ms-text, #333);
}

.ms-post-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--ms-text, #333);
}

.ms-post-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--ms-text, #333);
}

.ms-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.ms-post-content figure {
    margin: 24px 0;
    max-width: 100% !important;
    width: auto !important;
}

.ms-post-content figcaption {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.ms-post-content ul,
.ms-post-content ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.ms-post-content li {
    margin-bottom: 8px;
}

.ms-post-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid var(--ms-blue-nav, #0066BF);
    font-style: italic;
    color: #4b5563;
}

.ms-post-content a {
    color: var(--ms-blue-nav, #0066BF);
    text-decoration: underline;
}

.ms-post-content a:hover {
    color: var(--ms-blue-dark, #003377);
}

/* ========================================
   WHATSAPP CTA
   ======================================== */

.ms-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    margin: 0;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: #fff;
}

@media (max-width: 768px) {
    .ms-whatsapp-cta {
        flex-direction: column;
        padding: 20px 16px;
        text-align: center;
    }
}

.ms-whatsapp-cta__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

@media (max-width: 768px) {
    .ms-whatsapp-cta__title {
        justify-content: center;
    }
}

.ms-whatsapp-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.ms-whatsapp-cta__text {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.ms-whatsapp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: #128c7e;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ms-whatsapp-cta__btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   AUTHORS SECTION
   ======================================== */

.ms-authors-section {
    padding: 32px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ms-authors-section {
        padding: 24px 16px;
    }
}

.ms-authors-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ms-text, #333);
    margin: 0 0 24px;
}

.ms-authors-section__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ms-author-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
    .ms-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.ms-author-card__avatar {
    flex-shrink: 0;
}

.ms-author-card__avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ms-author-card__content {
    flex: 1;
}

.ms-author-card__name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ms-author-card__name a {
    color: var(--ms-text, #333);
    text-decoration: none;
}

.ms-author-card__name a:hover {
    color: var(--ms-blue-nav, #0066BF);
}

.ms-author-card__role {
    font-size: 14px;
    color: var(--ms-blue-nav, #0066BF);
    font-weight: 600;
    margin-bottom: 12px;
}

.ms-author-card__bio {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 16px;
}

.ms-author-card__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .ms-author-card__actions {
        justify-content: center;
    }
}

.ms-author-card__social {
    display: flex;
    gap: 8px;
}

.ms-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s ease;
}

.ms-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ms-social-btn--linkedin {
    background: #0077b5;
}

.ms-social-btn--x {
    background: #1a1a1a;
}

.ms-social-btn--facebook {
    background: #1877f2;
}

.ms-social-btn--whatsapp {
    background: #25d366;
}

.ms-author-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ms-blue-nav, #0066BF);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ms-author-card__link:hover {
    background: var(--ms-blue-dark, #003377);
}

/* ========================================
   SHARE SECTION
   ======================================== */

.ms-share-section {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ms-share-section {
        padding: 20px 16px;
    }
}

.ms-share-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-text, #333);
    margin: 0 0 16px;
}

.ms-share-section__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ms-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.ms-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ms-share-btn--whatsapp {
    background: #25d366;
}

.ms-share-btn--facebook {
    background: #1877f2;
}

.ms-share-btn--x {
    background: #1a1a1a;
}

.ms-share-btn--linkedin {
    background: #0077b5;
}

.ms-share-btn--telegram {
    background: #0088cc;
}

.ms-share-btn--copy {
    background: #6b7280;
}

.ms-share-btn--copied {
    background: #10b981;
}

/* ========================================
   WEATHER SEARCH
   ======================================== */

.ms-weather-search {
    padding: 32px;
    background: linear-gradient(135deg, var(--ms-blue-dark, #003377) 0%, var(--ms-blue-nav, #0066BF) 100%);
    text-align: center;
}

@media (max-width: 768px) {
    .ms-weather-search {
        padding: 24px 16px;
    }
}

.ms-weather-search__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ms-weather-search__form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .ms-weather-search__form {
        flex-direction: column;
    }
}

.ms-weather-search__input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.ms-weather-search__input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.ms-weather-search__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--ms-orange-cta, #FC7E00);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ms-weather-search__btn:hover {
    background: #e57200;
    transform: translateY(-2px);
}

/* ========================================
   POST NAVIGATION
   ======================================== */

.ms-post-nav {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ms-post-nav {
        padding: 20px 16px;
    }
}

.ms-post-nav__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .ms-post-nav__links {
        grid-template-columns: 1fr;
    }
}

.ms-post-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-post-nav__item:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ms-post-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.ms-post-nav__thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ms-post-nav__thumb-placeholder {
    width: 64px;
    height: 64px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.ms-post-nav__content {
    flex: 1;
    min-width: 0;
}

.ms-post-nav__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ms-blue-nav, #0066BF);
    margin-bottom: 4px;
}

.ms-post-nav__item--next .ms-post-nav__label {
    justify-content: flex-end;
}

.ms-post-nav__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ms-text, #333);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   RELATED POSTS
   ======================================== */

.ms-related-posts {
    padding: 32px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ms-related-posts {
        padding: 24px 16px;
    }
}

.ms-related-posts__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ms-text, #333);
    margin: 0 0 24px;
}

.ms-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .ms-related-posts__grid {
        grid-template-columns: 1fr;
    }
}

.ms-related-post__link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ms-related-post__link:hover {
    background: #f8f9fa;
}

.ms-related-post__thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.ms-related-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-related-post__content {
    flex: 1;
    min-width: 0;
}

.ms-related-post__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ms-text, #333);
    margin: 0 0 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ms-related-post__date {
    font-size: 12px;
    color: #6b7280;
}

/* ========================================
   SIDEBAR
   ======================================== */

.ms-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 1024px) {
    .ms-sidebar {
        position: static;
    }
}

/* ========================================
   NOT FOUND
   ======================================== */

.ms-not-found {
    padding: 60px 32px;
    text-align: center;
}

.ms-not-found h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ms-text, #333);
    margin: 0 0 16px;
}

.ms-not-found p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */

.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ms-btn--primary {
    background: var(--ms-blue-nav, #0066BF);
    color: #fff;
}

.ms-btn--primary:hover {
    background: var(--ms-blue-dark, #003377);
}

.ads_metsul_assine {
    text-align: center;
}

/* ========================================
   PAGE LINKS (Pagination)
   ======================================== */

.ms-page-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
}

.ms-page-links a {
    padding: 8px 14px;
    background: #f8f9fa;
    color: var(--ms-blue-nav, #0066BF);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-page-links a:hover {
    background: var(--ms-blue-nav, #0066BF);
    color: #fff;
}