/* News Detail Page Styles */

.article {
    padding: 20px 0;
    background: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
}

.article__wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Main Content */
.article__main {
    background: #fff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.article__header {
    margin-bottom: 32px;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.article__category {
    padding: 6px 14px;
    background: var(--color-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article__date {
    font-size: 14px;
    color: #888;
}

.article__read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #888;
}

.article__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}

/* Cover Image */
.article__cover {
    margin: 0 0 32px;
}

.article__cover img {
    width: 100%;
    border-radius: 16px;
}

.article__cover figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Content */
.article__content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 20px;
}

.article__content h2:first-child {
    margin-top: 0;
}

.article__content p {
    margin: 0 0 20px;
}

.article__content a {
    color: var(--color-primary);
    text-decoration: none;
}

.article__content a:hover {
    text-decoration: underline;
}

.article__lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.7;
}

.article__content ul {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article__content ul li {
    margin-bottom: 10px;
}

.article__content ul li strong {
    color: #1a1a1a;
}

/* Quote */
.article__quote {
    margin: 32px 0;
    padding: 32px;
    background: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 16px 16px 0;
}

.article__quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.article__quote cite {
    font-size: 14px;
    font-style: normal;
    color: #888;
}

/* Content Images */
.article__image {
    margin: 32px 0;
}

.article__image img {
    width: 100%;
    border-radius: 12px;
}

.article__image figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Share */
.article__share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.article__share-label {
    font-size: 14px;
    color: #666;
}

.article__share-buttons {
    display: flex;
    gap: 8px;
}

.article__share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.article__share-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Navigation */
.article__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e8e8e8;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.article__nav-link {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.article__nav-link:hover {
    background: #f0f0f0;
}

.article__nav-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.article__nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.article__nav-link--next {
    text-align: right;
}

/* Sidebar */
.article__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.article__sidebar-block {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.article__sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

/* Related */
.article__related {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article__related-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.article__related-item:hover {
    opacity: 0.8;
}

.article__related-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}

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

.article__related-content {
    flex: 1;
    min-width: 0;
}

.article__related-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.article__related-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}

/* CTA Block */
.article__sidebar-block--cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    text-align: center;
}

.article__sidebar-block--cta .article__sidebar-title {
    color: #fff;
}

.article__sidebar-block--cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    line-height: 1.6;
}

.article__sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--color-primary);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.article__sidebar-btn:hover {
    background: var(--color-primary-hover);
}

/* Responsive */
@media (max-width: 1200px) {
    .article__wrapper {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }
    
    .article__main {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .article__wrapper {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    
    .article__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }
    
    .article__sidebar-block {
        flex: 1;
        min-width: 280px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .article {
        padding: 20px 0;
        overflow-x: hidden;
        width: 100%;
    }
    
    .article__wrapper {
        width: 100%;
        max-width: 100%;
        gap: 28px;
    }
    
    .article__main {
        padding: 24px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article__title {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__meta {
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .article__content {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__content h2 {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__nav {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }
    
    .article__nav-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article__nav-link--next {
        text-align: left;
    }
    
    .article__sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .article__sidebar-block {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    .article {
        overflow-x: hidden;
        padding: 16px 0;
    }
    
    .article__wrapper {
        width: 100%;
        max-width: 100%;
        gap: 24px;
    }
    
    .article__main {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 16px;
    }
    
    .article__header {
        margin-bottom: 24px;
    }
    
    .article__title {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .article__meta {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .article__category {
        padding: 5px 12px;
        font-size: 0.6875rem;
    }
    
    .article__date,
    .article__read-time {
        font-size: 0.8125rem;
    }
    
    .article__lead {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__content {
        font-size: 0.9375rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__content h2 {
        font-size: 1.125rem;
        margin: 32px 0 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__content ul {
        padding-left: 20px;
        word-wrap: break-word;
    }
    
    .article__quote {
        padding: 20px 16px;
        margin: 24px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article__quote p {
        font-size: 1rem;
    }
    
    .article__image {
        margin: 24px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .article__image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .article__share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding: 20px 0;
    }
    
    .article__share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .article__nav {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .article__nav-link {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article__nav-title {
        font-size: 0.9375rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__sidebar {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 20px;
    }
    
    .article__sidebar-block {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
    }
    
    .article__sidebar-title {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .article__related-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article__related-title {
        font-size: 0.8125rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article__sidebar-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.9375rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .article {
        padding: 12px 0;
    }
    
    .article__main {
        padding: 18px 14px;
        border-radius: 12px;
    }
    
    .article__title {
        font-size: 1.125rem;
    }
    
    .article__quote {
        padding: 18px 14px;
    }
    
    .article__sidebar-block {
        padding: 20px 16px;
    }
    
    .article__nav-link {
        padding: 14px;
    }
}

