/* ===================================
   СТИЛИ ДЛЯ СТРАНИЦ КАТЕГОРИЙ
   =================================== */

/* Заголовок категории */
.category-header {
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.category-hero {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Анимированный градиент */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Декоративные элементы */
.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.category-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: sparkle 25s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes sparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Иконка категории */
.category-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Заголовок */
.category-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Описание категории */
.category-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Статистика */
.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.category-stats .stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

.category-stats .stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-stats .stat-item strong {
    display: block;
    font-size: 2rem;
    color: #FFD700;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.3rem;
}

.category-stats .stat-item span {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Фильтры */
.category-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.category-filters::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
}

.filter-section h3 {
    color: #2D3748;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-section label {
    font-weight: 600;
    color: #2D3748;
    white-space: nowrap;
}

#recipe-sort {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #2D3748;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

#recipe-sort:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .category-hero {
        padding: 4rem 1.5rem;
    }
    
    .category-stats {
        gap: 2rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 3rem 1rem;
        border-radius: 16px;
    }
    
    .category-icon-large {
        font-size: 3.5rem;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-description {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .category-stats .stat-item {
        min-width: 200px;
    }
    
    .category-filters {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .filter-options {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    #recipe-sort {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .category-hero {
        padding: 2.5rem 1rem;
    }
    
    .category-icon-large {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .category-stats .stat-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .category-filters {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .filter-options {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
}

/* Темная тема (если используется) */
@media (prefers-color-scheme: dark) {
    .category-filters {
        background: rgba(26, 32, 44, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .filter-section h3 {
        color: #F7FAFC;
    }
    
    .sort-section label {
        color: #F7FAFC;
    }
    
    .filter-btn {
        background: linear-gradient(145deg, #2D3748, #4A5568);
        color: #F7FAFC;
    }
    
    #recipe-sort {
        background: #2D3748;
        color: #F7FAFC;
        border-color: #4A5568;
    }
}

/* Эффект параллакса для больших экранов */
@media (min-width: 1024px) {
    .category-hero {
        transform-style: preserve-3d;
        perspective: 1000px;
    }
    
    .category-icon-large,
    .category-title,
    .category-description,
    .category-stats {
        will-change: transform;
    }
}

/* Анимации появления */
.category-header {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Микро-анимации */
.category-stats .stat-item strong {
    animation: countUp 1s ease-out 0.5s both;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Макет с сайдбаром */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.main-content {
    min-width: 0; /* Предотвращает переполнение grid */
}

/* Сетка рецептов */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recipe-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.recipe-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 3rem;
    text-decoration: none;
}

.recipe-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.1);
    background: white;
}

.recipe-badges {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-quick {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.badge-easy {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.recipe-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-title a:hover {
    color: #667eea;
}

.recipe-excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-value {
    font-weight: 600;
    color: #2d3748;
}

.recipe-ingredients-preview {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.recipe-ingredients-preview strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.5rem;
}

.btn-recipe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-recipe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Нет постов */
.no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.no-posts-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-posts-content p {
    color: #718096;
    margin-bottom: 2rem;
}

.no-posts-content .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-posts-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Адаптивность для контента с сайдбаром */
@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .meta-left,
    .meta-right {
        gap: 0.75rem;
    }
}

/* Стили пагинации */
.pagination-wrapper {
    margin: 4rem 0 2rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination-wrapper .pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper .pagination a,
.pagination-wrapper .pagination .current,
.pagination-wrapper .pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pagination-wrapper .pagination a {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #495057;
}

.pagination-wrapper .pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.pagination-wrapper .pagination a:hover::before {
    left: 100%;
}

.pagination-wrapper .pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    background: linear-gradient(145deg, #ffffff, #f1f3f4);
}

.pagination-wrapper .pagination .current {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.pagination-wrapper .pagination .dots {
    background: transparent;
    color: #6c757d;
    cursor: default;
}

.pagination-wrapper .pagination .prev,
.pagination-wrapper .pagination .next {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination-wrapper .pagination .prev:hover,
.pagination-wrapper .pagination .next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(145deg, #5a67d8, #6b46c1);
}

/* Сайдбар */
.sidebar {
    position: sticky;
    top: 2rem;
    width: 360px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-widget {
    background: #FFF;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.25rem;
    color: #2D3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #EAEAEA;
}

/* Поиск */
.search-wrapper {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    font-size: 1rem;
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
}

/* Списки в сайдбаре */
.recent-posts-list,
.categories-list,
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li,
.categories-list li,
.widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #EAEAEA;
}

.recent-posts-list li:last-child,
.categories-list li:last-child,
.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-link,
.category-link,
.widget ul li a {
    color: #2D3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.5;
}

.recent-post-link:hover,
.category-link:hover,
.widget ul li a:hover {
    color: #E67E22;
}

.category-count {
    background: #E67E22;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Новые рецепты (картинки) */
.new-recipes-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.new-recipe-image {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.new-recipe-image:hover {
    transform: scale(1.05);
}

.new-recipe-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Популярные рецепты */
.popular-recipe-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.popular-recipe-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-recipe-item:last-child {
    margin-bottom: 0;
}

.popular-recipe-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-recipe-content {
    flex: 1;
    min-width: 0;
}

.popular-recipe-title {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    text-decoration: none;
}

.popular-recipe-title:hover {
    color: #E67E22;
}

.popular-recipe-meta {
    font-size: 0.8rem;
    color: #718096;
}

/* Виджет архива */
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archive-list li {
    margin-bottom: 0.5rem;
}

.archive-list a {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.archive-list a:hover {
    color: #E67E22;
}

.archive-count {
    font-size: 0.8rem;
    color: #718096;
    background: #F7FAFC;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Виджет тэгов */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    background: #F7FAFC;
    color: #4A5568;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #EAEAEA;
}

.tag-cloud a:hover {
    background: #E67E22;
    color: white;
    border-color: #E67E22;
}

/* Адаптивная пагинация */
@media (max-width: 768px) {
    .pagination-wrapper .pagination {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }
    
    .pagination-wrapper .pagination a,
    .pagination-wrapper .pagination .current {
        min-width: 36px;
        height: 36px;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination-wrapper .pagination .prev,
    .pagination-wrapper .pagination .next {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1200px) {
    .sidebar {
        width: 320px;
    }
}

/* Скрываем sticky сайдбар на мобильных и показываем под контентом */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        margin-top: 2rem;
    }
} 