/* =========================================
   SINGLE POST / SINGLE VIDEO LAYOUT
   ========================================= */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-10);
    align-items: start;
}

.single-post-wrapper {
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.single-post-header {
    margin-bottom: var(--space-8);
}

.single-post-title {
    font-size: var(--text-hero);
    font-weight: 700;
    color: var(--color-primary-dark, #1A3D5D);
    margin-bottom: var(--space-5);
    line-height: 1.3;
}

.single-post-meta {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    display: flex;
    gap: var(--space-6);
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-6);
}

.single-post-thumb {
    margin-bottom: var(--space-10);
}

.single-post-thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.single-back-link {
    display: inline-block;
    margin-top: var(--space-8);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
}

/* Sidebar */
.sidebar-header {
    margin-bottom: var(--space-8);
}

.sidebar-noticias {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-card {
    display: flex;
    gap: var(--space-5);
    background: var(--color-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    align-items: center;
    transition: var(--transition-base);
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-card-thumb {
    flex: 0 0 90px;
    height: 90px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
}

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

.sidebar-card-info h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.sidebar-card-info h4 a {
    color: var(--color-primary-dark, #1A3D5D);
    text-decoration: none;
    transition: var(--transition-base);
}

.hover-color-light:hover {
    color: var(--color-primary-light, #0066b2) !important;
}

.sidebar-card-info .sidebar-card-date {
    font-size: var(--text-sm);
    color: var(--color-text-faint);
}

/* Video sidebar card */
.sidebar-card-video-thumb {
    flex: 0 0 100px;
    height: 75px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    position: relative;
}

.sidebar-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: rgba(204, 0, 0, 0.9);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-xs);
    padding-left: 2px;
}

/* Video embed */
.video-embed-container {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: var(--space-8);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Estilização do conteúdo inserido no editor do WordPress (the_content) */
.content-formatted h2,
.content-formatted h3,
.content-formatted h4 {
    color: var(--color-primary-dark, #1A3D5D);
    margin-top: var(--space-8);
    margin-bottom: var(--space-5);
}

.content-formatted p {
    margin-bottom: var(--space-6);
}

.content-formatted ul,
.content-formatted ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.content-formatted a {
    color: var(--color-primary-light, #0066b2);
    text-decoration: underline;
}

/* Badge (shared between single-post, single-video, single-galeria) */
.galeria-individual-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge color modifier for video singles */
.badge-video {
    background: #e74c3c;
}

/* Unavailable video message inside dark embed container */
.video-embed-unavailable {
    color: var(--color-white);
    text-align: center;
    padding: var(--space-11);
}

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