/*
 * Blog Template Styles for Verlux Oftalmologia
 * This file will be populated with extracted CSS from blog-saude-terceira-idade.html
 * in Phase 8: Assets e Estilos
 *
 * For now, this is a placeholder with basic structure
 */

/* ==========================================================================
   Blog Post Layout
   ========================================================================== */

.blog-article-container {
    background: #fff;
    min-height: 100vh;
}

/* Garantir fundo branco na página do blog */
html {
    background: #fff !important;
}

body.blog-post-page {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
}

body.blog-post-page::before,
body.blog-post-page::after {
    display: none !important;
}

.blog-post-page main {
    background: #fff !important;
    background-image: none !important;
}

.blog-post-page .blog-article-container {
    background: #fff !important;
}

.blog-post-page .container {
    background: transparent !important;
}

.blog-post-page .blog-post {
    background: #fff !important;
}

/* Header Styling - Purple background, always visible (apenas header global) */
.blog-post-page > header {
    background: #865EA3 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Desabilitar efeito de scroll no header das páginas de blog */
.blog-post-page > header.scrolled {
    background: #865EA3 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: none !important;
}

.blog-post-page > header .container,
.blog-post-page > header .header-border {
    background: transparent !important;
    border: none !important;
}

.blog-post-page > header .header-border {
    border-bottom-color: transparent !important;
    padding: 0 !important;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    margin-top: 80px;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    background: transparent;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #5F4A6E;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #865EA3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* ==========================================================================
   Post Header & Meta
   ========================================================================== */

.post-featured-image {
    margin-top: 0;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.article-meta-section {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    z-index: auto !important;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
    background: transparent !important;
    padding: 0 !important;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 1.1rem;
    color: #865EA3;
}

/* Article Metadata Box - Structured format */
.article-meta {
    background: #fff;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e9ecef;
    border-top: 3px solid #86C7A8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.author-credentials {
    font-size: 0.85rem;
    color: #666;
}

.author-category {
    font-size: 0.85rem;
    color: #86C7A8;
    font-weight: 500;
    margin-top: 5px;
}

.author-category i {
    font-size: 1rem;
}

.article-date-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.article-date-info i {
    color: #86C7A8;
    margin-right: 5px;
    font-size: 1.1rem;
}

.article-date-info .updated-date {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Post Content
   ========================================================================== */

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #865EA3;
    margin-top: 50px;
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* Esconder símbolos # dos headers */
.post-content .header-anchor,
.post-content h2 a.header-anchor,
.post-content h3 a.header-anchor,
.post-content h4 a.header-anchor {
    display: none !important;
    visibility: hidden !important;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content strong,
.post-content b {
    color: #333;
    font-weight: 700;
}

.post-content a {
    color: #865EA3;
    text-decoration: none;
    font-weight: 500;
}

.post-content a:hover {
    color: #6b4a82;
    text-decoration: underline;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
    list-style: none;
}

.post-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.post-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #86C7A8;
    font-weight: bold;
    font-size: 1.2rem;
}

.post-content ol {
    list-style: decimal;
    padding-left: 30px;
}

.post-content ol li {
    margin-bottom: 10px;
}

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

/* ==========================================================================
   Component Styles (to be expanded in Phase 8)
   ========================================================================== */

/* Highlight Box */
.highlight-box {
    padding: 20px;
    margin: 30px 0;
    border-radius: 0;
    border: 1px solid #dee2e6;
    border-left: 4px solid;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.highlight-box--info {
    background: #e8f8f3;
    border-color: #86C7A8;
}

.highlight-box--warning {
    background: #fff9e6;
    border-color: #ffd700;
}

.highlight-box--success {
    background: #e8f8f3;
    border-color: #86c7a8;
}

.highlight-box--danger {
    background: #ffe8e8;
    border-color: #e74c3c;
}

.highlight-box__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-box--info .highlight-box__icon {
    color: #86C7A8;
}

.highlight-box--warning .highlight-box__icon {
    color: #f39c12;
}

.highlight-box--success .highlight-box__icon {
    color: #27ae60;
}

.highlight-box--danger .highlight-box__icon {
    color: #e74c3c;
}

.highlight-box__content {
    flex: 1;
}

.highlight-box__content strong,
.highlight-box__content b {
    color: #333;
    font-weight: 700;
}

/* Info Card */
.info-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-card-icon {
    font-size: 2rem;
    color: #865EA3;
    flex-shrink: 0;
}

.info-card-body {
    flex: 1;
}

.info-card-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.info-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #86C7A8;
    margin-bottom: 10px;
}

.info-card__content strong,
.info-card__content b {
    color: #333;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    margin-top: 50px;
}

.faq-item {
    border: 1px solid #dee2e6;
    border-radius: 0;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    background: #f8f9fa;
    border-color: #86C7A8;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.faq-icon {
    font-size: 1.2rem;
    color: #86C7A8;
    transition: transform 0.3s;
}

.faq-icon i {
    display: inline-block;
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 12px 20px;
    background: transparent;
}

.faq-answer strong,
.faq-answer b {
    color: #333;
    font-weight: 700;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    margin: 60px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    width: 380px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.cta-text {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-cta {
    display: inline-block;
    background: transparent;
    color: #865EA3;
    border: 2px solid #865EA3;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #865EA3;
    border-color: #865EA3;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(134, 94, 163, 0.35);
    text-decoration: none;
}

.btn-cta i {
    margin-right: 8px;
    font-size: 1.3rem;
}

/* ==========================================================================
   Social Share Buttons
   ========================================================================== */

.social-share {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.social-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #128C7E;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0e5fc7;
}

.share-x {
    background: #000000;
}

.share-x:hover {
    background: #333333;
}

.x-icon {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Times New Roman", Times, serif;
}

.share-linkedin {
    background: #0A66C2;
}

.share-linkedin:hover {
    background: #004182;
}

.share-email {
    background: #865EA3;
}

.share-email:hover {
    background: #6b4a82;
}

/* ==========================================================================
   Tags & Author Bio
   ========================================================================== */

.post-tags {
    margin: 40px 0;
}

.post-tags h4 {
    margin-bottom: 20px;
}

.post-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.post-tags li a {
    background: #f0e6f6;
    color: #865EA3;
    padding: 8px 15px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.9rem;
}

.post-tags li a:hover {
    background: #865EA3;
    color: #fff;
}

.author-bio {
    background: #f8f9fa;
    border-radius: 0;
    padding: 30px;
    margin: 50px 0;
    border: 1px solid #dee2e6;
    border-top: 3px solid #865EA3;
}

.author-bio-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.5rem;
    color: #865EA3;
    margin-bottom: 5px;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #dee2e6;
}

.related-posts h2 {
    font-size: 2rem;
    color: #865EA3;
    margin-bottom: 30px;
}

/* Blog Card Styles */
.blog-cat-single {
    transition: 0.7s;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-cat-single:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-cat-thumb {
    overflow: hidden;
    position: relative;
    height: 250px;
}

/* Date Badge - Positioned absolute over the image */
.blog-cat-date-single {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background-color: #865EA3;
    padding: 10px 15px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.blog-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.blog-cat-single:hover .blog-cat-thumb img {
    transform: scale(1.1);
}

.blog-cat-date-single .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.blog-cat-date-single .month-year {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: block;
}

/* Card Text Content */
.blog-cat-text {
    padding: 20px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat-text h4 {
    color: #5F4A6E;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.blog-cat-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-cat-text a {
    width: 150px;
    height: 40px;
    line-height: 40px;
    background: #ffffff;
    color: #5F4A6E;
    border: 1px solid #5F4A6E;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: auto;
}

.blog-cat-single:hover .blog-cat-text a {
    background: #5F4A6E;
    color: #ffffff;
    border: 1px solid #5F4A6E;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .author-bio-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .article-meta {
        flex-direction: column;
        text-align: center;
    }

    .article-date-info {
        text-align: center;
    }
}
