/* ================================================================
   Ekaterina Kuliabina Blog — theme matched to the main page
   (navy hero band, gold accents, Playfair Display + Inter, light body)
   Loaded after the inline styles of blog.html and every article,
   so it overrides them. Text-only layout: no article images.
   ================================================================ */

:root {
    /* Main page palette */
    --blue: #1a5276;
    --blue-light: #2e86c1;
    --blue-pale: #eaf2f8;
    --gold: #b8860b;
    --gold-light: #daa520;
    --dark: #0d1117;
    --navy: #0d1b2a;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --hero-gradient: linear-gradient(135deg, #0d1b2a 0%, #132a43 40%, #1a5276 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);

    /* Article template variables */
    --bg: #fafbfd;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-code: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #1a1a2e;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --font-display: 'Playfair Display', Georgia, serif;
    --font: 'Inter', -apple-system, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;

    /* Blog listing variables */
    --bg-primary: #fafbfd;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --accent-blue: #1a5276;
    --accent-blue-light: #2e86c1;
    --accent-gold: #b8860b;
    --accent-gold-light: #daa520;
    --border-color: #e2e8f0;

    color-scheme: light;
}

html { font-size: 17px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
}

/* ---------------- Navigation (as main page, over navy) ---------------- */
.nav {
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.12);
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}
.nav-links a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border-radius: 0;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: 2px; left: 16px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.nav > .nav-links a::after { left: 0; bottom: -4px; }
.nav-links a:hover { color: var(--white); background: none; }
.nav-links a:hover::after,
.nav-links a.active::after { width: calc(100% - 32px); }
.nav > .nav-links a:hover::after,
.nav > .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); background: none; }
.nav-toggle span { background: var(--white); }

/* ---------------- Article header: navy hero band ---------------- */
.article-hero {
    background: var(--hero-gradient);
    overflow: hidden;
    color: var(--white);
    max-width: none;
    padding-left: max(24px, calc((100% - 852px) / 2));
    padding-right: max(24px, calc((100% - 852px) / 2));
    margin-bottom: 56px;
}
.article-hero::before {
    top: -40%; left: auto; right: -10%; transform: none;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.10) 0%, transparent 70%);
}
.article-hero-image { display: none !important; }

.breadcrumb, .breadcrumb .sep { color: rgba(255, 255, 255, 0.45); }
.breadcrumb a, .breadcrumb .current { color: rgba(255, 255, 255, 0.7); }
.breadcrumb a:hover { color: var(--gold-light); }

.category-badge {
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: var(--gold-light);
    border-radius: 24px;
    letter-spacing: 0.12em;
}
.article-title-en,
.article-title-de {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}
.article-meta, .article-meta .meta-item { color: rgba(255, 255, 255, 0.7); }
.article-meta .meta-item i { color: var(--gold-light); }
.article-meta .meta-divider { background: rgba(255, 255, 255, 0.2); }

.lang-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}
.lang-btn { color: rgba(255, 255, 255, 0.85); border-radius: 6px; }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--gold); color: var(--white); box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3); }

/* ---------------- Article body ---------------- */
.article-content { color: var(--text); font-size: 1.05rem; }
.article-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    border-bottom: none;
    padding-bottom: 0;
}
.article-content h2::after {
    content: '';
    display: block;
    width: 48px; height: 3px;
    margin-top: 14px;
    background: var(--gold);
    border-radius: 2px;
}
.article-content h3 { font-family: 'Playfair Display', serif; color: var(--blue); }
.article-content p, .article-content li { color: var(--text); }
.article-content strong { color: var(--dark); }
.article-content a { color: var(--blue-light); text-decoration-color: rgba(46, 134, 193, 0.3); }
.article-content li::marker { color: var(--gold); }
.article-content blockquote {
    border-left: 3px solid var(--gold);
    background: none;
    border-radius: 0;
    padding: 4px 0 4px 28px;
    font-size: 1.12rem;
    color: var(--gray);
}
.article-content code { color: var(--blue); }
.article-content table th { background: var(--blue-pale); color: var(--blue); }
.article-content img,
.article-content figure,
.article-content picture { display: none !important; }

/* ---------------- Share buttons ---------------- */
.share-btn { background: var(--white); border-color: var(--border); color: var(--gray); }
.share-btn.copy-linkedin { border-color: rgba(26, 82, 118, 0.3); color: var(--blue); }
.share-bar-mobile { background: rgba(255, 255, 255, 0.95); }

/* ---------------- CTA: navy panel like "competencies" ---------------- */
.article-cta {
    background: var(--hero-gradient);
    border: none;
    box-shadow: var(--shadow-lg);
}
.article-cta::before { display: none; }
.article-cta h3 { font-family: 'Playfair Display', serif; color: var(--white); }
.article-cta p { color: rgba(255, 255, 255, 0.7); }
.cta-button {
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
}
.cta-button:hover {
    background: var(--gold-light);
    box-shadow: 0 10px 36px rgba(184, 134, 11, 0.4);
    transform: translateY(-3px);
}

/* ---------------- Related posts: expertise-style cards ---------------- */
.related-section h2 { font-family: 'Playfair Display', serif; color: var(--dark); }
.related-card {
    background: var(--gray-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.related-card::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.related-card:hover {
    background: var(--white);
    border-color: rgba(26, 82, 118, 0.08);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.related-card:hover::after { width: 60%; }
.related-card .card-category { color: var(--blue-light); letter-spacing: 0.16em; font-weight: 700; }
.related-card .card-title { font-family: 'Playfair Display', serif; color: var(--dark); }
.related-card .card-link { color: var(--blue); }

/* ---------------- Footer (as main page) ---------------- */
.site-footer,
.footer {
    background: var(--dark);
    border-top: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}
.footer-copy { color: rgba(255, 255, 255, 0.5); }
.footer-links a, .footer a { color: var(--gold-light); }
.footer-links a:hover, .footer a:hover { color: var(--gold); }

/* ---------------- Misc ---------------- */
.progress-bar { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
::selection { background: rgba(26, 82, 118, 0.2); color: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ================================================================
   BLOG LISTING (blog.html)
   ================================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
    color: var(--white);
    padding: 9rem 2rem 4.5rem;
    margin-bottom: 3rem;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(46, 134, 193, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -40%; left: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}
.hero p { color: rgba(255, 255, 255, 0.7); font-size: 1.2rem; }
.hero-count {
    display: inline-flex;
    padding: 8px 20px;
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gray);
    border-radius: 24px;
    padding: 0.5rem 1.2rem;
}
.filter-btn:hover { border-color: var(--blue-light); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(26, 82, 118, 0.2); }
.search-box input { background: var(--white); border-color: var(--border); border-radius: 24px; }
.search-box input:focus { border-color: var(--blue-light); }

.blog-grid { gap: 1.75rem; }
.blog-card {
    background: var(--gray-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover {
    background: var(--white);
    border-color: rgba(26, 82, 118, 0.08);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.blog-card:hover::after { width: 60%; }
.blog-card .card-image { display: none !important; }
.blog-card .card-inner { padding: 2rem 1.75rem; }
.blog-card .card-category {
    background: none;
    padding: 0;
    color: var(--blue-light);
    font-weight: 700;
    letter-spacing: 0.16em;
}
.blog-card .card-category.safety-compliance { background: none; color: #059669; }
.blog-card .card-category.industry-news { background: none; color: var(--gold); }
.blog-card .card-category.tech-innovation { background: none; color: #7c3aed; }
.blog-card .card-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.blog-card .card-title a { color: var(--dark); }
.blog-card .card-title a:hover { color: var(--blue); }
.blog-card .card-desc { color: var(--gray); font-size: 0.95rem; line-height: 1.7; }
.blog-card .card-footer { border-top-color: var(--border); }
.blog-card .card-link { color: var(--blue); }
.blog-card .card-link:hover { color: var(--gold); }

@media (max-width: 768px) {
    .nav-links { background: var(--navy); border-bottom-color: rgba(255, 255, 255, 0.08); }
    .hero { padding: 7rem 1.25rem 3rem; }
}
