/* =============================================
   article.css — stiluri pagina de articol
   ============================================= */

/* ── Hero ─────────────────────────────────── */
.art-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.art-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #142740, #1e3a5f);
}

.art-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.6)  45%,
        rgba(0,0,0,.1)  100%
    );
}

.art-hero-pokemon {
    position: absolute;
    right: 3%;
    bottom: 0;
    height: 92%;
    max-width: 42%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(-12px 4px 28px rgba(0,0,0,.7));
    pointer-events: none;
}

.art-hero-content {
    position: relative;
    z-index: 3;
    padding: 56px 48px 52px;
    max-width: 700px;
}

.art-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.art-breadcrumb a { color: rgba(255,255,255,.8); }
.art-breadcrumb a:hover { color: #fff; text-decoration: none; }
.art-breadcrumb span { color: rgba(255,255,255,.4); }

.art-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.art-title {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.art-meta {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 14px;
}
.art-meta time { color: rgba(255,255,255,.7); }

@media (max-width: 700px) {
    .art-hero { min-height: 360px; }
    .art-hero-content { padding: 36px 20px 32px; }
    .art-hero-pokemon { max-width: 48%; height: 70%; }
}

/* ── Body layout ──────────────────────────── */
.art-body-wrap {
    background: var(--bg);
    padding: 0 0 72px;
}

.art-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 20px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .art-layout { grid-template-columns: 1fr; }
}

/* ── Back link ────────────────────────────── */
.art-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.art-back-link:hover { color: #1d4ed8; text-decoration: none; }

/* ── Article card ─────────────────────────── */
.art-content-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ── Article text ─────────────────────────── */
.art-text {
    padding: 40px 44px 44px;
}

.art-text p {
    font-size: 1.07rem;
    line-height: 1.9;
    color: #1e293b;
    margin-bottom: 28px;
}

.art-text p:last-child { margin-bottom: 0; }

/* Prima paragraf mai mare — lead */
.art-text p:first-child {
    font-size: 1.18rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.8;
    border-left: 4px solid var(--blue);
    padding-left: 20px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .art-text { padding: 24px 20px 28px; }
    .art-text p { font-size: 1rem; }
    .art-text p:first-child { font-size: 1.06rem; }
}

/* ── Prev/Next navigation ─────────────────── */
.art-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.art-prevnext a {
    display: block;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text);
    transition: border-color .2s, background .2s, transform .2s;
}
.art-prevnext a:hover {
    border-color: var(--blue);
    background: #eff6ff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,.12);
}

.art-prevnext .nav-label {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 6px;
}
.art-prevnext .nav-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.art-prevnext .nav-prev { text-align: left; }
.art-prevnext .nav-next { text-align: right; }

@media (max-width: 500px) {
    .art-prevnext { grid-template-columns: 1fr; }
}

/* ── Sidebar ──────────────────────────────── */
.art-sidebar { position: sticky; top: 16px; }

.art-widget {
    background: #fff;
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.art-widget-title {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

/* ── Related articles ─────────────────────── */
.art-related { list-style: none; padding: 0; margin: 0; }

.art-related li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.art-related li:last-child { border-bottom: none; padding-bottom: 0; }

.art-related a {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--text);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    transition: color .15s;
}
.art-related a:hover { color: var(--blue); text-decoration: none; }

.art-rel-thumb {
    width: 56px;
    height: 44px;
    border-radius: 7px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.art-rel-thumb-bg {
    position: absolute;
    inset: 0;
}
.art-rel-thumb-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 78%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(-2px 0 4px rgba(0,0,0,.3));
}
.art-rel-info { flex: 1; min-width: 0; }
.art-rel-info time {
    display: block;
    font-size: .7rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 3px;
}

/* ── Category links ───────────────────────── */
.art-cat-links { list-style: none; padding: 0; margin: 0; }
.art-cat-links li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.art-cat-links li:last-child { border-bottom: none; }
.art-cat-links a {
    font-size: .86rem;
    color: var(--text);
    font-weight: 500;
    transition: color .15s;
}
.art-cat-links a:hover { color: var(--blue); text-decoration: none; }
