/* ============================================
   TACTICAL BLOG - ФИНАЛЬНАЯ ВЕРСИЯ
   ============================================ */

:root {
    --tactical-bg: #0a0e1a;
    --tactical-bg-secondary: #0f1320;
    --tactical-bg-card: #111827;
    --tactical-bg-overlay: rgba(15, 19, 32, 0.3);
    --tactical-accent: #00ff9d;
    --tactical-accent-dim: rgba(0, 255, 157, 0.2);
    --tactical-text: #e5e7eb;
    --tactical-text-muted: #9ca3af;
    --tactical-border: #1f2937;
    --tactical-warning: #f59e0b;
    --tactical-updated: #3b82f6;
    --tactical-draft: #6b7280;
}

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

body {
    background: var(--tactical-bg);
    color: var(--tactical-text);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

/* Подложка под блоками */
.style-section {
    background: var(--tactical-bg-overlay);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ========== ШАПКА ========== */
.tactical-header {
    border-bottom: 2px solid var(--tactical-accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tactical-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    color: var(--tactical-accent);
}

.tactical-header h1 span {
    color: var(--tactical-accent);
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 15px;
    background: var(--tactical-accent);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: middle;
}

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

.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}
.status-badge {
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 20px;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

/* ========== РАЗДЕЛИТЕЛЬ ========== */
.section-divider {
    margin: 1rem 0 1.5rem 0;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--tactical-border);
}

.section-divider span {
    background: var(--tactical-bg);
    padding: 0 1rem;
    position: relative;
    color: var(--tactical-accent);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ========== СЕТКА 3 КОЛОНКИ ========== */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .grid-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-articles {
        grid-template-columns: 1fr;
    }
}

/* ========== КАРТОЧКИ ========== */
.article-card {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1320 100%);
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.article-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Индикатор статуса */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-family: monospace;
    margin-bottom: 0.75rem;
    color: var(--tactical-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tactical-accent);
    box-shadow: 0 0 4px var(--tactical-accent);
    animation: pulse 1.5s infinite;
}

.status-dot.warning {
    background: var(--tactical-warning);
    box-shadow: 0 0 4px var(--tactical-warning);
}

.status-dot.draft {
    background: var(--tactical-draft);
    box-shadow: none;
    animation: none;
}

.status-dot.updated {
    background: var(--tactical-updated);
    box-shadow: 0 0 4px var(--tactical-updated);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Метки статуса */
.tag-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-family: monospace;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.tag-status.wip {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--tactical-warning);
    color: var(--tactical-warning);
}

.tag-status.updated {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--tactical-updated);
    color: var(--tactical-updated);
}

.tag-status.draft {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid var(--tactical-draft);
    color: var(--tactical-draft);
}

.tag-status.published,
.tag-status.live {
    background: rgba(0, 255, 157, 0.2);
    border: 1px solid var(--tactical-accent);
    color: var(--tactical-accent);
}

/* Заголовок карточки */
.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.article-card .card-title a {
    color: var(--tactical-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Покачивание заголовка */
.article-card:hover .card-title {
    animation: wobble 0.3s ease-in-out;
    transform-origin: center;
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

.article-card .card-text {
    color: var(--tactical-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

/* Дата и кнопка - одинаковый стиль */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--tactical-border);
}

.date-meta {
    font-size: 0.75rem;
    color: var(--tactical-text-muted);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.btn-tactical {
    background: transparent;
    border: 1px solid var(--tactical-accent);
    color: var(--tactical-accent);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-tactical:hover {
    background: var(--tactical-accent);
    color: var(--tactical-bg);
}

/* ========== НИЖНИЙ РЯД: TECH СТИЛЬ ========== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
}

@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: #0a0e1a;
    border: 1px solid #2d3748;
    border-radius: 0;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.info-card:hover {
    border-left: 3px solid var(--tactical-accent);
    transform: translateX(4px);
}

.info-card .card-body {
    padding: 1.25rem;
}

.info-card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tactical-text);
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.info-card h4::before {
    content: '>';
    color: var(--tactical-accent);
    margin-right: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.info-card li {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--tactical-text-muted);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.info-card li::before {
    content: '>';
    color: var(--tactical-accent);
    margin-right: 0.5rem;
}

.info-card a {
    color: var(--tactical-text-muted);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--tactical-accent);
}

/* Пунктирный разделитель */
.meta-divider {
    border-top: 1px dashed #2d3748;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--tactical-text-muted);
    font-family: monospace;
}

/* ========== ФУТЕР ========== */
footer {
    background: transparent;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--tactical-border);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
}

.footer-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

footer p {
    color: var(--tactical-text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

footer .copyright {
    font-size: 0.75rem;
}

/* ========== ПАГИНАЦИЯ ========== */
.pagination {
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-link {
    background: var(--tactical-bg-secondary);
    border: 1px solid var(--tactical-border);
    color: var(--tactical-text-muted);
    font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--tactical-accent-dim);
    border-color: var(--tactical-accent);
    color: var(--tactical-accent);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--tactical-accent);
    border-color: var(--tactical-accent);
    color: var(--tactical-bg);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

/* ========== ПРОГРЕСС-БАР ========== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 255, 157, 0.2);
    z-index: 1000;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--tactical-accent), #00cc7a);
    transition: width 0.2s ease;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

/* Sticky Footer */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container.main-content {
    flex: 1 0 auto;
}

.footer-tactical {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1.5rem 0;
    background: var(--tactical-bg-secondary);
    
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-tags {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.3px;
}

/* Полное отключение любых эффектов для футера */
.footer-text,
.footer-text:link,
.footer-text:visited,
.footer-text:hover,
.footer-text:active,
.footer-text:focus {
    color: rgba(203, 213, 225, 0.7) !important;
    text-decoration: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.footer-tags .tag-status:hover {
    opacity: 0.8;
    cursor: default;
}

/* Стили для карточек (восстанавливаем) */
.article-card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.1);
}

.article-card .card-title a {
    color: var(--tactical-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card .card-title a:hover {
    color: var(--tactical-accent);
    text-decoration: none;
}

/* Убираем лишний разделитель после карточек */
.style-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-cards-grid {
    margin-bottom: 0;
}


/* Убираем пустой разделитель перед info-cards-grid */
.style-section:has(.grid-articles) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.grid-articles {
    margin-bottom: 0;
}


/* Убираем border-bottom у последней секции */
.style-section:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
