/**
 * Single Post (Blog) Styles
 * Styles for standard WordPress blog posts
 * 
 * @package GeneratePress_Child
 * @version 1.0.0
 */

/* ==========================================================================
   Single Post Layout
   ========================================================================== */

/* Reset parent theme containers */
.single-post .gpcc-skin .inside-article {
    display: block;
    background-color: var(--bg-primary, #1a2642);
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Single Post Container */
.gpcc-single--post {
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 0 var(--gap, 16px);
}

/* ==========================================================================
   Post Header
   ========================================================================== */

.gpcc-single--post .gpcc-single__header {
    margin-bottom: 24px;
    text-align: center;
}

.gpcc-single--post .gpcc-single__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.gpcc-single--post .gpcc-single__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
}

.gpcc-single--post .gpcc-single__meta a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gpcc-single--post .gpcc-single__meta a:hover {
    color: var(--accent, #3b82f6);
}

/* Author with Avatar */
.gpcc-single--post .gpcc-single__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gpcc-single--post .gpcc-single__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Date */
.gpcc-single--post .gpcc-single__date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gpcc-single--post .gpcc-single__date::before {
    content: "•";
    margin-right: 4px;
}

/* Categories */
.gpcc-single--post .gpcc-single__categories a {
    background: var(--accent, #3b82f6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.gpcc-single--post .gpcc-single__categories a:hover {
    background: var(--accent-hover, #2563eb);
    color: #fff;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.gpcc-single--post .gpcc-single__thumbnail {
    margin-bottom: 24px;
    border-radius: var(--radius, 12px);
    overflow: hidden;
}

.gpcc-single--post .gpcc-single__featured-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ==========================================================================
   Post Content
   ========================================================================== */

.gpcc-single--post .gpcc-single__content {
    background: var(--card-bg, #243656);
    border-radius: var(--radius, 12px);
    padding: 24px;
    color: var(--text-primary, #fff);
    line-height: 1.7;
    font-size: 1rem;
}

.gpcc-single--post .gpcc-single__content p {
    margin-bottom: 1.25em;
}

.gpcc-single--post .gpcc-single__content h2,
.gpcc-single--post .gpcc-single__content h3,
.gpcc-single--post .gpcc-single__content h4 {
    color: var(--text-primary, #fff);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.gpcc-single--post .gpcc-single__content h2 {
    font-size: 1.5rem;
}

.gpcc-single--post .gpcc-single__content h3 {
    font-size: 1.25rem;
}

.gpcc-single--post .gpcc-single__content h4 {
    font-size: 1.125rem;
}

.gpcc-single--post .gpcc-single__content a {
    color: var(--accent, #3b82f6);
    text-decoration: underline;
}

.gpcc-single--post .gpcc-single__content a:hover {
    color: var(--accent-hover, #2563eb);
}

.gpcc-single--post .gpcc-single__content ul,
.gpcc-single--post .gpcc-single__content ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.gpcc-single--post .gpcc-single__content li {
    margin-bottom: 0.5em;
}

.gpcc-single--post .gpcc-single__content blockquote {
    border-left: 4px solid var(--accent, #3b82f6);
    padding-left: 16px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-secondary, #94a3b8);
}

.gpcc-single--post .gpcc-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm, 8px);
}

.gpcc-single--post .gpcc-single__content pre,
.gpcc-single--post .gpcc-single__content code {
    background: var(--bg-secondary, #1e293b);
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.gpcc-single--post .gpcc-single__content code {
    padding: 2px 6px;
    font-size: 0.875em;
}

.gpcc-single--post .gpcc-single__content pre {
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 1.25em;
}

.gpcc-single--post .gpcc-single__content pre code {
    padding: 0;
    background: transparent;
}

/* ==========================================================================
   Post Footer
   ========================================================================== */

.gpcc-single--post .gpcc-single__footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.gpcc-single--post .gpcc-single__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gpcc-single--post .gpcc-single__tags-label {
    color: var(--text-secondary, #94a3b8);
    font-weight: 500;
}

.gpcc-single--post .gpcc-single__tags a {
    background: var(--bg-secondary, #1e293b);
    color: var(--text-secondary, #94a3b8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gpcc-single--post .gpcc-single__tags a:hover {
    background: var(--accent, #3b82f6);
    color: #fff;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.gpcc-post-navigation {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gpcc-post-navigation .nav-links {
    display: contents;
}

.gpcc-post-navigation .nav-previous,
.gpcc-post-navigation .nav-next {
    background: var(--card-bg, #243656);
    border-radius: var(--radius, 12px);
    padding: 16px;
    transition: background 0.2s ease;
}

.gpcc-post-navigation .nav-previous:hover,
.gpcc-post-navigation .nav-next:hover {
    background: var(--card-bg-hover, #2d4a6f);
}

.gpcc-post-navigation .nav-next {
    text-align: right;
}

.gpcc-post-navigation a {
    color: var(--text-primary, #fff);
    text-decoration: none;
    display: block;
}

.gpcc-post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gpcc-post-navigation .nav-title {
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.gpcc-single--post + .gpcc-post-navigation + .comments-area,
.gpcc-single--post ~ .comments-area {
    margin-top: 32px;
    background: var(--card-bg, #243656);
    border-radius: var(--radius, 12px);
    padding: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .gpcc-single--post .gpcc-single__content {
        padding: 16px;
    }
    
    .gpcc-post-navigation {
        grid-template-columns: 1fr;
    }
    
    .gpcc-post-navigation .nav-next {
        text-align: left;
    }
}
