/*=============================================>>>>>
= Блог/Статьи =
===============================================>>>>>*/

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}


.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.read-more {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.read-more:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/*=============================================>>>>>
= Полная структура блога =
===============================================>>>>>*/

.blog-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: var(--text-primary); 
}

.category-filter.active {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: rgb(255, 0, 0); 
    color: rgb(0, 0, 0);
    border-color: var(--accent-color);
}

.category-filter.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}



.category-name {
    flex: 1;
    font-size: 0.8em;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 70px;
}

.category-count {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: var(--text-primary);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.popular-post:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.popular-post h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.blog-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}


/*=============================================>>>>>
= Улучшенный блог с интерактивностью =
===============================================>>>>>*/

/* Шапка блога */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

#blog-search {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    font-size: 1.1em;
    color: #2d3748;
    font-weight: 500;
}

#blog-search:focus {
    outline: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: var(--accent-color);
    color: white;
}

.search-result-item:last-child {
    border-bottom: none;
}

.blog-sort select {
    padding: 15px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-sort select:focus {
    border-color: var(--accent-color);
}

.blog-article:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 60px rgb(255, 0, 0),
        0 8px 25px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgb(255, 0, 0);
}

.blog-article::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.6s ease;
    z-index: 1;
}

.blog-article:hover::before {
    left: 100%;
}

/* Изображение статьи */
.article-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5em;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-article:hover .article-image {
    transform: scale(1.05);
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-article:hover .article-image::after {
  opacity: 1;
}

.blog-article:hover .article-image-placeholder {
    transform: scale(1.1);
}

.article-image-placeholder {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
}

/* Бейджи на изображении */
.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.3em;
    font-weight: 600;
    color: var(--text-primary);
}

.article-read-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.3em;
}

/* Контент карточки */
.article-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.article-header {
    margin-bottom: 16px;
}

.article-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.article-excerpt {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 0.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Мета-информация */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #ff8e8e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    border: 2px solid rgb(212, 63, 63);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(241, 212, 212, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.39);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8em;
}

.article-stat:hover {
    background: rgba(250, 174, 174, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.like-article {
    color: #0062eb;
    background: rgba(248, 250, 252, 0.8);
}

.like-article.liked {
    color: #dc2626;
    background: rgba(254, 226, 226, 0.9);
    border-color: rgba(220, 38, 38, 0.2);
}

.like-article.liked .like-icon {
    animation: heartPop 0.6s ease;
}

.like-article:hover {
    color: #dc2626;
    background: rgba(254, 226, 226, 0.8);
}

.views-stat {
    color: #64748b;
}

.article-stat.liked {
    color: #ff4757;
}

.article-stat.liked .like-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ДЕЙСТВИЯ СТАТЬИ */
.article-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* КНОПКА ЗАКЛАДКИ */
.bookmark-article {
    width: 48px;
    height: 48px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
}

.bookmark-article::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 ease;
}

.bookmark-article:hover::before {
    left: 100%;
}

.bookmark-article:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bookmark-article.bookmarked {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-color: rgba(255, 107, 107, 0.5);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.bookmark-article.bookmarked:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateY(-2px);
}

/* Облако тегов */
.blog-tags {
    margin-top: 30px;
}


.tag:hover {
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,107,107,0.3);
}

/* Статистика активности */
.activity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 1.5em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Прогресс чтения */
.reading-progress {
    text-align: center;
    margin: 30px 0;
}



.progress-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 6;
}

.progress-fill {
    fill: none;
    stroke: #ff6b6b;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease;
    height: 100%;
    border-radius: 3px;
    stroke-width: 6;
    stroke: var(--blog-primary);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.progress-percent {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: -25px;
    margin-left: -10px;
   color: var(--accent-color);
}

.progress-label {
    font-size: 0.9em;
    margin-left: -20px;
    color: var(--text-secondary);
}

/* Подписка на рассылку */
.newsletter-subscribe {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    padding: 25px;
    border-radius: 20px;
    color: white;
    text-align: center;
}

.newsletter-subscribe h3 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-subscribe p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Загрузка и пагинация */
.blog-loading {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  border: none;
  border-radius: 50px;
  padding: 20px 40px;
  color: white;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.load-more-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 ease;
}

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

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255,107,107,0.4);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}



/* Адаптивность */
@media (max-width: 1279px) {
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blog-search {
        max-width: none;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .article-actions {
        width: 100%;
    }
    
    .read-article {
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .bookmark-article {
        width: 44px;
        height: 44px;
    }
}

/* Стили для уведомлений блога */
.blog-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(78, 205, 196, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-notification.show {
    transform: translateX(0);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Сообщение "нет статей" */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-articles-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-articles h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-articles p {
    color: var(--text-secondary);
}

/*=============================================>>>>>
= Переработанный дизайн блога =
===============================================>>>>>*/

:root {
  --blog-primary: #ff6b6b;
  --blog-secondary: #4ecdc4;
  --blog-accent: #ffd166;
  --blog-dark: #2d3047;
  --blog-light: #f7f7f7;
  --blog-gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  --blog-card-shadow: 0 20px 40px rgba(0,0,0,0.1);
  --blog-hover-shadow: 0 30px 60px rgba(255,107,107,0.2);
}

/* Герой-секция блога */


.blog-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 1000 1000"><defs><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><g fill="url(%23a)"><circle cx="200" cy="200" r="100"/><circle cx="800" cy="300" r="150"/><circle cx="400" cy="700" r="120"/><circle cx="700" cy="600" r="80"/></g></svg>');
  animation: float 20s infinite linear;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
}

.hero-stat {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-illustration {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 200px;
    height: 200px;
}

.floating-element {
    position: absolute;
    font-size: 2.5em;
    animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}



/* Улучшенные контролы */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.733);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.568),
        0 8px 25px rgb(255, 107, 107),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.blog-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffd166);
    border-radius: 3px 3px 0 0;
}

.blog-controls:hover {
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.678);
    transform: translateY(-3px);
    border-color: #000000;
    transform: scale(135deg);
    animation: shimmer 2s infinite;
    
    
}

.blog-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-toggle {
    display: none;
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Боковая панель */
.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-section h3 {
    color: var(--text-primary);
    font-size: 1.1em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}



.blog-article.featured {
    border-color: var(--accent-color);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.1);
}

.blog-article.featured::before {
    content: '⭐ Избранное';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    z-index: 3;
}



/* Специальные эффекты для разных категорий */
.article-image.design { 
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important; 
}

.article-image.development { 
  background: linear-gradient(135deg, #4ecdc4, #6ae6dd) !important; 
}

.article-image.photography { 
  background: linear-gradient(135deg, #45b7d1, #67d1e6) !important; 
}

.article-image.business { 
  background: linear-gradient(135deg, #96ceb4, #b4e6cc) !important; 
}

.article-image.inspiration { 
  background: linear-gradient(135deg, #ffd166, #ffe08c) !important; 
}

.blog-notification.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.blog-notification.error {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.blog-notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.blog-notification.warning {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
}


/* Теги */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}



.article-tag {
    background: rgba(255, 107, 107, 0.1);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(255, 107, 107, 0.493);
    transform: translateY(-1px);
    color: #000;
}

/* Прогресс по категориям */
.progress-details {
    margin-top: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-category {
    font-size: 0.8em;
    color: var(--text-primary);
    min-width: 80px;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/*=============================================>>>>>  
= СЕКЦИЯ ПОДПИСКИ =  
===============================================>>>>>*/
.blog-newsletter {
    margin-top: 80px;
    padding: 10px 40px;
    background: linear-gradient(135deg, #1f222e 0%, #d11111 100%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(102, 126, 234, 0.3);
}

.blog-newsletter::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><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><g fill="url(%23a)"><circle cx="20" cy="20" r="15"/><circle cx="80" cy="30" r="20"/><circle cx="40" cy="70" r="18"/><circle cx="70" cy="60" r="12"/></g></svg>');
    animation: float 20s infinite linear;
}

/*=============================================>>>>>
= Визуально улучшенный блог =
===============================================>>>>>*/

/* Герой секция блога */
.blog-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    padding: -60px -40px;
    background: linear-gradient(135deg, #1f222e 0%, #d11111 100%);
    border-radius: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border-width: medium;
    border-style: solid;
    border-color: black;
    margin-top: -29px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 5%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-badge {
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 30px;
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: 4em !important;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #ffd166);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  text-align: center;
}

.hero-description {
    font-size: 1.3em;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.9;
    max-width: 500px;
    text-align: center;
    color: wheat;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.cta-button.primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Визуальная часть героя */
.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.rotating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateCard 20s linear infinite;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 20px;
    right: 20px;
    animation-delay: -6.66s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -13.33s;
}


.card-content {
    text-align: center;
    color: white;
}

.card-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.card-title {
    font-size: 0.8em;
    font-weight: 600;
}

.central-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.main-icon {
    font-size: 3em;
    z-index: 2;
}

/* Контролы блога */

.controls-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.controls-header h3 {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.controls-header p {
    color: #64748b;
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.controls-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

/* Поисковая строка */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-wrapper:focus-within {
    border-color: #ff6b6b;
    box-shadow: 
        0 8px 30px rgba(255, 107, 107, 0.25),
        0 2px 10px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

#blog-search::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-button {
    padding: 18px 28px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

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

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateX(2px);
}

.search-suggestions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.suggestion:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

/* Фильтры */
.filters-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label::before {
    content: '🔴';
    font-size: 1.1em;
}

.styled-select {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 107, 107, 0.568);
    border-radius: 16px;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.301);
}

.styled-select:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.685),
        0 2px 8px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

/* Заголовок статей */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.articles-header h2 {
    font-size: 2em;
    margin: 0;
    color: var(--text-primary);
}

.articles-count {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9em;
}

/* Улучшенные карточки статей */
.blog-article {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: floatIn 0.6s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 
        0 8px 32px rgb(0, 0, 0),
        0 2px 8px rgba(219, 4, 4, 0.04),
        inset 0 1px 0 rgba(255, 0, 0, 0.8);
}

.read-article {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.read-article:hover::before {
    left: 100%;
}

.read-article:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Загрузка и пагинация */
.loading-animation {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: loadingBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.load-more-section {
    text-align: center;
    margin-top: 50px;
}

.load-progress {
    margin-top: 20px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Новостная рассылка */

.newsletter-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    text-align: left;
}

.newsletter-icon {
    font-size: 3.5em;
    margin-bottom: 25px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.newsletter-content h3 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    color: white;
    font-weight: 800;
    line-height: 1.2;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 35px 0;
    font-size: 1.2em;
    line-height: 1.6;
    font-weight: 500;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgb(138, 33, 33);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.87);
}

.input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 35px rgb(255, 255, 255),
        0 4px 15px rgba(255, 0, 0, 0.685);
    transform: translateY(-2px);
}

.subscribe-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, #ff4646, #7c4242);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

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

.subscribe-btn:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateX(2px);
}

.subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.subscribe-input::placeholder {
    color: rgba(0, 0, 0, 0.7);
}

/* Кнопка отписки */
.unsubscribe-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

.unsubscribe-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.subscribe-input:focus {
    outline: none;
}

.subscribe-input {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 1.1em;
    font-weight: 500;
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
}

/* Визуальная часть */
.newsletter-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
}

.envelope {
    font-size: 6em;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts span {
    position: absolute;
    font-size: 2em;
    animation: floatHeart 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.floating-hearts span:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.floating-hearts span:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
    color: #4ecdc4;
}

.floating-hearts span:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
    color: #ffd166;
}

@keyframes floatHeart {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) rotate(10deg) scale(1.1); 
        opacity: 1;
    }
}

/* Категории */
.categories-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.categories-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.categories-hero h3 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.categories-hero p {
    color: var(--text-secondary);
    margin: 0;
}

.categories-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  border: 2px solid transparent;
  border-radius: 20px;
  border-color: #000;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 0px 10px black;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  cursor: grab;
}


.category-card:hover::before {
  animation: shimmer 2s infinite;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgb(0, 0, 0);
}

.category-card.active {
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  color: white;
  transform: scale(1.05);
  box-shadow: var(--blog-hover-shadow);
  cursor: grab;
}

.category-card.active .category-title,
.category-card.active .category-description,
.category-card.active .stat-label {
    color: white !important;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon {
    font-size: 2em;
    right: 100px;
}

.category-card.active .category-badge {
    background: rgba(255, 255, 255, 0.3);
}

.category-title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.category-description {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-count {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-color);
}

.category-card.active .stat-count {
    color: white;
}

.category-progress {
    margin-top: 10px;
}

/* Теги */
.tags-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h4 {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-primary);
}

.section-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
  background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
  border: 1px solid rgba(255,107,107,0.2);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tag::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 ease;
}

/* Активность */
.activity-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Улучшенная статистика активности */
.activity-widget {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.753);
}

.activity-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(185, 11, 11, 0.753);
}


.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header h3 {
    font-size: 1.2em;
    margin: 0;
    color: var(--text-primary);
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    color: #4caf50;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stats-grid {
    display: grid;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}



.stat-item:hover {
  background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
  transform: translateX(10px);
}

.stat-item.highlight {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), transparent);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.stat-data {
    flex: 1;
}

.stat-value {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-trend {
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.stat-trend.up {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.stat-trend.down {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.stat-trend.neutral {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

/* Прогресс чтения */
.progress-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.progress-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: start;
}

.main-progress {
    display: flex;
    justify-content: center;
}

.progress-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}


.category-progresses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-percent-mini {
    font-size: 0.7em;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: right;
}

/* Активность и достижения */
.refresh-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(180deg);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}


/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotateCard {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}




/* Достижения */
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement {
  background: rgba(255,255,255,0.8);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.achievement.unlocked {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), transparent);
    border: #000;
    border-radius: 10px;
    box-shadow: #000;
    text-shadow: #000;
}

.achievement.unlocked::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blog-accent);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.achievement.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.achievement-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Элементы активности */


.activity-item:hover {
    transform: translateX(5px);
    background: var(--card-bg);
}

.activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-size: 0.9em;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9em;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.7em;
    color: var(--text-secondary);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .blog-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }

    .progress-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-controls {
        padding: 25px;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-container {
        width: 250px;
        height: 250px;
    }
    
    .rotating-card {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-description {
        font-size: 1.1em;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
}

/* Специфические стили для состояний */
.load-more-btn.loading .btn-text {
    display: none;
}

.load-more-btn.loading .btn-spinner {
    display: inline-block;
}

.subscribe-btn.loading .btn-text {
    display: none;
}

.subscribe-btn.loading .btn-spinner {
    display: inline-block;
}

/* Стили для скроллбара */
.activity-feed::-webkit-scrollbar {
    width: 4px;
}

.activity-feed::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: #c73737;
}

/* Анимация появления элементов */
.blog-article:nth-child(1) { animation-delay: 0.1s; }
.blog-article:nth-child(2) { animation-delay: 0.2s; }
.blog-article:nth-child(3) { animation-delay: 0.3s; }
.blog-article:nth-child(4) { animation-delay: 0.4s; }
.blog-article:nth-child(5) { animation-delay: 0.5s; }
.blog-article:nth-child(6) { animation-delay: 0.6s; }

/* Стили для пустого состояния */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Стили для выбранных категорий */
.category-card.active .progress-fill {
    background: rgba(255, 255, 255, 0.5);
}

/* Стили для тегов с разным весом */
.tag.weight-1 { font-size: 0.7em; padding: 6px 12px; }
.tag.weight-2 { font-size: 0.8em; padding: 7px 14px; }
.tag.weight-3 { font-size: 0.9em; padding: 8px 16px; }
.tag.weight-4 { font-size: 1em; padding: 9px 18px; }
.tag.weight-5 { font-size: 1.1em; padding: 10px 20px; }

/* Микро-анимации для интерактивности */
.article-stat:active {
    transform: scale(0.95);
}

.category-card:active {
    transform: scale(0.98);
}

.tag:active {
    transform: scale(0.95);
}

/* Стили для фокуса доступности */
.cta-button:focus,
.search-button:focus,
.load-more-btn:focus,
.subscribe-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

#blog-search:focus,
.subscribe-input:focus,
.styled-select:focus {
    outline: none;
    box-shadow: 10 10 10 20px #000;
}


/* Печать стилей */
@media print {
    .blog-hero,
    .blog-controls,
    .blog-newsletter,
    .section-secondary-block {
        display: none;
    }
    
    .blog-article {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

.featured-badge {
    position: absolute;
    top: 180px;
    right: 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.7em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.subscribe-form {
    max-width: 500px;
    margin: 0;
    
}

/*=============================================>>>>>
= Стили для скролла активности =
===============================================>>>>>*/

.activity-feed {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--border-color);
}

/* Стили для Webkit браузеров (Chrome, Safari, Edge) */
.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
    margin: 5px 0;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c73737, #ff6b6b);
    transform: scale(1.1);
}

/* Плавная анимация скролла */
.activity-feed {
    scroll-behavior: smooth;
}

/* Стили для пустого состояния с учетом скролла */
.no-activity {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-activity-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-activity-text {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.no-activity-hint {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Анимация появления элементов активности */
.activity-item {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Индикатор наличия скролла */
.activity-feed:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, var(--card-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-feed.scrollable:after {
    opacity: 1;
}

/* Стили для Firefox */
@supports (scrollbar-width: thin) {
    .activity-feed {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-color) var(--border-color);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .activity-feed {
        max-height: 150px;
    }
    
    .activity-feed::-webkit-scrollbar {
        width: 4px;
    }
}

/* Эффект при скролле */
.activity-feed.scrolling {
    scrollbar-color: #c73737 var(--border-color);
}

.activity-feed.scrolling::-webkit-scrollbar-thumb {
    background: #c73737;
}

.activity-controls {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.scroll-btn {
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    color: rgb(235, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #c73737;
    transform: scale(1.1);
}

/* Таблицы */
.comparison-table,
.equipment-table,
.financial-table,
.performance-table,
.research-table,
.tools-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.equipment-table th,
.financial-table th,
.performance-table th,
.research-table th,
.tools-table th {
    background: var(--accent-color);
    color: white;
    padding: 1em;
    text-align: left;
    font-weight: 600;
}

.comparison-table td,
.equipment-table td,
.financial-table td,
.performance-table td,
.research-table td,
.tools-table td {
    padding: 1em;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover,
.equipment-table tr:hover,
.financial-table tr:hover,
.performance-table tr:hover,
.research-table tr:hover,
.tools-table tr:hover {
    background: rgba(255, 107, 107, 0.05);
}

/* Специфические стили для разных типов контента */
.lighting-setups,
.architecture-patterns,
.ethical-issues,
.collaboration-models {
    display: grid;
    gap: 2em;
    margin: 2em 0;
}

.setup,
.pattern,
.issue,
.model {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.color-psychology,
.color-trends {
    display: grid;
    gap: 1.5em;
    margin: 2em 0;
}

.color-item {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin: 1em 0;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.market-evolution,
.brand-building,
.pricing-models {
    display: grid;
    gap: 2em;
    margin: 2em 0;
}

.era,
.brand-step,
.pricing-model {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;



.creative-exercises {
    display: grid;
    gap: 1.5em;
    margin: 2em 0;
}

.exercise {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.ai-domains,
.future-predictions,
.cultural-colors {
    display: grid;
    gap: 1.5em;
    margin: 2em 0;
}

.domain,
.prediction,
.culture {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
}

.advanced-types,
.generic-examples,
.error-patterns {
    margin: 2em 0;
}

.best-practices,
.migration-steps,
.adaptation-strategy {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    margin: 2em 0;
}

.pro-tips,
.success-formula,
.inspiration-mantra,
.conclusion,
.key-takeaways {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: white;
    padding: 2em;
    border-radius: 15px;
    margin: 2em 0;
}

.pro-tips h3,
.success-formula h3,
.inspiration-mantra h3,
.conclusion h3,
.key-takeaways h3 {
    color: white;
    margin-top: 0;
}

.ab-testing {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    margin: 2em 0;
}

.palette-creation {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    margin: 2em 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .code-comparison {
        grid-template-columns: 1fr;
    }
    
    .inspiration-sources {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table,
    .equipment-table,
    .financial-table,
    .performance-table,
    .research-table,
    .tools-table {
        font-size: 0.9em;
    }
}

/* Подсветка синтаксиса для кода */
.token.keyword { color: #ff6b6b; }
.token.string { color: #4ecdc4; }
.token.number { color: #ffd166; }
.token.function { color: #6a0572; }
.token.comment { color: #6c757d; }
.token.punctuation { color: #e2e8f0; }
.token.operator { color: #ff6b6b; }
.token.class-name { color: #4ecdc4; font-weight: bold; }
}

/* Стиль скролля в модалке */

.article-content-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff4e78 #1a1a1a;
    padding-right: 8px;
}

.article-content-scrollable::-webkit-scrollbar {
    width: 6px;
}
.article-content-scrollable::-webkit-scrollbar-thumb {
    background-color: #ff4e78;
    border-radius: 6px;
}

/*=============================================>>>>>  
= ПРОСМОТР СТАТЬИ =  
===============================================>>>>>*/

.article-view-container {
    min-height: 100vh;
    background: white;
    position: relative;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
}


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

/* Контент статьи */
.article-view-content h4 {
    color: #718096;
    margin: 1.8em 0 0.8em 0;
    font-size: 1.3em;
    font-weight: 600;
}

.article-view-content ol li::before {
    content: counter(list-counter) '.';
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    left: -1.8em;
    top: 0;
}

.article-view-content ol li {
    counter-increment: list-counter;
}

.article-view-content ul, 
.article-view-content ol {
    margin: 2em 0;
    padding-left: 2.5em;
}

.article-view-content ol {
    counter-reset: list-counter;
}

.article-view-content li {
    margin-bottom: 1em;
    line-height: 1.7;
    color: #4a5568;
    font-size: 1.1em;
    position: relative;
}

.article-view-content blockquote {
    border-left: 6px solid #ff6b6b;
    padding: 2.5em 3em;
    margin: 3em 0;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 20px;
    font-style: italic;
    font-size: 1.2em;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.article-view-content ul li::before {
    content: '•';
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.4em;
    position: absolute;
    left: -1.2em;
    top: -0.1em;
}

.article-view-content blockquote::before {
    content: '"';
    font-size: 8em;
    color: rgba(255,107,107,0.1);
    position: absolute;
    top: -30px;
    left: 10px;
    font-family: serif;
    line-height: 1;
}


.article-view-content blockquote p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    text-indent: 0;
    position: relative;
    z-index: 2;
}


.article-view-content code {
    background: #f7fafc;
    padding: 0.3em 0.6em;
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #e53e3e;
    font-size: 0.95em;
    border: 1px solid #ff0000;
    font-weight: 500;
}

.article-view-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2.5em;
    border-radius: 20px;
    overflow-x: auto;
    margin: 2.5em 0;
    border: 1px solid #4a5568;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
}

.article-view-content pre::before {
    content: '📋';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2em;
    opacity: 0.7;
}

.article-view-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.95em;
    line-height: 1.6;
}
/* Таблицы */
.article-view-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5em 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-size: 0.95em;
}

.article-view-content th {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 1.5em;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: 2px solid #ff5252;
}

.article-view-content td {
    padding: 1.5em;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.5;
}

.article-footer {
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.back-to-blog-bottom {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255,107,107,0.3);
    margin-top: 30px;
}

.back-to-blog-bottom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.808);
}

.article-view-content tr:hover {
    background: #f7fafc;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Изображения */
.article-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 2em 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* Специфические блоки */
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 2em 0;
}

.code-block {
    background: var(--bg-secondary);
    padding: 1.5em;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.code-block h4 {
    margin-top: 0;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5em;
}

.inspiration-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.source-item {
    background: var(--card-bg);
    padding: 1.5em;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.source-item:hover {
    transform: translateY(-5px);
}

/* Стили для просмотра статьи внутри секции */
.article-view {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.article-view.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    background: white;
    animation: slideInUp 0.6s ease-out;
   
}

.blog-listing {
    display: block;
}

.blog-listing.hidden {
    display: none;
}

.article-view-header {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: rgb(247, 242, 242);
    background: #7a1313;
    padding: 4px;
    position: sticky;
    overflow: hidden;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: -100px;
}

.article-view-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.article-view-header::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><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><g fill="url(%23a)"><circle cx="20" cy="20" r="10"/><circle cx="80" cy="30" r="15"/><circle cx="40" cy="70" r="12"/><circle cx="70" cy="60" r="8"/></g></svg>');
    animation: float 2s infinite linear;
}

.back-to-blog-btn {
    background: rgba(255,255,255,0.2);
    border: 5px solid rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    padding: 5px 6px;
    border-radius: 25px;
    cursor: grab;
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: -10px;
    margin-left: 900px;
    margin-top: -100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    backdrop-filter: blur(10px);
    
}

.back-to-blog-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.article-view-header h1 {
    font-size: 1em;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.856);
}

.article-view-meta {
    display: flex;
    gap: 302px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.1);
    padding: 2px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.author-info-large {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar-large {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16225a, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    border: 3px solid rgba(0, 0, 0, 0.3);
}

.author-details .author-name {
    font-weight: 700;
    font-size: 1.2em;
}

.author-details .article-date {
    opacity: 0.9;
    font-size: 1em;
}

.article-stats-large {
    display: flex;
    gap: 25px;
    font-size: 1.1em;
}

.article-stats-large span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

.article-category-large {
    background: rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.2);
}

.article-view-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-view-content h2 {
    color: #2d3748;
    margin: 2em 0 1em 0;
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 0.5em;
    position: relative;
}



.article-view-content h2::before {
    content: '📖';
    margin-right: 15px;
    font-size: 0.9em;
}

.article-view-content h3 {
    color: #4a5568;
    margin: 2em 0 1em 0;
    font-size: 1.6em;
    font-weight: 600;
    padding-left: 20px;
    border-left: 4px solid #4ecdc4;
}

.article-view-content p {
    margin-bottom: 1.8em;
    text-align: justify;
    font-size: 1.1em;
    color: #4a5568;
    text-indent: 1.5em;
}

.article-view-content em {
    color: #718096;
    font-style: italic;
}

.article-view-content strong {
    color: #2d3748;
    font-weight: 700;
}

.article-view-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid #f1f3f4;
}

.article-view-actions .btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    flex: 1;
    justify-content: center;
}

.like-article-view {
    background: rgba(255, 107, 107, 0.1);
    color: #d63031;
}

.like-article-view:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.like-article-view.liked {
    background: #ff6b6b;
    color: white;
}

.bookmark-article-view {
    background: rgba(78, 205, 196, 0.1);
    color: #00b894;
}

.bookmark-article-view:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
}

.bookmark-article-view.bookmarked {
    background: #4ecdc4;
    color: white;
}

.share-article-view {
    background: rgba(255, 209, 102, 0.1);
    color: #e17055;
}

.share-article-view:hover {
    background: rgba(255, 209, 102, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .article-view-header {
        padding: 30px 20px;
    }
    
    .article-view-header h1 {
        font-size: 1.8em;
    }
    
    .article-view-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .article-view-content {
        padding: 30px 20px;
        font-size: 1em;
    }
    
    .article-view-actions {
        flex-direction: column;
    }
}

/* Стили для скролла контента статьи */
.article-view-content {
    background: rgb(236, 233, 233);
    padding: 60px;
    border-radius: 30px;
    margin: -30px auto 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.61);
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.15em;
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff6b6b #f1f1f1;
}



/* Стили для скроллбара в Webkit браузерах */
.article-view-content::-webkit-scrollbar {
    width: 8px;
}

/* Отключаем скролл для всей секции когда открыта статья 
.article-view.active ~ * {
    display: none;
}

/* Убедимся что секция блога не скроллится когда открыта статья 
.section-blog {
    position: relative;
}

/* Индикатор прогресса чтения */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 10000;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd166);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .article-view-header {
        padding: 30px 20px;
    }
    
    .back-to-blog-btn {
    background: rgba(255,255,255,0.2);
    border: 5px solid rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    padding: 5px 6px;
    
    }
    
    .article-view-header h1 {
        font-size: 2em;
    }
    
    .article-view-content {
        padding: 30px 20px;
        font-size: 1em;
        margin: -20px auto 30px;
        max-height: calc(100vh - 150px);
    }
    
    .article-view-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .article-stats-large {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .article-footer {
        padding: 40px 20px;
    }
}

/* Стили для скроллбара */
.article-view-content::-webkit-scrollbar {
    width: 8px;
}

.article-view-content::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
    margin: 10px 0;
}

.article-view-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 10px;
    border: 2px solid #f7fafc;
}

.article-view-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c73737, #ff6b6b);
}

/* Индикатор конца контента */
.content-end-indicator {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(transparent, rgba(255,107,107,0.05));
    border-radius: 0 0 30px 30px;
    margin-top: 60px;
    color: #718096;
    font-style: italic;
    border-top: 2px dashed #e2e8f0;
    opacity: 0.7;
    transition: all 0.5s ease;
    position: relative;
    font-size: 1.1em;
}

.content-end-indicator::before {
    content: '👇';
    font-size: 2em;
    display: block;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.content-end-indicator.visible {
    opacity: 1;
    background: linear-gradient(transparent, rgba(255,107,107,0.1));
    color: #4a5568;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .article-view-header {
        padding: 30px 20px;
    }
    
    .article-view-header h1 {
        font-size: 2em;
    }
    
    .article-view-content {
        padding: 30px 20px;
        font-size: 1em;
        margin: -20px auto 30px;
    }
    
    .article-view-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .article-stats-large {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Адаптивность */
@media (max-width: 1200px) {
    .controls-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .newsletter-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    
    .controls-header h3 {
        font-size: 1.8em;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 16px;
    }
    
    #blog-search {
        padding: 16px 20px;
    }
    
    .search-button {
        padding: 16px 20px;
        justify-content: center;
        border-radius: 0 0 14px 14px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .subscribe-input {
        padding: 16px 20px;
    }
    
    .subscribe-btn {
        padding: 16px 20px;
        justify-content: center;
        border-radius: 0 0 14px 14px;
    }
    
    .blog-newsletter {
        padding: 40px 20px;
    }
    
    .newsletter-content h3 {
        font-size: 2em;
    }
}

.name-input {
    margin-bottom: 15px;
}

.name-input .subscribe-input {
    width: 100%;
}