/* ============================================
   BLOG PREMIUM - SOLNER
   Página de Blog com Busca Integrada
============================================ */

/* CORREÇÃO BUG VIEWPORT - Força o body a mostrar todo o conteúdo */
body.page-template-page-blog,
body[class*="body-"],
.body-4,
.body-8 {
    overflow: visible !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
}

html {
    overflow: visible !important;
    overflow-y: auto !important;
}

.blog-premium-page {
    background: var(--white);
    overflow-x: hidden;
    overflow-y: visible !important;
}

/* ============================================
   HERO BLOG
============================================ */
.hero-blog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 120px;
    margin-top: 0;
}

.hero-blog .hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/img-fundo-blog.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-blog .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.hero-blog .hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 182, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(220, 88, 42, 0.12) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 3;
}

.hero-blog .hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 4;
}

.hero-blog .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge-cinema {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(220, 88, 42, 0.8),
                0 0 16px rgba(220, 88, 42, 0.4);
}

.badge-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(220, 88, 42, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-ping 2s ease-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes radar-ping {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    80% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUSCA NO HERO
============================================ */
.hero-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper-blog {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input-blog {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-main);
    color: var(--gray-800);
    outline: none;
}

.search-input-blog::placeholder {
    color: var(--gray-400);
}

.search-btn-blog {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.search-btn-blog:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 88, 42, 0.4);
}

.search-results-blog {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
}

.search-result-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-item strong {
    display: block;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.search-result-item span {
    font-size: 13px;
    color: var(--gray-500);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   SCROLL INDICATOR
============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: -8px;
}

.arrow {
    opacity: 0;
    animation: arrow-float 2s ease-in-out infinite;
}

.arrow-1 { animation-delay: 0s; }
.arrow-2 { animation-delay: 0.3s; }
.arrow-3 { animation-delay: 0.6s; }

@keyframes arrow-float {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ============================================
   POSTS SECTION
============================================ */
.posts-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.posts-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* ============================================
   POSTS GRID
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-image-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 24px;
}

.post-meta,
.post-meta-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-date {
    font-size: 13px;
    color: var(--gray-500);
}

.post-category {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-orange);
    background: rgba(220, 88, 42, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.post-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0 0 12px;
    line-height: 1.4;
}

.post-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 16px;
}

.post-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.post-card:hover .post-cta {
    gap: 12px;
}

.post-cta svg {
    transition: var(--transition-base);
}

.post-card:hover .post-cta svg {
    transform: translateX(4px);
}

/* ============================================
   PAGINATION
============================================ */
.pagination-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 32px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
}

.pagination-wrapper a {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.pagination-wrapper a:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.pagination-wrapper span.current {
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

/* ============================================
   SIDEBAR
============================================ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 8px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 13px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition-base);
}

.tag-item:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

.no-tags {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* Social Link */
.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition-base);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--gradient-blue);
    color: var(--white);
}

.sidebar-cta .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-cta p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-sidebar-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-orange);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVO
============================================ */
@media (max-width: 1024px) {
    .posts-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-blog {
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-search {
        max-width: 100%;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    .posts-section {
        padding: 60px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-title {
        font-size: 18px;
    }

    .blog-sidebar {
        flex-direction: column;
    }

    .sidebar-widget {
        min-width: auto;
    }
}

/* ============================================
   PLAYER DE ÁUDIO - POST SINGLE
============================================ */
.post-audio-player {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.audio-player-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.audio-player-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.audio-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audio-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.3;
}

.audio-sublabel {
    font-size: 12px;
    color: var(--gray-500);
}

.audio-native-player {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
}

/* Badge de áudio nos cards da listagem */
.audio-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
}

.audio-badge svg {
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVO AUDIO
============================================ */
@media (max-width: 480px) {
    .post-audio-player {
        padding: 16px;
    }
    .audio-native-player {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero-blog {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .search-wrapper-blog {
        padding: 4px;
    }

    .search-input-blog {
        padding: 12px 16px;
        font-size: 15px;
    }

    .search-btn-blog {
        width: 44px;
        height: 44px;
    }

    .post-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 24px;
    }
}

/* ============================================
   SINGLE POST PAGE
============================================ */
.single-post-page {
    background: var(--gray-50);
    overflow-x: hidden;
}

/* Featured Image - minimal gap from nav */
.single-featured-image {
    margin-top: 20px;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    position: relative;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Two-Column Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
}

/* ============================================
   SINGLE POST - CONTENT COLUMN
============================================ */
.single-content-col {
    min-width: 0;
}

/* Post Header */
.single-post-header {
    margin-bottom: 32px;
}

.single-post-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.single-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-500);
}

.single-meta-date svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.single-meta-category {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.single-meta-category .post-category {
    text-decoration: none;
    transition: var(--transition-base);
}

.single-meta-category .post-category:hover {
    background: var(--accent-orange);
    color: var(--white);
}

/* Post Content */
.single-post-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
}

.single-post-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.single-post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.single-post-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 28px 0 10px;
}

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

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

.single-post-content a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.single-post-content a:hover {
    color: var(--primary-blue);
}

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

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

.single-post-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: var(--gray-50);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--gray-600);
}

.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.single-post-content th,
.single-post-content td {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.single-post-content th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-800);
}

/* Post Tags */
.single-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.single-post-tags .tags-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

/* Post Navigation (prev/next) */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.post-nav-link:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.post-nav-link svg {
    flex-shrink: 0;
    color: var(--accent-orange);
}

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

.post-nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.post-nav-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-nav-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Action Buttons */
.single-post-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-back-blog,
.btn-orcamento-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-back-blog {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-back-blog:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.btn-orcamento-blog {
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(220, 88, 42, 0.3);
}

.btn-orcamento-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 88, 42, 0.4);
}

/* ============================================
   SINGLE POST - SIDEBAR COLUMN
============================================ */
.single-sidebar-col {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Sidebar Search */
.sidebar-search-form {
    margin: 0;
}

.sidebar-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-base);
}

.sidebar-search-wrapper:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(220, 88, 42, 0.1);
}

.sidebar-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--gray-800);
    outline: none;
}

.sidebar-search-input::placeholder {
    color: var(--gray-400);
}

.sidebar-search-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.sidebar-search-btn:hover {
    color: var(--accent-orange);
}

/* Sidebar Recent Posts */
.sidebar-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    transition: var(--transition-base);
}

.sidebar-recent-item:hover {
    background: var(--gray-50);
}

.sidebar-recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sidebar-recent-thumb-placeholder {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.sidebar-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-recent-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-recent-item:hover .sidebar-recent-title {
    color: var(--accent-orange);
}

.sidebar-recent-date {
    font-size: 12px;
    color: var(--gray-400);
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-category-item {
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-category-item a:hover {
    padding-left: 8px;
}

.category-name {
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.sidebar-category-item a:hover .category-name {
    color: var(--accent-orange);
}

.category-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 100px;
    min-width: 28px;
    text-align: center;
    transition: var(--transition-fast);
}

.sidebar-category-item a:hover .category-count {
    background: rgba(220, 88, 42, 0.1);
    color: var(--accent-orange);
}

/* ============================================
   SINGLE POST - RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .single-sidebar-col {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .single-sidebar-col .sidebar-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .single-featured-image {
        margin-top: 16px;
        max-height: 320px;
    }

    .single-featured-image img {
        max-height: 320px;
    }

    .single-post-layout {
        padding-top: 32px;
        padding-bottom: 60px;
        gap: 32px;
    }

    .single-post-title {
        font-size: 26px;
    }

    .single-post-content {
        padding: 24px;
        border-radius: 16px;
        font-size: 15px;
    }

    .single-post-content h2 {
        font-size: 22px;
    }

    .single-post-content h3 {
        font-size: 19px;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        justify-content: flex-start;
    }

    .single-post-actions {
        flex-direction: column;
    }

    .btn-back-blog,
    .btn-orcamento-blog {
        justify-content: center;
        width: 100%;
    }

    .single-sidebar-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-featured-image {
        max-height: 240px;
    }

    .single-featured-image img {
        max-height: 240px;
    }

    .single-post-content {
        padding: 20px;
    }

    .single-post-title {
        font-size: 22px;
    }

    .post-nav-link {
        padding: 16px;
    }
}

/* utility-page — definido globalmente em base.css */
