/* Основные стили для блога */
.blog-main {
    background: var(--white);
    padding: 140px 0 80px 0;
    min-height: 60vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 16px;
    font-family: "Unbounded", sans-serif;
}

.blog-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка статей */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточка статьи */
.blog-card {
    background: #fafafa;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-card-date {
    font-weight: 500;
}

.blog-card-author {
    font-weight: 500;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: "Unbounded", sans-serif;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-color);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.blog-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: var(--primary-light);
}

.blog-card-link::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.blog-card-link:hover::after {
    transform: translateX(4px);
}

/* Пустое состояние */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.blog-empty h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 12px;
    font-family: "Unbounded", sans-serif;
}

.blog-empty p {
    color: var(--text-light);
    font-size: 16px;
}

/* Детальная страница статьи */
.article-main {
    background: var(--white);
    padding: 140px 0 80px 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: "Unbounded", sans-serif;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--text-light);
}

.article-meta-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px auto 0;
    max-width: 800px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: var(--text-light);
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto 40px;
    border-radius: 24px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-color);
    font-family: "Unbounded", sans-serif;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-color);
    font-family: "Unbounded", sans-serif;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px auto 0;
    max-width: 800px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.article-back {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.article-back:hover {
    color: var(--primary-light);
}

.article-back::before {
    content: '← ';
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.article-back:hover::before {
    transform: translateX(-4px);
}

/* Конверсионные элементы для статей */

/* Inline CTA блоки */
.article-cta-inline {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
    color: white;
}

.article-cta-inline h4 {
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.article-cta-inline p {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
    color: white;
}

.article-cta-inline .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-cta-inline .btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sticky bottom bar */
.article-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.article-sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-text {
    font-weight: 600;
    font-size: 16px;
}

.article-sticky-cta .btn {
    background: white;
    color: var(--primary-color);
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-sticky-cta .btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

/* Боковые социальные доказательства */
.article-sidebar {
    position: sticky;
    top: 120px;
    background: #fafafa;
    border-radius: 16px;
    padding: 24px;
    margin-left: 40px;
    max-width: 300px;
}

.article-social-proof {
    margin-bottom: 24px;
}

.proof-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.proof-quote {
    font-size: 14px;
    font-style: italic;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
}

.proof-author {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.sidebar-cta {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.sidebar-cta h5 {
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    margin-bottom: 12px;
    color: white;
}

.sidebar-cta p {
    font-size: 13px;
    margin-bottom: 16px;
    opacity: 0.9;
    color: white;
}

.sidebar-cta .btn {
    background: white;
    color: var(--primary-color);
    width: 100%;
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: all 0.3s ease;
}

.sidebar-cta .btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

/* Контейнер для статьи с сайдбаром */
.article-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Статистика участников */
.stats-widget {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
    border: 2px solid var(--primary-color);
}

.stats-number {
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stats-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Urgency элементы */
.urgency-timer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
    font-weight: 600;
}

.timer-text {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 12px;
    text-align: center;
}

.upcoming-workouts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    gap: 8px;
}

.workout-time {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 60px;
}

.workout-title {
    opacity: 0.9;
    font-size: 12px;
    text-align: right;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

/* Exit intent overlay */
.exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.exit-intent-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

.exit-intent-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.exit-intent-title {
    font-family: "Unbounded", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.exit-intent-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Мобильная адаптация */
@media (max-width: 768px) {
    .blog-main,
    .article-main {
        padding: 100px 0 40px 0;
    }
    
    .blog-title,
    .article-title {
        font-size: 28px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .article-header {
        margin-bottom: 40px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-meta-bottom {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-image {
        height: 250px;
        margin-bottom: 32px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    /* Мобильные стили для конверсионных элементов */
    .article-cta-inline {
        padding: 20px 16px;
        margin: 32px 0;
    }
    
    .article-cta-inline h4 {
        font-size: 18px;
    }
    
    .article-cta-inline p {
        font-size: 14px;
    }
    
    .article-sticky-cta {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sticky-cta-text {
        font-size: 14px;
    }
    
    .article-sticky-cta .btn {
        width: 100%;
        margin-top: 4px;
    }
    
    .article-with-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-sidebar {
        position: static;
        margin-left: 0;
        max-width: none;
        order: 1;
    }
    
    .exit-intent-modal {
        padding: 24px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .exit-intent-title {
        font-size: 20px;
    }
    
    .exit-intent-text {
        font-size: 15px;
    }
}