/* static/css/pages/article-detail.css */
/* Страница детального просмотра статьи. */

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #EEF5FB;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.article-text h1 { font-size: 28px; }
.article-text h2 { font-size: 24px; }
.article-text h3 { font-size: 20px; }
.article-text h4 { font-size: 18px; }
.article-text h5 { font-size: 16px; }
.article-text h6 { font-size: 14px; }

.article-text p {
    margin-bottom: 15px;
}

.article-text ul,
.article-text ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.article-text li {
    margin-bottom: 8px;
}

.article-text a {
    color: #5B9BD5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-text a:hover {
    color: #4A8BC8;
    text-decoration: underline;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-text table th,
.article-text table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.article-text table th {
    background: #f5f5f5;
    font-weight: 500;
}

.article-text blockquote {
    border-left: 4px solid #5B9BD5;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.article-text code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.article-text pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-text pre code {
    background: none;
    padding: 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.article-views {
    font-size: 14px;
    color: #666;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #5B9BD5;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-button:hover {
    background: #4A8BC8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.3);
}

.back-button-icon {
    width: 20px;
    height: 20px;
}

.back-button-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-text {
        font-size: 15px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
