/* ===========================
   NEWS SINGLE V1 - Classic Article
   Варіант 1: Класична стаття
   =========================== */

/* ===========================
   CONTAINER
   =========================== */

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   ARTICLE HEADER
   =========================== */

.article-header {
    padding: 60px 0 40px;
    background: var(--white);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    font-size: 0.875rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.article-category svg {
    stroke: #8e44ad;
}

.article-date {
    color: var(--primary-color);
    font-weight: 700;
}

.reading-time {
    color: var(--text-light);
}

.reading-time::before {
    content: '⏱ ';
}

.article-title {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-color);
    font-weight: 500;
}

/* ===========================
   FEATURED IMAGE
   =========================== */

.article-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   ARTICLE CONTENT
   =========================== */

.article-content {
    padding: 0 0 60px;
    background: var(--white);
}

.content-wrapper {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content-wrapper p {
    margin-bottom: 1.5em;
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 2.5em 0 1em;
    font-weight: 700;
}

.content-wrapper h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin: 2em 0 1em;
    font-weight: 700;
}

.content-wrapper ul {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.content-wrapper ul li {
    margin-bottom: 0.5em;
}

.content-wrapper strong {
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===========================
   CONTENT IMAGES
   =========================== */

.content-image {
    margin: 3em 0;
}

.content-image.featured-img {
    margin-top: 0;
    margin-bottom: 2.5em;
}

.content-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

figcaption {
    margin-top: 12px;
    font-size: 0.938rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* ===========================
   INFO BOX
   =========================== */

.info-box {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    margin: 2.5em 0;
    background: rgba(145, 208, 114, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.info-box-icon {
    flex-shrink: 0;
}

.info-box-icon svg {
    stroke: var(--primary-color);
    width: 28px;
    height: 28px;
}

.info-box-content h4 {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.info-box-content ul {
    margin: 0;
    padding-left: 1.2em;
}

.info-box-content ul li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.info-box--warning {
    background: rgba(230, 126, 34, 0.08);
    border-left-color: #e67e22;
}

.info-box--warning .info-box-icon svg {
    stroke: #e67e22;
}

.doctor-profile-link {
    margin: 3.5em 0;
    padding: 32px;
    background: var(--light-gray);
    border-radius: 12px;
    text-align: center;
}

.doctor-profile-link h3 {
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.doctor-profile-link p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.doctor-profile-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.doctor-profile-button {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    min-width: 220px;
    text-align: center;
    gap: 6px;
}

.doctor-profile-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   BLOCKQUOTE
   =========================== */

.article-quote {
    margin: 3em 0;
    padding: 30px 40px 30px 60px;
    background: var(--light-gray);
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: rgba(145, 208, 114, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 700;
}

.article-quote p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--secondary-color);
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

.article-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-light);
    font-style: normal;
    font-weight: 600;
}

.article-quote cite::before {
    content: '— ';
}

/* ===========================
   CTA INLINE BLOCK
   =========================== */

.cta-inline-block {
    margin: 3em 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7bc05a 100%);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(145, 208, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-inline-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inline-block::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-icon svg {
    stroke: var(--white);
}

.cta-inline-content {
    position: relative;
    z-index: 1;
}

.cta-inline-content h3 {
    color: var(--white);
    font-size: 2rem;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.cta-inline-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin: 0 0 30px 0;
    line-height: 1.7;
}

.cta-inline-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-inline-actions .btn {
    min-width: 220px;
    font-weight: 700;
    font-size: 1rem;
}

.cta-inline-actions .btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-inline-actions .btn-outline:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
}

.cta-inline-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ===========================
   VIDEO EMBED
   =========================== */

.video-embed {
    margin: 3em 0;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 12px;
}

.video-embed h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #000;
    overflow: hidden;
}

/* Plyr player customization */
.video-wrapper .plyr__control--overlaid {
    background: rgba(145, 208, 114, 0.95);
    border-radius: 50%;
    cursor: pointer;
}

.video-wrapper .plyr__control--overlaid:hover {
    background: var(--primary-color);
}

.video-wrapper .plyr--video .plyr__control.plyr__tab-focus,
.video-wrapper .plyr--video .plyr__control:hover,
.video-wrapper .plyr--video .plyr__control[aria-expanded=true] {
    background: var(--primary-color);
}

.video-wrapper .plyr__control.plyr__tab-focus {
    box-shadow: 0 0 0 3px rgba(145, 208, 114, 0.5);
}

.video-wrapper .plyr--full-ui input[type=range] {
    color: var(--primary-color);
    cursor: pointer;
}

/* Cursor pointer for all interactive controls */
.video-wrapper .plyr__controls button,
.video-wrapper .plyr__controls input[type=range],
.video-wrapper .plyr__progress {
    cursor: pointer;
}

.video-wrapper .plyr__volume input[type=range],
.video-wrapper .plyr__progress input[type=range] {
    cursor: pointer;
}

.video-wrapper .plyr,
.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
}

.video-wrapper .plyr {
    border-radius: 8px;
}

.video-caption {
    font-size: 0.938rem;
    color: var(--text-light);
    margin: 0;
}

.video-caption a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.video-caption a:hover {
    text-decoration: underline;
}

/* ===========================
   ARTICLE FOOTER
   =========================== */

.article-footer {
    padding: 40px 0;
    border-top: 2px solid var(--border-color);
    background: var(--white);
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light-gray);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===========================
   SHARE BUTTONS
   =========================== */

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 700;
    color: var(--secondary-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===========================
   RELATED NEWS
   =========================== */

.related-news {
    padding: 80px 0;
    background: var(--light-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 25px;
}

.related-date {
    display: block;
    color: var(--primary-color);
    font-size: 0.813rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-content h3 {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}

/* ===========================
   ARTICLE CTA
   =========================== */

.article-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7bc05a 100%);
}

.article-cta .cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.article-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
}

.cta-buttons .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 968px) {
    .article-title {
        font-size: 2.25rem;
    }

    .article-lead {
        font-size: 1.125rem;
    }

    .article-featured-image {
        height: 400px;
    }

    .content-wrapper {
        font-size: 1.063rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 40px 0 30px;
    }

    .article-meta {
        gap: 12px;
        font-size: 0.813rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-featured-image {
        height: 300px;
        margin-bottom: 40px;
    }

    .article-content {
        padding: 0 0 40px;
    }

    .content-wrapper {
        font-size: 1rem;
    }

    .content-wrapper h3 {
        font-size: 1.5rem;
    }

    .video-embed {
        margin: 2em -20px;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .video-embed h3 {
        padding: 0 20px;
        margin-bottom: 15px;
        font-size: 1.25rem;
    }

    .video-wrapper {
        border-radius: 0;
        margin-bottom: 12px;
    }

    .video-wrapper .plyr {
        border-radius: 0;
    }

    .video-caption {
        padding: 0 20px;
        font-size: 0.875rem;
    }

    .article-share {
        flex-wrap: wrap;
    }

    .related-news {
        padding: 60px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: 60px 0;
    }

    .cta-inline-block {
        padding: 40px 25px;
    }

    .cta-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .cta-icon svg {
        width: 40px;
        height: 40px;
    }

    .cta-inline-content h3 {
        font-size: 1.5rem;
    }

    .cta-inline-content p {
        font-size: 1rem;
    }

    .cta-inline-actions {
        flex-direction: column;
    }

    .cta-inline-actions .btn {
        width: 100%;
    }

    .article-cta h2 {
        font-size: 2rem;
    }

    .article-cta p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-featured-image {
        height: 220px;
    }

    .cta-inline-block {
        padding: 35px 20px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .cta-icon svg {
        width: 36px;
        height: 36px;
    }

    .cta-inline-content h3 {
        font-size: 1.25rem;
    }

    .article-cta h2 {
        font-size: 1.75rem;
    }
}
