/**
 * CS Viagens & Eventos
 * Estilos específicos da página Post (Artigo do Blog)
 */

/* ========================================
   Variáveis CSS
   ======================================== */
:root {
    --post-primary: #1142d4;
    --post-primary-light: rgba(17, 66, 212, 0.1);
    --post-text-dark: #0f172a;
    --post-text-muted: #64748b;
    --post-bg-light: #f6f6f8;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.post-breadcrumb a {
    color: #64748b;
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: var(--post-primary);
}

.post-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.post-breadcrumb-current {
    color: #0f172a;
    font-weight: 500;
}

.dark .post-breadcrumb-current {
    color: #e2e8f0;
}

/* ========================================
   Featured Image
   ======================================== */
.post-featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-featured-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.post-featured-image a:hover img {
    transform: scale(1.03);
}

.post-image-zoom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.post-image-zoom i {
    font-size: 1.25rem;
    color: var(--post-primary);
}

.post-featured-image a:hover .post-image-zoom {
    opacity: 1;
    transform: scale(1);
}

.post-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 66, 212, 0.2), rgba(17, 66, 212, 0.4));
}

.post-featured-placeholder i {
    font-size: 4rem;
    color: rgba(17, 66, 212, 0.5);
}

/* ========================================
   Article Header
   ======================================== */
.post-header {
    margin-bottom: 2rem;
}

.post-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--post-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .post-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .post-title {
        font-size: 3rem;
    }
}

.dark .post-title {
    color: white;
}

/* Author Info */
.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    ring: 2px solid rgba(17, 66, 212, 0.2);
}

.post-author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: var(--post-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--post-primary);
}

.post-author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .post-author-name {
    color: white;
}

.post-author-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.post-author-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ========================================
   Article Content (Prose)
   ======================================== */
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

.dark .post-content {
    color: #cbd5e1;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.dark .post-content h2 {
    color: white;
}

.post-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.dark .post-content h3 {
    color: white;
}

.post-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.dark .post-content h4 {
    color: white;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content li strong {
    color: #0f172a;
}

.dark .post-content li strong {
    color: white;
}

.post-content a {
    color: var(--post-primary);
    text-decoration: underline;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

/* Intro/Lead Paragraph */
.post-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #0f172a;
    font-weight: 500;
    font-style: italic;
    border-left: 4px solid var(--post-primary);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: var(--post-primary-light);
    margin-bottom: 2rem;
}

.dark .post-intro {
    color: #e2e8f0;
    background-color: rgba(17, 66, 212, 0.15);
}

/* Blockquote */
.post-content blockquote {
    border-top: 2px solid rgba(17, 66, 212, 0.2);
    border-bottom: 2px solid rgba(17, 66, 212, 0.2);
    padding: 2rem 0;
    margin: 2rem 0;
    text-align: center;
}

.post-content blockquote p {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--post-primary);
    margin-bottom: 0;
}

/* Tip Box */
.post-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.dark .post-tip-box {
    background-color: #1e293b;
}

.post-tip-box-icon {
    font-size: 2rem;
    color: var(--post-primary);
    flex-shrink: 0;
}

.post-tip-box-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.dark .post-tip-box-title {
    color: white;
}

.post-tip-box-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ========================================
   Social Sharing
   ======================================== */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    margin-top: 3rem;
}

.dark .post-share {
    border-color: #334155;
}

.post-share-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.post-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.post-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.post-share-btn-default {
    background-color: var(--post-primary-light);
    color: var(--post-primary);
}

.post-share-btn-default:hover {
    background-color: var(--post-primary);
    color: white;
}

.post-share-btn-facebook {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.post-share-btn-facebook:hover {
    background-color: #1877F2;
    color: white;
}

.post-share-btn-twitter {
    background-color: rgba(29, 161, 242, 0.1);
    color: #1DA1F2;
}

.post-share-btn-twitter:hover {
    background-color: #1DA1F2;
    color: white;
}

.post-share-btn-whatsapp {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.post-share-btn-whatsapp:hover {
    background-color: #25D366;
    color: white;
}

.post-share-btn-linkedin {
    background-color: rgba(10, 102, 194, 0.1);
    color: #0A66C2;
}

.post-share-btn-linkedin:hover {
    background-color: #0A66C2;
    color: white;
}

/* ========================================
   Tags
   ======================================== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.dark .post-tags {
    border-color: #334155;
}

.post-tags-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 0.5rem;
}

.post-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.dark .post-tag {
    background-color: #334155;
    color: #94a3b8;
}

.post-tag:hover {
    background-color: var(--post-primary);
    color: white;
}

/* ========================================
   Sidebar
   ======================================== */
.post-sidebar-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .post-sidebar-box {
    background-color: #1e293b;
    border-color: #334155;
}

.post-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Search */
.post-search {
    position: relative;
}

.post-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dark .post-search-input {
    background-color: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.post-search-input:focus {
    outline: none;
    border-color: var(--post-primary);
    box-shadow: 0 0 0 3px rgba(17, 66, 212, 0.1);
}

.post-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.375rem;
    background-color: var(--post-primary);
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-search-btn:hover {
    background-color: rgba(17, 66, 212, 0.9);
}

/* Related Posts */
.post-related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.2s ease;
}

.post-related-item:hover {
    opacity: 0.8;
}

.post-related-item:hover .post-related-title {
    color: var(--post-primary);
}

.post-related-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f1f5f9;
}

.dark .post-related-img {
    background-color: #334155;
}

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

.post-related-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.dark .post-related-title {
    color: #e2e8f0;
}

.post-related-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Newsletter Box */
.post-newsletter-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: var(--post-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(17, 66, 212, 0.3);
}

.post-newsletter-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-newsletter-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.post-newsletter-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #0f172a;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.post-newsletter-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.post-newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.post-newsletter-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: white;
    color: var(--post-primary);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.post-newsletter-btn:hover {
    background-color: #f1f5f9;
}

/* ========================================
   Navigation (Prev/Next Posts)
   ======================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.dark .post-navigation {
    border-color: #334155;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.dark .post-nav-link {
    border-color: #334155;
}

.post-nav-link:hover {
    border-color: var(--post-primary);
    background-color: var(--post-primary-light);
}

.post-nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.post-nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .post-nav-title {
    color: #e2e8f0;
}

.post-nav-link:hover .post-nav-title {
    color: var(--post-primary);
}

.post-nav-next {
    text-align: right;
}

/* ========================================
   Views Counter
   ======================================== */
.post-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.post-views i {
    font-size: 1rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content {
    animation: fadeInUp 0.5s ease-out;
}
