/**
 * Article Content Styles
 * Styles for blog article content to match PHP site
 *
 * @package Remko_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Breadcrumbs (Blog Single) - DARK BACKGROUND like PHP site
   ========================================================================== */

.breadcrumbs-wrapper {
    background-color: var(--dark, #1a1a1a) !important;
}

.breadcrumbs-wrapper.bg-dark {
    background-color: var(--dark, #1a1a1a) !important;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent, #C8E600);
}

.breadcrumbs__home {
    display: flex;
    align-items: center;
}

.breadcrumbs__home i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs__home:hover i {
    color: var(--accent, #C8E600);
}

.breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.breadcrumbs__current {
    color: var(--accent, #C8E600);
    font-weight: 500;
}

/* ==========================================================================
   Blog Title & Subtitle - LEFT ALIGNED like PHP site
   ========================================================================== */

.blog-title {
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--dark, #1a1a1a);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'DM Serif Display', Georgia, serif;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 1.75rem;
    }
}

.blog-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700, #4a4a4a);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* ==========================================================================
   Article Content Container - LEFT ALIGNED
   ========================================================================== */

.article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark, #1a1a1a);
    text-align: left !important;
}

.article-content * {
    text-align: left !important;
}

/* ==========================================================================
   Article Section Structure
   ========================================================================== */

.article-section {
    margin-bottom: 2rem;
}

.article-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--dark, #1a1a1a);
    margin-bottom: 1.5rem;
    text-align: left !important;
}

/* ==========================================================================
   Headings - LEFT ALIGNED
   ========================================================================== */

.article-content h2,
.article-content .wp-block-heading,
.article-section__title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark, #1a1a1a);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    text-align: left !important;
    font-family: 'DM Serif Display', Georgia, serif;
}

.article-content h2:first-child,
.article-section__title:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
    text-align: left !important;
}

.article-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    margin: 1.25rem 0 0.5rem 0;
    line-height: 1.4;
    text-align: left !important;
}

/* ==========================================================================
   Paragraphs - LEFT ALIGNED
   ========================================================================== */

.article-content p,
.article-section__paragraph {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left !important;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-section__content {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Lists - NO BULLETS like PHP site
   ========================================================================== */

.article-content ul,
.article-content ol,
.article-content .wp-block-list,
.article-list {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none !important;
    text-align: left !important;
}

.article-content ul li,
.article-content ol li,
.article-content .wp-block-list li,
.article-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0;
    text-align: left !important;
    list-style: none !important;
}

.article-content ul li::before,
.article-content .wp-block-list li::before {
    display: none !important;
}

.article-content li:last-child,
.article-list li:last-child {
    margin-bottom: 0;
}

/* Bold label lists (e.g., "**Label** - Description") */
.article-content li strong,
.article-list li strong {
    color: var(--dark, #1a1a1a);
    font-weight: 600;
}

/* ==========================================================================
   Key Takeaways Block - DARK BACKGROUND like PHP site
   ========================================================================== */

.key-takeaways,
.wp-block-remko-key-takeaways {
    background-color: #2a2a2a !important;
    border: none !important;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.key-takeaways__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent, #C8E600) !important;
    margin: 0 0 1rem 0;
    padding: 0;
}

.key-takeaways__list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.key-takeaways__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.key-takeaways__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.key-takeaways__item:first-child {
    padding-top: 0;
}

.key-takeaways__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.key-takeaways__icon svg {
    width: 20px;
    height: 20px;
}

.key-takeaways__icon svg circle {
    fill: var(--accent, #C8E600);
}

.key-takeaways__icon svg path {
    stroke: #1a1a1a;
}

.key-takeaways__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #ffffff !important;
    flex: 1;
}

/* ==========================================================================
   Article Stats Block
   ========================================================================== */

.article-stats,
.wp-block-remko-article-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(200, 230, 0, 0.3);
    border-bottom: 1px solid rgba(200, 230, 0, 0.3);
}

@media (max-width: 600px) {
    .article-stats,
    .wp-block-remko-article-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.article-stats__item {
    text-align: center;
}

.article-stats__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent, #C8E600);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .article-stats__number {
        font-size: 2rem;
    }
}

.article-stats__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600, #6b6b6b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Share Section
   ========================================================================== */

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.share-label {
    font-size: 0.875rem;
    color: var(--gray-600, #6b6b6b);
    font-weight: 500;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-200, #e5e5e5);
    background-color: transparent;
    color: var(--gray-600, #6b6b6b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: var(--accent, #C8E600);
    border-color: var(--accent, #C8E600);
    color: var(--dark, #1a1a1a);
}

/* ==========================================================================
   Blog Tags
   ========================================================================== */

.blog-meta {
    display: flex;
    justify-content: center;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.blog-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--gray-100, #f5f5f5);
    border: 1px solid var(--gray-200, #e5e5e5);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ==========================================================================
   Article Image
   ========================================================================== */

.article-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-image__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Related Articles Section
   ========================================================================== */

.related-articles {
    background-color: var(--gray-50, #fafafa);
}

.related-articles__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-articles__subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent, #C8E600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.related-articles__title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--dark, #1a1a1a);
    margin: 0;
}

.related-articles__title--accent {
    color: var(--accent, #C8E600);
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-articles__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Blockquotes & Callouts
   ========================================================================== */

.article-content blockquote {
    border-left: 4px solid var(--accent, #C8E600);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(200, 230, 0, 0.08);
    font-style: italic;
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

.article-content a {
    color: var(--accent, #C8E600);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--dark, #1a1a1a);
}

/* ==========================================================================
   Images
   ========================================================================== */

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content figure {
    margin: 1.5rem 0;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: var(--gray-600, #6b6b6b);
    margin-top: 0.5rem;
    text-align: center;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200, #e5e5e5);
}

.article-content th {
    font-weight: 600;
    background-color: var(--gray-100, #f5f5f5);
}

/* ==========================================================================
   Code Blocks
   ========================================================================== */

.article-content code {
    background-color: var(--gray-100, #f5f5f5);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875em;
}

.article-content pre {
    background-color: var(--gray-100, #f5f5f5);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

/* ==========================================================================
   Force Left Alignment for All Gutenberg Blocks
   ========================================================================== */

.article-content .wp-block-paragraph,
.article-content .wp-block-heading,
.article-content .wp-block-list,
.article-content .wp-block-quote,
.article-content .wp-block-table,
.article-content .wp-block-columns,
.article-content .wp-block-column,
.article-content .wp-block-group,
.article-content .wp-block-cover,
.article-content [class^="wp-block-"] {
    text-align: left !important;
}

/* Ensure entry-content also follows left alignment */
.entry-content,
.entry-content * {
    text-align: left !important;
}

/* Override any WordPress default centered content */
.article-content .has-text-align-center,
.article-content .aligncenter {
    text-align: left !important;
}

/* Ensure the article container itself is left-aligned */
.blog-article-header .article-content {
    text-align: left !important;
}

.blog-article-header .article-content > * {
    text-align: left !important;
}
