/*
Theme Name: GCM Noticias Theme
Theme URI: https://gcmnoticias.com
Author: Soluciones GCM
Author URI: https://solucionesgcm.com
Description: Tema personalizado para el portal de noticias GCM Noticias (Layout NBC News con Reproductor de Audio).
Version: 10.5.0
License: GNU General Public License v2 or later
Text Domain: gcm-noticias
*/

:root {
    --bg-main: #ffffff;
    --nbc-dark-bg: #0b1329;
    --nbc-header-bg: #0b1329;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --brand-red: #dc2626;
    --border-color: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
}

/* Header NBC Style */
.top-bar {
    background: #050a17;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    font-weight: 600;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 1.2rem;
    text-transform: uppercase;
}

header.site-header {
    background: var(--nbc-header-bg);
    color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.logo a {
    color: #ffffff;
    text-decoration: none;
}
.logo .highlight {
    color: var(--brand-red);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.8rem;
}
.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container, .gcm-s-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Single Post Hero Section (NBC News Dark Background Header) */
.gcm-single-hero-dark {
    background: var(--nbc-dark-bg);
    color: #ffffff;
    padding: 3rem 0 3.5rem 0;
}

.gcm-hero-header {
    max-width: 860px;
    margin: 0 auto;
}

.gcm-hero-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #94a3b8;
    margin-bottom: 1.2rem;
}

.gcm-hero-headline {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
}

.gcm-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.45;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* Audio Player Component (Listen to this article) */
.gcm-audio-player-bar {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 650px;
}

.audio-play-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.audio-play-btn svg {
    fill: var(--nbc-dark-bg);
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.audio-info {
    flex-grow: 1;
}
.audio-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}
.audio-title a {
    color: #38bdf8;
    text-decoration: underline;
}

.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}
.audio-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}
.audio-progress-bar {
    width: 0%;
    height: 100%;
    background: #38bdf8;
    border-radius: 2px;
}

/* Main Post Body Area */
.gcm-single-body-area {
    padding: 2.5rem 0 4rem 0;
}

/* Featured Media Outer & Caption (NBC Style) */
.gcm-feat-hero-media {
    max-width: 920px;
    margin: -2rem auto 2rem auto;
}
.gcm-feat-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.featured-caption-left {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    line-height: 1.4;
    border-left: 2px solid #cbd5e1;
    padding-left: 0.6rem;
}

/* Post Meta & Share Bar Below Media */
.gcm-meta-share-row {
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.byline-block {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.byline-block .date {
    display: block;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.byline-block .authors {
    font-weight: 800;
    color: var(--text-primary);
}

.share-action-btn {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Post Content Editorial Typography */
.post-content-container {
    max-width: 760px;
    margin: 0 auto;
}

.post-content {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e293b;
}

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

.post-content h2, .post-content h3 {
    font-family: var(--font-sans);
    color: #0f172a;
    font-weight: 800;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.55rem;
}

/* Author Box & Related Posts */
.gcm-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 3rem;
}
.gcm-author-avatar img {
    border-radius: 50%;
}
.gcm-author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}
.gcm-author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.gcm-related-posts {
    max-width: 760px;
    margin: 3.5rem auto 0 auto;
}
.gcm-related-posts h3.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}
.gcm-related-posts h3.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-red);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.related-card-content {
    padding: 0.85rem;
}
.related-card-content h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
}
.related-card-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Footer */
footer.site-footer {
    background: var(--nbc-dark-bg);
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}
