/* =====================================================================
   OK ARTICLE STYLES
   Single-post template styling for cornerstone gear reviews, affiliate
   articles, and creator tutorials. Loaded only on single posts via
   ok_enqueue_article_styles() in functions.php.

   This file is additive. It does not override the homepage block styles
   in ok-homepage-blocks.css or the global theme-override.css.
   ===================================================================== */

/* --- Layout containers ------------------------------------------------ */

.ok-article {
    background: var(--ok-bg, #1A1A2E);
    color: var(--ok-text, #FFFFFF);
}

.ok-article-container {
    max-width: 760px !important;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero -------------------------------------------------------------- */

.ok-article-hero {
    padding: 140px 0 56px;
    text-align: left;
    background: var(--ok-bg, #1A1A2E);
}

.ok-article-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ok-red, #E63946);
    margin-bottom: 18px;
}

.ok-article-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.65));
    margin-bottom: 0;
}

.ok-article-meta-item {
    display: inline-block;
}

.ok-article-meta-sep {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.5;
}

/* --- Featured image --------------------------------------------------- */

.ok-article-featured {
    padding: 0 0 24px;
}

.ok-article-featured-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.ok-article-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Body section ----------------------------------------------------- */

.ok-article-body-section {
    padding: 24px 0 64px;
    background: var(--ok-bg, #1A1A2E);
}

/* --- Affiliate disclosure callout ------------------------------------- */

.ok-article-disclosure {
    border: 1px solid rgba(230, 57, 70, 0.4);
    border-left: 3px solid var(--ok-red, #E63946);
    background: rgba(230, 57, 70, 0.08);
    padding: 16px 20px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ok-text, #FFFFFF);
    margin-bottom: 36px;
}

.ok-article-disclosure a {
    color: var(--ok-red, #E63946);
    text-decoration: underline;
}

/* --- YouTube video block --------------------------------------------- */

.ok-article-video {
    margin: 0 0 36px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.ok-article-video lite-youtube {
    width: 100%;
    max-width: 100%;
}

/* --- Article content prose ------------------------------------------- */

.ok-article-content {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.06rem;
    line-height: 1.78;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-content > * + * {
    margin-top: 24px;
}

.ok-article-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.25;
    margin: 56px 0 16px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.28rem;
    line-height: 1.3;
    margin: 40px 0 12px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 32px 0 10px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-content p {
    margin: 0;
}

.ok-article-content a {
    color: var(--ok-red, #E63946);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ok-article-content a:hover {
    color: #FFFFFF;
    background-color: var(--ok-red, #E63946);
    text-decoration: none;
}

.ok-article-content ul,
.ok-article-content ol {
    padding-left: 28px;
    margin: 12px 0;
}

.ok-article-content ul li,
.ok-article-content ol li {
    margin: 10px 0;
}

.ok-article-content blockquote {
    border-left: 3px solid var(--ok-red, #E63946);
    padding: 8px 0 8px 22px;
    margin: 28px 0;
    font-style: italic;
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.78));
}

.ok-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 24px auto;
}

.ok-article-content code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

.ok-article-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.ok-article-content pre code {
    background: transparent;
    padding: 0;
}

.ok-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.ok-article-content table th,
.ok-article-content table td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    text-align: left;
}

.ok-article-content table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

/* --- Pagination + tags ------------------------------------------------ */

.ok-article-pagination {
    margin-top: 32px;
    font-size: 0.92rem;
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.6));
}

.ok-article-tags-wrap {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ok-article-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ok-article-tags li {
    display: inline-block;
}

.ok-article-tags li a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.75));
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.ok-article-tags li a:hover {
    background: var(--ok-red, #E63946);
    color: #FFFFFF;
}

/* --- Inline lead-magnet CTA card ------------------------------------- */

.ok-article-cta-section {
    padding: 56px 0;
}

.ok-article-cta-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.ok-article-cta-card h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-cta-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 22px;
    opacity: 0.82;
}

/* --- Author box ------------------------------------------------------- */

.ok-article-author-section {
    padding: 56px 0;
}

.ok-article-author {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 760px;
    margin: 0 auto;
}

.ok-article-author-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ok-red, #E63946), rgba(230, 57, 70, 0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ok-article-author-text h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.18rem;
    margin: 0 0 10px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-author-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0 0 12px;
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.85));
}

.ok-article-author-link {
    font-weight: 600;
    color: var(--ok-red, #E63946);
    text-decoration: none;
}

.ok-article-author-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .ok-article-author {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ok-article-author-photo {
        margin: 0 auto;
    }
}

/* --- Related posts grid ---------------------------------------------- */

.ok-article-related-section {
    padding: 56px 0;
}

.ok-article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.ok-article-related-card {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ok-article-related-card:hover {
    transform: translateY(-3px);
    border-color: var(--ok-red, #E63946);
}

.ok-article-related-img-wrap {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ok-article-related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ok-article-related-body {
    padding: 18px 20px;
}

.ok-article-related-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--ok-text, #FFFFFF);
}

.ok-article-related-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.82rem;
    color: var(--ok-text-muted, rgba(255, 255, 255, 0.6));
    margin: 0;
}

/* --- Prev/next post nav ---------------------------------------------- */

.ok-article-nav-section {
    padding: 40px 0 56px;
}

.ok-article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ok-article-nav-link {
    display: block;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ok-text, #FFFFFF);
    transition: border-color 0.2s ease;
}

.ok-article-nav-link:hover {
    border-color: var(--ok-red, #E63946);
}

.ok-article-nav-next {
    text-align: right;
}

.ok-article-nav-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ok-red, #E63946);
    margin-bottom: 6px;
}

.ok-article-nav-title {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
}

@media (max-width: 600px) {
    .ok-article-nav {
        grid-template-columns: 1fr;
    }
    .ok-article-nav-next {
        text-align: left;
    }
}

/* --- Comments section base ------------------------------------------- */

.ok-article-comments-section {
    padding: 56px 0;
}

.ok-article-comments-section .comment-list {
    list-style: none;
    padding: 0;
}

.ok-article-comments-section .comments-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 0 24px;
}

/* --- Light mode override --------------------------------------------- */

html[data-theme='light'] .ok-article {
    background: #FFFFFF;
    color: #1A1A2E;
}

html[data-theme='light'] .ok-article-hero,
html[data-theme='light'] .ok-article-body-section {
    background: #FFFFFF;
}

html[data-theme='light'] .ok-article-title,
html[data-theme='light'] .ok-article-content,
html[data-theme='light'] .ok-article-content h2,
html[data-theme='light'] .ok-article-content h3,
html[data-theme='light'] .ok-article-content h4,
html[data-theme='light'] .ok-article-cta-card h2,
html[data-theme='light'] .ok-article-author-text h3,
html[data-theme='light'] .ok-article-related-title,
html[data-theme='light'] .ok-article-nav-title {
    color: #1A1A2E;
}

html[data-theme='light'] .ok-article-meta,
html[data-theme='light'] .ok-article-author-text p,
html[data-theme='light'] .ok-article-related-meta {
    color: rgba(26, 26, 46, 0.7);
}

html[data-theme='light'] .ok-article-disclosure {
    background: rgba(230, 57, 70, 0.06);
}

html[data-theme='light'] .ok-article-cta-card,
html[data-theme='light'] .ok-article-related-card,
html[data-theme='light'] .ok-article-nav-link,
html[data-theme='light'] .ok-article-featured-wrap {
    background: rgba(26, 26, 46, 0.04);
    border-color: rgba(26, 26, 46, 0.1);
}
