/* Стили для статей журнала */

/* Основные стили для контента статей */
.entry-content {
    color: #d1d5db; /* text-gray-300 */
    line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #ffffff;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.entry-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.entry-content h4 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: #10b981; /* primary color */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: rgba(16, 185, 129, 0.8);
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #10b981;
    background-color: #1f2937; /* bg-gray-800 */
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.entry-content code {
    background-color: #374151; /* bg-gray-700 */
    color: #10b981;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.entry-content pre {
    background-color: #1f2937; /* bg-gray-800 */
    color: #d1d5db;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: #1f2937;
    border-radius: 0.5rem;
    overflow: hidden;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.entry-content th {
    background-color: #374151;
    color: #ffffff;
    font-weight: 600;
}

.entry-content hr {
    border: none;
    height: 1px;
    background-color: #374151;
    margin: 3rem 0;
}

/* Стили для пагинации */
.pagination-item a,
.pagination-item span {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.pagination-item .current {
    background-color: #10b981 !important;
    color: white !important;
}

/* Responsive утилиты */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Улучшенные hover эффекты */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group:hover .group-hover\:text-primary {
    color: #10b981;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .entry-content h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}
