/* Переопределение стилей body для страниц блога */
body.blog-page,
body:has(.blog-container) {
    overflow: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    min-height: 100vh;
    height: auto;
}

/* Стили для блог статей */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.blog-article {
    color: #333;
}

.blog-article h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #667eea;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9em;
}

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

.article-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.article-content h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #764ba2;
}

.article-content h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #667eea;
}

.article-content p {
    margin-bottom: 20px;
}

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

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #764ba2;
}

.cta-section {
    margin: 40px 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-articles h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Переопределение стилей body для страниц треков */
body.track-page,
body:has(.track-info-section) {
    overflow: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    min-height: 100vh;
    height: auto;
}

/* Стили для страниц треков */
.track-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.track-info-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.track-info-section h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.track-description {
    line-height: 1.8;
    margin-top: 20px;
}

.track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.track-tag {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.9em;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }
    
    .blog-article h1 {
        font-size: 2em;
    }
    
    .article-content h2 {
        font-size: 1.5em;
    }
}

