/* Стили для детального просмотра новостей */
.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    min-height: 100vh;
}

.news-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-category {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: #cccccc;
    font-size: 16px;
    font-weight: 500;
}

.news-views {
    color: #aaaaaa;
    font-size: 14px;
}

.news-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-author {
    color: #cccccc;
    font-size: 18px;
    font-style: italic;
}

.news-image {
    margin-bottom: 40px;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.news-text {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.news-text p {
    margin-bottom: 20px;
}

.related-news {
    margin-bottom: 40px;
}

.related-news h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.related-image {
    margin-bottom: 15px;
}

.related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h4 {
    margin-bottom: 10px;
}

.related-content h4 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #4ecdc4;
}

.related-content p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-category {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-date {
    color: #aaaaaa;
    font-size: 12px;
}

.news-actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 20px 15px;
    }
    
    .news-title {
        font-size: 1.8rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-text {
        font-size: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
