/* ===================================
   ARTICLE STYLES (fullstory)
   =================================== */
.article {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.article__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.article__category {
    padding: 6px 14px;
    background: var(--accent);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.article__category:hover {
    background: var(--accent-hover);
}

.article__sep {
    color: var(--border-color);
}

.article__date,
.article__views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
}

.article__tags a {
    padding: 4px 12px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.article__tags a:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.article__image {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article__image img {
    width: 100%;
    height: auto;
}

/* Article Content */
.article__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article__content p {
    margin-bottom: 20px;
}

.article__content h2,
.article__content h3,
.article__content h4 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-weight: 600;
}

.article__content h2 { font-size: 24px; }
.article__content h3 { font-size: 20px; }
.article__content h4 { font-size: 18px; }

.article__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article__content a:hover {
    color: var(--accent-hover);
}

.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 24px 0;
}

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

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

.article__content ul li { list-style: disc; }
.article__content ol li { list-style: decimal; }

.article__content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article__content pre,
.article__content code {
    font-family: 'Fira Code', 'Consolas', monospace;
}

.article__content code {
    padding: 2px 8px;
    background: var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent);
}

.article__content pre {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.article__content pre code {
    padding: 0;
    background: none;
    color: var(--text-secondary);
}

.article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.article__content th,
.article__content td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article__content th {
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--text-primary);
}

/* Article Footer */
.article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.article__share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article__share-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.share-btn--telegram { background: #0088cc; }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter { background: #000000; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   STATIC PAGE STYLES
   =================================== */
.static-page {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.static-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.static-page__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
}

.static-page__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.static-page__content p { margin-bottom: 20px; }

.static-page__content h2,
.static-page__content h3,
.static-page__content h4 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-weight: 600;
}

.static-page__content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
}

.static-page__content a {
    color: var(--accent);
}

.static-page__content a:hover {
    color: var(--accent-hover);
}

/* ===================================
   NAVIGATION (prev/next)
   =================================== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.article-nav__item {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.article-nav__item:hover {
    border-color: var(--accent);
}

.article-nav__label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.article-nav__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ===================================
   COMMENTS
   =================================== */
.comments {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border-color);
}

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

.comment__body {
    flex: 1;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment__author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment__date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Comment Form */
.comment-form {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius);
}

.comment-form__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active,
.pagination span.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .article,
    .static-page {
        padding: 24px;
        border-radius: var(--radius-lg);
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .article__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
