/*
Theme Name: VDV-Tech Light
Theme URI: https://vdv-tech.ru
Author: VDV-Tech
Version: 1.2
Description: Светлая тема в стиле терминала
*/

:root {
    --cyan: #22D3EE;
    --blue: #3B82F6;
    --indigo: #6366F1;
    --ink: #0D1117;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-light: #e2e8f0;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== ШАПКА ===== */
.site-header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding img.custom-logo {
    max-height: 52px;
    width: auto;
}

.site-title a {
    font-family: Consolas, 'JetBrains Mono', monospace;
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

/* ===== МЕНЮ ===== */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover { color: var(--blue); }

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width 0.3s;
}

.main-nav a:hover::after { width: 100%; }

/* ===== КОНТЕНТ ===== */
.site-content {
    max-width: 900px;
    margin: 35px auto;
    padding: 0 25px;
}

/* ===== КАРТОЧКА (компактная) ===== */
.post {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.post:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 8px 25px rgba(34,211,238,0.12);
}

/* Заголовки превью — мельче */
.post-title {
    font-size: 1.35em;
    margin-bottom: 10px;
    line-height: 1.35;
}

/* В полной статье заголовок крупнее */
h1.post-title { font-size: 1.7em; }

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover { color: var(--blue); }

.post-meta {
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8em;
    font-family: Consolas, monospace;
}

.post-meta a { color: var(--blue); text-decoration: none; }

/* Текст превью — мельче */
.post-content {
    font-size: 0.92em;
    line-height: 1.65;
    color: #334155;
}

.post-content p { margin-bottom: 14px; }

.post-content h2 {
    color: var(--ink);
    margin: 25px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--cyan);
    font-size: 1.25em;
}

.post-content h3 {
    color: var(--blue);
    margin: 20px 0 10px;
    font-size: 1.1em;
}

.post-content a { color: var(--blue); }

.post-content ul, .post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content li { margin-bottom: 6px; }

/* ===== КОД ===== */
pre {
    background: var(--ink);
    color: #e6edf3;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 18px 0;
    font-family: Consolas, monospace;
    font-size: 0.85em;
    line-height: 1.6;
}

code {
    font-family: Consolas, monospace;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #0891b2;
}

pre code { background: none; padding: 0; color: inherit; }

/* ===== ИЗОБРАЖЕНИЯ ===== */
.post img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px 0;
    border: 1px solid var(--border-light);
}

/* ===== КНОПКА ===== */
.read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 6px;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,211,238,0.4);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 2px solid var(--border-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.site-footer a { color: var(--blue); text-decoration: none; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .header-wrap { flex-direction: column; gap: 12px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .post { padding: 20px; }
    .post-title { font-size: 1.2em; }
}

::selection { background: var(--cyan); color: #fff; }
html { scroll-behavior: smooth; }