/* ===================================
   ШАБЛОН 2 — ARTICLE STYLES
==================================== */

/* Breadcrumbs */
.eeddcbreadcrumbs {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.eeddcbreadcrumbs a { color: var(--text-muted); }
.eeddcbreadcrumbs a:hover { color: var(--accent); }
.eeddcbreadcrumbs .eeddcsep { margin: 0 8px; font-size: 0.65rem; opacity: 0.5; }
.eeddcbreadcrumbs span { color: var(--text); font-weight: 500; }

/* Article */
.eeddcarticle {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.eeddcart-header {
    padding: 36px 40px 28px;
    border-bottom: 1px solid var(--border);
}

.eeddcart-cat {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.eeddcart-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 20px;
}

.eeddcart-meta {
    display: flex;
    gap: 20px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.eeddcart-meta i { color: var(--accent); margin-right: 4px; }

/* Cover image */
.eeddcart-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Body */
.eeddcart-body {
    padding: 36px 40px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}

.eeddcart-body p { margin-bottom: 22px; }

.eeddcart-body h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 40px 0 18px;
    color: var(--text);
}

.eeddcart-body h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 14px;
    color: var(--accent);
}

.eeddcart-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 22px 0 12px;
    color: var(--text);
}

.eeddcart-body ul,
.eeddcart-body ol {
    padding-left: 28px;
    margin: 20px 0;
}

.eeddcart-body li { margin-bottom: 10px; }

.eeddcart-body strong { color: var(--text); font-weight: 700; }

.eeddcart-body a { color: var(--accent); text-decoration: underline; }

.eeddcart-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    padding: 16px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Share */
.eeddcart-share {
    padding: 24px 40px 36px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eeddcshare-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eeddcshare-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.eeddcshare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    min-width: 130px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    transition: all 0.25s;
    box-sizing: border-box;
}

.eeddcshare-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: white; }

.eeddcs-vk  { background: #4680c2; }
.eeddcs-tg  { background: #29a8eb; }

/* ===================================
   АДАПТИВНОСТЬ
==================================== */
@media (max-width: 768px) {
    .eeddcart-header { padding: 24px 20px 18px; }
    .eeddcart-title { font-size: 1.5rem; }

    .eeddcart-body { padding: 24px 20px; font-size: 0.97rem; }
    .eeddcart-share { padding: 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .eeddcart-header { padding: 18px 14px; }
    .eeddcart-title { font-size: 1.3rem; }

    .eeddcart-body { padding: 18px 14px; }
    .eeddcart-body h2 { font-size: 1.35rem; }
    .eeddcshare-btns { flex-direction: column; }
    .eeddcart-share { flex-direction: column; align-items: center; text-align: center; }
    .eeddcshare-btns { justify-content: center; }
    .eeddcshare-btn { justify-content: center; width: 260px; }
}

@media (max-width: 768px) {
    .eeddcvk-comments { padding: 20px; }
}

/* ===== ПОХОЖИЕ СТАТЬИ ===== */
.eeddcrelated {
    margin-top: 24px;
    padding: 24px 28px;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
}

.eeddcrelated-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.eeddcrelated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.eeddcrelated-item {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
}

.eeddcrelated-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-3px);
    border-color: var(--accent, #2563eb);
}

.eeddcrelated-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.eeddcrelated-item span {
    display: block;
    padding: 10px 12px 12px;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    transition: color 0.2s;
}

.eeddcrelated-item:hover span { color: var(--accent, #2563eb); }

/* Время чтения и просмотры */
.eeddcart-read,
.eeddcart-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .eeddcrelated { padding: 18px 14px; }
    .eeddcrelated-grid { grid-template-columns: 1fr; gap: 12px; }
    .eeddcrelated-item { flex-direction: row; }
    .eeddcrelated-item img { width: 90px; height: 70px; flex-shrink: 0; }
}

.eeddcshare-btn.eeddcs-ok {
    background: #fff5eb;
    color: #ee8208;
    border: 1px solid #ee8208;
}
.eeddcshare-btn.eeddcs-ok:hover { background: #ee8208; color: white; }
.eeddcshare-btn.eeddcs-copy {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-family: inherit;
}
.eeddcshare-btn.eeddcs-copy:hover { background: #e5e7eb; }
.eeddcshare-btn.eeddcs-copy.copied { background: #dcfce7; color: #16a34a; border-color: #16a34a; }

/* ===================================
   ПОИСК
=================================== */
.eeddcsearch-form-wrap {
    margin-bottom: 28px;
}
.eeddcsearch-form {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.eeddcsearch-input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: #fff;
}
.eeddcsearch-input:focus { border-color: var(--primary-color, #2563eb); }
.eeddcsearch-submit {
    padding: 13px 20px;
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
}
.eeddcsearch-submit:hover { background: var(--primary-dark, #1d4ed8); }
.eeddcsearch-hint { color: #6b7280; font-size: 0.95rem; }
.eeddcsearch-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}
.eeddcsearch-empty i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.3; }
.eeddcsearch-empty p { font-size: 1rem; margin-bottom: 20px; }

/* ===================================
   ПОИСК
=================================== */
.eeddcsearch-form-wrap { margin-bottom: 28px; }
.eeddcsearch-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent, #2563eb);
    margin-bottom: 14px;
}
.eeddcsearch-form {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.eeddcsearch-input {
    flex: 1;
    padding: 11px 16px;
    font-size: 0.95rem;
    border: none;
    outline: none;
    font-family: inherit;
}
.eeddcsearch-btn {
    padding: 11px 18px;
    background: var(--accent, #2563eb);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}
.eeddcsearch-btn:hover { background: #1d4ed8; }
.eeddcsearch-results-header { margin-bottom: 18px; color: #64748b; }

/* Отступы между результатами поиска */
.eeddccards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== ПОИСК — grid карточек ===== */
.eeddccards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .eeddccards-grid { grid-template-columns: 1fr; }
}

/* Мобиль: сайдбар под контентом на внутренних страницах */
@media (max-width: 768px) {
    body.eeddcinner-page .eeddclayout {
        display: flex !important;
        flex-direction: column !important;
    }
    body.eeddcinner-page .eeddccontent { order: 1 !important; }
    body.eeddcinner-page .eeddcsidebar  { order: 2 !important; }
}

/* Мобильное меню шаблон 2: убираем полоску, уменьшаем padding dropdown */
@media (max-width: 768px) {
    .eeddcnav-item {
        border-bottom: none !important;
    }
    .eeddcdropdown-menu {
        padding: 1px 0 !important;
    }
    .eeddcdropdown-menu li {
        border-top: none !important;
    }
    .eeddcdropdown-menu li a {
        padding: 4px 15px !important;
    }
}



/* ===== ARTICLE TABLE ===== */
.article-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 20px 0;
}
.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.article-table thead tr {
    background: var(--accent, #1a1a2e);
}
.article-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #fff !important;
}
.article-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    vertical-align: top;
    line-height: 1.5;
    color: var(--text-dark, #222);
}
.article-table tbody tr:nth-child(even) {
    background: var(--bg-light, #f8f9fa);
}
.article-table tbody tr:hover {
    background: var(--bg-hover, #f0f4ff);
}
.article-table tbody th {
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-dark, #222);
    background: var(--bg-light, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    white-space: nowrap;
}
@media (max-width: 768px) {
    .article-table-wrap {
        margin: 20px 0;
    }
    .article-table {
        font-size: 12px;
    }
    .article-table thead th {
        font-size: 11px;
        padding: 8px 10px;
        white-space: nowrap;
    }
    .article-table td,
    .article-table tbody th {
        padding: 7px 10px;
        font-size: 12px;
    }
}