/* PokerLynx Blog Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0F111A;
    color: #F1F5F9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Навигация --- */
.blog-nav {
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.blog-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blog-nav-links { display: flex; gap: 24px; }
.blog-nav-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.blog-nav-links a:hover { color: #F1F5F9; }
.blog-nav-links a.active { color: #3B82F6; }

/* --- Контейнеры --- */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Герой блога --- */
.blog-hero {
    padding: 60px 0 40px;
    text-align: center;
}
.blog-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blog-hero p {
    color: #94A3B8;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Сетка статей --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

.article-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

/* Теги */
.article-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}
.tag-guide { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.tag-analytics { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.tag-howto { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.tag-comparison { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }

.article-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.article-card p {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748B;
    font-size: 13px;
}

/* --- Заголовок статьи --- */
.article-header {
    padding: 48px 0 32px;
}
.article-breadcrumb {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 20px;
}
.article-breadcrumb a { color: #3B82F6; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-header h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.article-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #64748B;
    font-size: 14px;
}

/* --- Контент статьи --- */
.article-content { padding-bottom: 60px; }
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.article-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
}
.article-content p {
    color: #CBD5E1;
    margin-bottom: 16px;
}
.article-content strong { color: #F1F5F9; }
.article-content ul, .article-content ol {
    margin: 12px 0 20px;
    padding-left: 24px;
    color: #CBD5E1;
}
.article-content li { margin-bottom: 8px; }

/* Таблицы */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.article-content th {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #CBD5E1;
}
.article-content tr:hover td { background: rgba(255,255,255,0.02); }

/* Формула */
.formula {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #E2E8F0;
    margin: 20px 0;
    text-align: center;
}

/* Callout */
.callout {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3B82F6;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 20px 0;
    color: #CBD5E1;
}
.callout strong { color: #3B82F6; }
.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #F59E0B;
}
.callout-warning strong { color: #F59E0B; }

/* Ссылки */
.article-content a { color: #3B82F6; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

/* Код */
.article-content code {
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #C4B5FD;
}

/* CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}
.article-cta h3 { font-size: 20px; margin-bottom: 8px; }
.article-cta p { color: #94A3B8; margin-bottom: 20px; }
.article-cta .btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.article-cta .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Связанные статьи */
.related-articles {
    padding: 40px 0 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.related-articles h3 { font-size: 20px; margin-bottom: 20px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.related-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.related-card:hover { border-color: rgba(59, 130, 246, 0.3); }
.related-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.related-card p { color: #64748B; font-size: 13px; }

/* Footer */
.blog-footer {
    background: rgba(15, 17, 26, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 32px 0;
    text-align: center;
    color: #64748B;
    font-size: 14px;
}
.blog-footer a { color: #3B82F6; text-decoration: none; }

/* --- How It Works page --- */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0 40px;
}
.hiw-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: start;
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-number {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    background-clip: padding-box;
    color: #8B5CF6;
}
.hiw-step h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.hiw-step p { color: #CBD5E1; margin-bottom: 12px; line-height: 1.7; }
.hiw-step-details {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 8px;
}
.hiw-step-details ol { padding-left: 20px; color: #94A3B8; }
.hiw-step-details li { margin-bottom: 6px; line-height: 1.6; }
.hiw-step-details strong { color: #F1F5F9; }

.hiw-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 0 48px;
}
.hiw-feature {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 24px;
}
.hiw-feature-icon { width: 44px; height: 44px; margin-bottom: 16px; }
.hiw-feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.hiw-feature p { color: #94A3B8; font-size: 14px; line-height: 1.5; }

.hiw-section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; padding-top: 40px; }
.hiw-section-subtitle { color: #94A3B8; font-size: 16px; margin-bottom: 24px; }

.hiw-faq { padding: 20px 0 48px; }
.hiw-faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); padding: 20px 0; }
.hiw-faq-item:last-child { border-bottom: none; }
.hiw-faq-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #F1F5F9; }
.hiw-faq-a { color: #94A3B8; line-height: 1.6; }

.callout-tip { background: rgba(16, 185, 129, 0.08); border-left-color: #10B981; }
.callout-tip strong { color: #10B981; }

/* Responsive */
@media (max-width: 768px) {
    .articles-grid, .related-grid { grid-template-columns: 1fr; }
    .blog-hero h1 { font-size: 28px; }
    .article-header h1 { font-size: 24px; }
    .container, .container-wide { padding: 0 16px; }
    .blog-hero { padding: 40px 0 24px; }
    .article-header { padding: 32px 0 24px; }
    .article-cta { padding: 24px; }
    .hiw-step { grid-template-columns: 1fr; gap: 16px; }
    .hiw-step-number { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
    .hiw-features { grid-template-columns: 1fr; }
}
