/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ СТИЛЕЙ
   Dark Crypto Premium Theme
   ============================================ */

/* Улучшения для карточек постов */
.post-item.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item.hover-lift:hover {
    transform: translateY(-8px);
}

/* Категория поверх изображения */
.post-thumbnail .post-category {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover эффект для заголовков */
.post-title a {
    background-image: linear-gradient(var(--accent-cyan), var(--accent-cyan));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.post-title a:hover {
    background-size: 100% 2px;
}

/* Улучшение кнопок */
.post-item .btn {
    font-size: 0.9rem;
    padding: 10px 24px;
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .post-thumbnail {
        height: 240px;
    }
}

/* Адаптация для больших экранов */
@media (min-width: 1400px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .post-thumbnail {
        height: 260px;
    }
}

/* Улучшение типографики */
.post-title {
    line-height: 1.3;
    font-weight: 600;
}

.post-excerpt {
    font-size: 0.95rem;
}

/* Мета информация с иконками */
.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Эффект загрузки для изображений */
.post-thumbnail {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.1) 40px,
        rgba(255, 255, 255, 0.05) 80px
    );
    background-size: 600px 100%;
}

.post-thumbnail img {
    animation: fadeIn 0.5s ease-out;
}

/* Улучшение для sidebar sticky */
@media (min-width: 1025px) {
    .widget-area.sidebar {
        position: sticky;
        top: 120px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    /* Кастомный скроллбар */
    .widget-area.sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .widget-area.sidebar::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 3px;
    }
    
    .widget-area.sidebar::-webkit-scrollbar-thumb {
        background: var(--accent-cyan);
        border-radius: 3px;
    }
    
    .widget-area.sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--accent-blue);
    }
}

/* Анимация появления постов */
.post-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.post-item:nth-child(1) { animation-delay: 0.1s; }
.post-item:nth-child(2) { animation-delay: 0.2s; }
.post-item:nth-child(3) { animation-delay: 0.3s; }
.post-item:nth-child(4) { animation-delay: 0.4s; }
.post-item:nth-child(5) { animation-delay: 0.5s; }
.post-item:nth-child(6) { animation-delay: 0.6s; }

/* Для страниц с пагинацией убираем задержку */
.page .post-item,
.paged .post-item {
    animation-delay: 0s !important;
}

/* Улучшение кнопки "Читать далее" */
.post-item .btn-secondary {
    position: relative;
    overflow: hidden;
}

.post-item .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.5s;
}

.post-item .btn-secondary:hover::before {
    left: 100%;
}

/* Нет постов */
.no-posts {
    padding: 60px 40px;
    text-align: center;
}

.no-posts h2 {
    margin-bottom: 20px;
}

.no-posts p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Подсветка текущей страницы в пагинации */
.pagination .page-numbers {
    transition: all 0.3s ease;
}

.pagination .page-numbers:not(.current):hover {
    color: var(--accent-cyan);
}
