/*
 * ARTICLE PAGE STYLES - READDY DESIGN
 * Дизайн страницы статьи на основе Figma макета
 * Date: 2025-10-02
 */

/* ====================================
   GENERAL & CONTAINER
   ==================================== */

.article-page-new {
    background-color: #ffffff;
    min-height: 100vh;
}

.article-container-new {
    max-width: 86rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .article-container-new {
        padding: 3rem 2rem;
    }
}

/* ====================================
   ARTICLE HEADER (Meta + Title)
   ==================================== */

.article-header-section {
    margin-bottom: 2rem;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-title-main {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .article-title-main {
        font-size: 2rem;
    }
}

.article-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.meta-item-new {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-item-new i {
    font-size: 1rem;
}

/* ====================================
   HERO IMAGE
   ==================================== */

.article-hero-image {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ====================================
   ARTICLE CONTENT (Body)
   ==================================== */

.article-content-new {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

/* Lead paragraph (first intro) */
.article-content-new > p:first-of-type {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Paragraphs */
.article-content-new p {
    margin-bottom: 1.5rem;
}

/* Headings */
.article-content-new h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content-new h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content-new h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Links */
.article-content-new a {
    /*color: #7c3aed;*/
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.2s;
}

.article-content-new a:hover {
    color: #6d28d9;
    border-bottom-color: #6d28d9;
}

/* Lists */
.article-content-new ul,
.article-content-new ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.article-content-new ul {
    list-style-type: disc;
}

.article-content-new ol {
    list-style-type: decimal;
}

.article-content-new li {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.article-content-new li::marker {
    color: #7c3aed;
}

/* Strong & Emphasis */
.article-content-new strong {
    font-weight: 700;
    color: #111827;
}

.article-content-new em {
    font-style: italic;
    color: #6d28d9;
}

/* ====================================
   SPECIAL BOXES (Warning, Info, Note)
   ==================================== */

.warning-box-new,
.info-box-new,
.note-box-new {
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin: 2.5rem 0;
    border-left: 4px solid;
}

.warning-box-new {
    background-color: #fef2f2;
    border-color: #ef4444;
}

.info-box-new {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.note-box-new {
    background-color: #f0fdf4;
    border-color: #22c55e;
}

.warning-box-new h2,
.info-box-new h2,
.note-box-new h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.warning-box-new h2 i {
    color: #ef4444;
}

.info-box-new h2 i {
    color: #3b82f6;
}

.note-box-new h2 i {
    color: #22c55e;
}

.warning-box-new p,
.info-box-new p,
.note-box-new p {
    margin-bottom: 0.75rem;
}

.warning-box-new p:last-child,
.info-box-new p:last-child,
.note-box-new p:last-child {
    margin-bottom: 0;
}

/* Nested lists in boxes */
.warning-box-new ul,
.info-box-new ul,
.note-box-new ul {
    margin-top: 1rem;
}

/* ====================================
   HIGHLIGHTED SECTIONS (Gray Background)
   ==================================== */

.highlight-section {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2.5rem 0;
}

.highlight-section h3 {
    margin-top: 0;
}

/* ====================================
   AUTHOR SECTION
   ==================================== */

.article-author-section-new {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2rem;
    border-radius: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar-new {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-info-new h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #111827;
}

.author-info-new p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

.author-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2);
}

.author-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.3);
}

@media (max-width: 640px) {
    .article-author-section-new {
        flex-direction: column;
        text-align: center;
    }
}

/* ====================================
   RELATED ARTICLES SECTION
   ==================================== */

.related-articles-section-new {
    margin-top: 4rem;
    padding: 3rem 0;
    background-color: #f9fafb;
}

.related-articles-section-new h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-article-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

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

.related-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-category {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-article-content p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.related-article-link {
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-article-link i {
    transition: transform 0.2s;
}

.related-article-card:hover .related-article-link i {
    transform: translateX(4px);
}

/* ====================================
   CTA BANNER
   ==================================== */

.cta-banner-new {
    background: linear-gradient(135deg, #7c3aed 0%, #14b8a6 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #ffffff;
    margin-top: 3rem;
}

.cta-banner-new h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-banner-new p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-banner-button {
    display: inline-block;
    background-color: #fbbf24;
    color: #111827;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cta-banner-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background-color: #f59e0b;
}

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

@media (max-width: 768px) {
    .article-content-new {
        font-size: 1rem;
    }

    .article-content-new h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .article-content-new h3 {
        font-size: 1.25rem;
    }

    .warning-box-new,
    .info-box-new,
    .note-box-new {
        padding: 1.25rem 1.5rem;
    }

    .cta-banner-new h2 {
        font-size: 1.5rem;
    }
}
