/* Caloninsinyure.com — English edition (blog/en) */
:root {
    --en-bg: #faf8f5;
    --en-surface: #ffffff;
    --en-surface-2: #f3efe8;
    --en-ink: #14181f;
    --en-muted: #6b7280;
    --en-line: #e7e2d9;
    --en-navy: #0b1b34;
    --en-gold: #b8893b;
    --en-gold-soft: rgba(184, 137, 59, .14);
    --en-radius: 18px;
    --en-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14);
    --en-shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -16px rgba(15, 23, 42, .26);
    --en-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --en-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-bs-theme="dark"] {
    --en-bg: #0c1118;
    --en-surface: #151b25;
    --en-surface-2: #1b2331;
    --en-ink: #e8ebf0;
    --en-muted: #9aa4b2;
    --en-line: #263041;
    --en-navy: #060b14;
    --en-gold: #d4a656;
    --en-gold-soft: rgba(212, 166, 86, .16);
    --en-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
    --en-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -16px rgba(0, 0, 0, .7);
}

html { scroll-behavior: smooth; }

body.en-site {
    background: var(--en-bg);
    color: var(--en-ink);
    font-family: var(--en-sans);
    -webkit-font-smoothing: antialiased;
    padding-top: 72px;
    transition: background-color .25s ease, color .25s ease;
}

.en-site a { color: inherit; }
.en-site .text-muted { color: var(--en-muted) !important; }
.en-serif { font-family: var(--en-serif); }

/* ── Navbar ─────────────────────────────────────────────── */
.en-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1030; height: 72px;
    background: color-mix(in srgb, var(--en-bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--en-line);
}
.en-nav .container { height: 100%; display: flex; align-items: center; gap: 1rem; }
.en-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.en-brand img { width: 34px; height: 34px; }
.en-brand span { font-family: var(--en-serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.en-brand small { display: block; font-family: var(--en-sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--en-gold); font-weight: 600; line-height: 1; margin-top: 2px; }
.en-nav-links { display: flex; align-items: center; gap: .25rem; }
.en-nav-links a.en-link { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; color: var(--en-muted); transition: .2s; }
.en-nav-links a.en-link:hover, .en-nav-links a.en-link.active { color: var(--en-ink); background: var(--en-surface-2); }
.en-nav-links a.en-lang { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .04em; }
.lang-flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex-shrink: 0; }

.en-search { position: relative; }
.en-search input {
    width: 220px; border: 1px solid var(--en-line); background: var(--en-surface);
    color: var(--en-ink); border-radius: 999px; padding: .5rem 1rem .5rem 2.4rem; font-size: .9rem; transition: .2s;
}
.en-search input:focus { outline: none; border-color: var(--en-gold); box-shadow: 0 0 0 4px var(--en-gold-soft); width: 260px; }
.en-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--en-muted); pointer-events: none; }

.en-icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--en-line);
    background: var(--en-surface); color: var(--en-ink); display: inline-flex; align-items: center; justify-content: center; transition: .2s; cursor: pointer;
}
.en-icon-btn:hover { border-color: var(--en-gold); color: var(--en-gold); }

.en-btn {
    display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .5rem 1.1rem;
    font-weight: 600; font-size: .88rem; text-decoration: none; border: 1px solid transparent; transition: .2s; cursor: pointer;
}
.en-btn-gold { background: var(--en-gold); color: #fff !important; }
.en-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.en-btn-ghost { border-color: var(--en-line); background: var(--en-surface); color: var(--en-ink) !important; }
.en-btn-ghost:hover { border-color: var(--en-gold); }

.en-user { display: flex; align-items: center; gap: .55rem; }
.en-user img, .en-user .en-avatar-ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

@media (max-width: 991.98px) {
    .en-search { display: none; }
    .en-nav-links .en-link:not(.en-lang) { display: none; }
}
.en-mobile-search { display: none; }
@media (max-width: 991.98px) { .en-mobile-search { display: block; } }

/* ── Page header / hero ─────────────────────────────────── */
.en-masthead { padding: 3.5rem 0 2rem; text-align: center; }
.en-masthead .eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--en-gold); font-weight: 700; }
.en-masthead h1 { font-family: var(--en-serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; line-height: 1.1; margin: .6rem 0 .8rem; }
.en-masthead p { max-width: 620px; margin: 0 auto; color: var(--en-muted); font-size: 1.05rem; }

.en-hero { display: grid; gap: 1.25rem; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; margin-bottom: 3rem; }
.en-hero-card {
    position: relative; overflow: hidden; border-radius: var(--en-radius); min-height: 240px; display: block; text-decoration: none; color: #fff !important;
    background: linear-gradient(135deg, var(--en-navy), #1f3a63); box-shadow: var(--en-shadow); isolation: isolate;
}
.en-hero-card.main { grid-row: span 2; min-height: 520px; }
.en-hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.en-hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 11, 20, 0) 25%, rgba(6, 11, 20, .88) 100%); }
.en-hero-card:hover img { transform: scale(1.06); }
.en-hero-card .body { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.6rem; }
.en-hero-card h2, .en-hero-card h3 { font-family: var(--en-serif); font-weight: 700; line-height: 1.2; margin: .6rem 0 .5rem; color: #fff; }
.en-hero-card.main h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.en-hero-card:not(.main) h3 { font-size: 1.3rem; }
.en-hero-card .meta { font-size: .82rem; opacity: .85; display: flex; gap: .9rem; flex-wrap: wrap; }
@media (max-width: 991.98px) {
    .en-hero { grid-template-columns: 1fr; grid-template-rows: auto; }
    .en-hero-card.main { grid-row: auto; min-height: 380px; }
}

.en-pill {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 999px; background: var(--en-gold); color: #fff !important; text-decoration: none;
}
.en-pill.soft { background: var(--en-gold-soft); color: var(--en-gold) !important; }

/* ── Section titles, chips ──────────────────────────────── */
.en-section-title { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; }
.en-section-title h2 { font-family: var(--en-serif); font-size: 1.6rem; font-weight: 700; margin: 0; white-space: nowrap; }
.en-section-title::after { content: ''; flex: 1; height: 1px; background: var(--en-line); }

.en-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.en-chip {
    text-decoration: none; font-size: .85rem; font-weight: 500; padding: .45rem 1rem; border-radius: 999px;
    border: 1px solid var(--en-line); background: var(--en-surface); color: var(--en-muted); transition: .2s; text-transform: capitalize;
}
.en-chip:hover { border-color: var(--en-gold); color: var(--en-ink); }
.en-chip.active { background: var(--en-ink); border-color: var(--en-ink); color: var(--en-bg); }
.en-chip small { opacity: .6; margin-left: .25rem; }

/* ── Cards ──────────────────────────────────────────────── */
.en-card {
    height: 100%; display: flex; flex-direction: column; background: var(--en-surface); border: 1px solid var(--en-line);
    border-radius: var(--en-radius); overflow: hidden; box-shadow: var(--en-shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
    text-decoration: none; color: inherit !important;
}
.en-card:hover { transform: translateY(-6px); box-shadow: var(--en-shadow-hover); }
.en-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--en-surface-2); }
.en-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.en-card:hover .thumb img { transform: scale(1.07); }
.en-card .thumb .en-pill { position: absolute; left: 1rem; top: 1rem; }
.en-card .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.en-card h3 { font-family: var(--en-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.en-card p { color: var(--en-muted); font-size: .92rem; line-height: 1.6; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.en-card .meta { margin-top: auto; display: flex; align-items: center; gap: .9rem; font-size: .78rem; color: var(--en-muted); }
.en-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--en-navy), #24426e); color: rgba(255, 255, 255, .5); font-size: 2.2rem;
}

.en-card-row { display: flex; gap: 1rem; text-decoration: none; color: inherit !important; padding: .85rem 0; border-bottom: 1px solid var(--en-line); }
.en-card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.en-card-row .thumb { flex: 0 0 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--en-surface-2); }
.en-card-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.en-card-row h4 { font-family: var(--en-serif); font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 .3rem; }
.en-card-row:hover h4 { color: var(--en-gold); }
.en-card-row small { color: var(--en-muted); font-size: .76rem; }

.en-panel { background: var(--en-surface); border: 1px solid var(--en-line); border-radius: var(--en-radius); padding: 1.4rem; box-shadow: var(--en-shadow); }
.en-panel h3 { font-family: var(--en-serif); font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }

.en-trending-item { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--en-line); text-decoration: none; color: inherit !important; }
.en-trending-item:last-child { border-bottom: 0; padding-bottom: 0; }
.en-trending-item .n { font-family: var(--en-serif); font-size: 1.8rem; font-weight: 700; color: var(--en-gold); line-height: 1; min-width: 1.6rem; }
.en-trending-item strong { font-family: var(--en-serif); font-size: .98rem; line-height: 1.35; display: block; }
.en-trending-item:hover strong { color: var(--en-gold); }

.en-empty { text-align: center; padding: 4rem 1rem; color: var(--en-muted); }
.en-empty i { font-size: 3rem; color: var(--en-gold); }

/* ── Pagination ─────────────────────────────────────────── */
.en-site .pagination { gap: .35rem; justify-content: center; }
.en-site .page-link { border-radius: 999px !important; border: 1px solid var(--en-line); background: var(--en-surface); color: var(--en-ink); min-width: 40px; text-align: center; }
.en-site .page-item.active .page-link { background: var(--en-ink); border-color: var(--en-ink); color: var(--en-bg); }
.en-site .page-link:hover { border-color: var(--en-gold); color: var(--en-gold); }
.en-site .page-item.disabled .page-link { background: transparent; opacity: .5; }

/* ── Article page ───────────────────────────────────────── */
.en-progress { position: fixed; top: 72px; left: 0; height: 3px; width: 0; background: var(--en-gold); z-index: 1031; transition: width .1s linear; }

.en-article-head { padding: 3rem 0 1.5rem; }
.en-crumbs { font-size: .82rem; color: var(--en-muted); margin-bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.en-crumbs a { text-decoration: none; }
.en-crumbs a:hover { color: var(--en-gold); }
.en-article-head h1 { font-family: var(--en-serif); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; letter-spacing: -.015em; margin: 1rem 0 1.25rem; }
.en-byline { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .88rem; color: var(--en-muted); }
.en-byline .who { display: flex; align-items: center; gap: .65rem; color: var(--en-ink); font-weight: 600; }
.en-byline .who img, .en-byline .who .en-avatar-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.en-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--en-line); }

.en-cover { border-radius: calc(var(--en-radius) + 6px); overflow: hidden; box-shadow: var(--en-shadow); margin-bottom: 2.5rem; }
.en-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.en-prose { font-family: var(--en-serif); font-size: 1.14rem; line-height: 1.85; color: var(--en-ink); }
.en-prose > :first-child { margin-top: 0; }
.en-prose p { margin: 0 0 1.4rem; }
.en-prose h2, .en-prose h3 { font-family: var(--en-serif); font-weight: 700; line-height: 1.25; margin: 2.4rem 0 1rem; }
.en-prose h2 { font-size: 1.85rem; }
.en-prose h3 { font-size: 1.4rem; }
.en-prose a { color: var(--en-gold); text-decoration: underline; text-underline-offset: 3px; }
.en-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.en-prose figure { margin: 2rem 0; }
.en-prose figcaption { text-align: center; font-family: var(--en-sans); font-size: .85rem; color: var(--en-muted); margin-top: .6rem; }
.en-prose blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 3px solid var(--en-gold); font-style: italic; font-size: 1.25rem; color: var(--en-muted); }
.en-prose ul, .en-prose ol { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.en-prose li { margin-bottom: .4rem; }
.en-prose table { width: 100%; font-family: var(--en-sans); font-size: .95rem; }
.en-prose > p:first-of-type::first-letter { font-size: 3.4rem; float: left; line-height: .9; padding: .35rem .6rem 0 0; font-weight: 700; color: var(--en-gold); }

.en-tag { display: inline-block; text-decoration: none; font-size: .82rem; padding: .35rem .85rem; border-radius: 999px; background: var(--en-surface-2); color: var(--en-muted) !important; margin: 0 .35rem .4rem 0; transition: .2s; }
.en-tag:hover { background: var(--en-gold-soft); color: var(--en-gold) !important; }

.en-author { display: flex; gap: 1.1rem; align-items: flex-start; }
.en-author img, .en-author .en-avatar-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.en-avatar-ph { background: linear-gradient(135deg, var(--en-gold), #8a6420); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.en-share { display: flex; gap: .5rem; flex-wrap: wrap; }
.en-share a, .en-share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--en-line); background: var(--en-surface); color: var(--en-ink); display: inline-flex; align-items: center; justify-content: center; transition: .2s; text-decoration: none; cursor: pointer; }
.en-share a:hover, .en-share button:hover { background: var(--en-gold); border-color: var(--en-gold); color: #fff; transform: translateY(-2px); }

.en-lang-note { background: var(--en-gold-soft); border: 1px solid var(--en-gold); border-radius: 14px; padding: .8rem 1.1rem; font-size: .9rem; }

/* ── Comments ───────────────────────────────────────────── */
#comments .cm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#comments .cm-avatar-ph { background: linear-gradient(135deg, var(--en-gold), #8a6420); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
#comments .cm-bubble { background: var(--en-surface-2); border-radius: 18px; padding: .6rem 1rem; display: inline-block; max-width: 100%; }
#comments .cm-body { white-space: pre-wrap; word-break: break-word; font-family: var(--en-sans); font-size: .95rem; }
#comments .cm-mention { color: var(--en-gold); font-weight: 600; text-decoration: none; }
#comments .cm-actions { padding-left: 1rem; font-family: var(--en-sans); }
#comments .cm-actions button, #comments .cm-more-replies { background: none; border: 0; padding: 0 0 0 .75rem; font-weight: 600; color: var(--en-muted); font-size: inherit; }
#comments .cm-actions button:hover { color: var(--en-gold); }
#comments .cm-item { margin-bottom: 1.1rem; }
#comments .cm-replies { margin: .6rem 0 0 3rem; display: flex; flex-direction: column; gap: .6rem; }
#comments .cm-replies .cm-avatar { width: 30px; height: 30px; font-size: .8rem; }
#comments .cm-input { border-radius: 18px; background: var(--en-surface-2); border: 1px solid transparent; color: var(--en-ink); resize: none; font-family: var(--en-sans); }
#comments .cm-input:focus { border-color: var(--en-gold); box-shadow: 0 0 0 4px var(--en-gold-soft); background: var(--en-surface); color: var(--en-ink); }
#comments .alert-warning { background: var(--en-gold-soft); border-color: var(--en-gold); color: var(--en-ink); }

/* ── Footer ─────────────────────────────────────────────── */
.en-footer { background: var(--en-navy); color: rgba(255, 255, 255, .72); margin-top: 5rem; padding: 3.5rem 0 2rem; }
.en-footer a { text-decoration: none; color: rgba(255, 255, 255, .72); }
.en-footer a:hover { color: var(--en-gold); }
.en-footer h5 { color: #fff; font-family: var(--en-serif); font-size: 1.1rem; margin-bottom: 1rem; }
.en-footer .brand { font-family: var(--en-serif); font-size: 1.5rem; font-weight: 700; color: #fff; }
.en-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.en-footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }

.en-fade { animation: enFade .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes enFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .en-fade { animation: none; } .en-card, .en-card .thumb img, .en-hero-card img { transition: none; } }
