/**
 * News Post Styles - Figma Design
 * Strategic Club - استراتژیک کلاب
 * Works with Tailwind CDN utility classes
 *
 * @package Strategic_Club
 * @since 1.0.0
 */

/* ==========================================================================
   News Post Article
   ========================================================================== */

.news-post-article {
    width: 100%;
}

/* Hero Image */
.news-post-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 400px;
}

@media (min-width: 768px) {
    .news-post-hero {
        height: 500px;
    }
}

.news-post-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.3) 40%,
        transparent 100%
    );
}

/* Content Wrapper */
.news-post-content-wrapper {
    position: relative;
    z-index: 10;
}

.news-post-article.has-thumbnail .news-post-content-wrapper {
    margin-top: -6rem;
}

.news-post-content-inner {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .news-post-content-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Post Header */
.news-post-header {
    margin-bottom: 2rem;
}

.news-post-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    margin-bottom: 1rem;
    transition: background-color 0.15s ease;
}

.news-post-category:hover {
    background-color: rgba(0, 212, 255, 0.3);
}

.news-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .news-post-title {
        font-size: 2.375rem;
    }
}

@media (min-width: 1024px) {
    .news-post-title {
        font-size: 3.125rem;
    }
}

.news-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.9375rem;
}

.news-post-separator {
    color: #4b5563;
}

.news-post-date time {
    color: #9ca3af;
}

.news-post-author a {
    color: #00d4ff;
    transition: color 0.15s ease;
}

.news-post-author a:hover {
    color: #00a8cc;
}

.news-post-comments a {
    color: #9ca3af;
    transition: color 0.15s ease;
}

.news-post-comments a:hover {
    color: #00d4ff;
}

/* Post Body */
.news-post-body {
    max-width: none;
}

.news-post-body p {
    color: #d1d5db;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.news-post-body h1,
.news-post-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.news-post-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

.news-post-body h4,
.news-post-body h5,
.news-post-body h6 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.005em;
    line-height: 1.4;
}

.news-post-body a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.news-post-body a:hover {
    color: #00a8cc;
}

/* HR - subtle divider with gradient fade edges */
.news-post-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(to left, transparent, #30343B 20%, #30343B 80%, transparent);
    margin: 2rem 0;
}

.news-post-body ul,
.news-post-body ol {
    margin: 1rem 0 1rem 1.5rem;
}

.news-post-body li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.news-post-body blockquote {
    border-right: 4px solid #00d4ff;
    padding-right: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #9ca3af;
}

[dir="rtl"] .news-post-body blockquote {
    border-right: none;
    border-left: 4px solid #00d4ff;
    padding-right: 0;
    padding-left: 1rem;
}

.news-post-body img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    display: block;
}

.news-post-body .wp-block-image figcaption {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Post Footer */
.news-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e1e2e;
}

.news-post-tags {
    margin-bottom: 1.5rem;
}

.news-post-tags-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.news-post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #1e1e2e;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.15s ease;
}

.news-post-tags a:hover {
    background-color: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.news-post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.news-post-share-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.news-post-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.news-post-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #1e1e2e;
    color: #9ca3af;
    transition: all 0.15s ease;
}

.news-post-share-btn:hover {
    background-color: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.news-post-share-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Comments Section */
.news-post .comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1e1e2e;
}

.news-post .comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.news-post .comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-post .comment-body {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #12121a;
    border: 1px solid #1e1e2e;
}

.news-post .comment-author {
    font-weight: 600;
    color: #ffffff;
}

.news-post .comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Reading progress bar */
.news-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(0, 212, 255, 0.2);
    z-index: 100;
    transform-origin: right;
}

[dir="rtl"] .news-reading-progress {
    transform-origin: left;
}

.news-reading-progress-bar {
    display: block;
    height: 100%;
    background-color: #00d4ff;
    transition: width 0.15s ease;
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .news-post-content-inner {
        padding-left: 35px;
        padding-right: 40px;
    }

    /* Share section: flex-col, centered, gap 16 */
    .news-post-share {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .news-post-share-label {
        width: 100%;
        text-align: center;
    }

    .news-post-share-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    /* Tags: centered */
    .news-post-tags {
        text-align: center;
    }

    .news-post-tags a {
        display: inline-flex;
    }

    /* Comments section: mobile responsive — full width within parent */
    .comments-section {
        max-width: 100%;
        width: 100%;
        margin-top: 32px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .comments-section__container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .news-post-title {
        font-size: 21px;
        line-height: 1.4;
    }

    .news-post-subtitle {
        font-size: 17px;
    }

    /* Comments section: small mobile responsive — full width within parent */
    .comments-section {
        max-width: 100%;
        width: 100%;
        margin-top: 32px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .comments-section__container {
        padding: 16px;
    }
}

