/* Grėsmių žemėlapis — sąrašo ir straipsnio stiliai (generuoja build.php) */
/* ── Grėsmių Žemėlapis — Threat Landscape Page ─────────────────────────── */
#gz-root * { box-sizing: border-box; }


/* Hero */

/* Grid */
.gz-grid-wrap { max-width: 1400px; margin: 0 auto; padding: 28px 20px; }
.gz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

/* Card */
.gz-card { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; position: relative; transition: transform .18s, box-shadow .18s; cursor: pointer; display: flex; flex-direction: column; }
.gz-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.gz-card-risk-bar { height: 4px; width: 100%; }
.gz-card-img { width: 100%; height: 160px; object-fit: cover; background: #f1f5f9; }
.gz-card-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.gz-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.gz-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.gz-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.gz-badge.risk-low      { background: #dcfce7; color: #166534; }
.gz-badge.risk-medium   { background: #fef9c3; color: #854d0e; }
.gz-badge.risk-high     { background: #ffedd5; color: #9a3412; }
.gz-badge.risk-critical { background: #fee2e2; color: #991b1b; animation: gz-pulse 1.5s infinite; }
@keyframes gz-pulse { 0%,100% { opacity:1; } 50% { opacity:.6; } }
.gz-cat-badge { background: #ede9fe; color: #5b21b6; font-weight: 500; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.gz-card-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 8px; line-height: 1.4; }
.gz-card-excerpt { font-size: 13px; color: #475569; line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gz-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.gz-card-source { font-size: 11px; color: #94a3b8; }
.gz-scores { display: flex; gap: 8px; align-items: center; }
.gz-score-pill { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #f8fafc; border: 1px solid #e2e8f0; color: #374151; }
.gz-score-pill.high { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }

/* Skeleton */
.gz-skeleton { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; pointer-events: none; }
.gz-skeleton-img { height: 160px; background: #f1f5f9; }
.gz-skeleton-body { padding: 16px; }
.gz-skeleton-line { height: 12px; border-radius: 6px; background: #e2e8f0; margin-bottom: 10px; }
.gz-skel-anim { animation: gz-skel 1.4s ease-in-out infinite; background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; }
@keyframes gz-skel { 0%{ background-position:200% 0; } 100%{ background-position:-200% 0; } }

/* Empty / error states */
.gz-msg { text-align: center; padding: 60px 20px; color: #64748b; }
.gz-msg-icon { font-size: 3rem; margin-bottom: 12px; }
.gz-msg h3 { font-size: 1.3rem; margin: 0 0 8px; color: #334155; }

/* Load more sentinel */
#gz-sentinel { height: 1px; }
.gz-load-more { text-align: center; padding: 16px; }
.gz-spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid #e2e8f0; border-top-color: #6366f1; border-radius: 50%; animation: gz-spin .7s linear infinite; }
@keyframes gz-spin { to { transform: rotate(360deg); } }

/* ── Modal overlay ──────────────────────────────────────── */
.gz-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.75); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 32px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .22s; }
.gz-modal-overlay.gz-modal-open { opacity: 1; pointer-events: all; }
.gz-modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 820px; padding: 32px 32px 40px; position: relative; transform: translateY(20px); transition: transform .22s; flex-shrink: 0; }
.gz-modal-overlay.gz-modal-open .gz-modal-box { transform: translateY(0); }
.gz-modal-close { position: absolute; top: 14px; right: 16px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gz-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.gz-modal-share { position: absolute; top: 14px; right: 58px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gz-modal-share:hover { background: #ede9fe; color: #5b21b6; }
.gz-modal-share-li { position: absolute; top: 14px; right: 100px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gz-modal-share-li:hover { background: #dbeafe; color: #0077b5; }
.gz-modal-share-fb { position: absolute; top: 14px; right: 142px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gz-modal-share-fb:hover { background: #dbeafe; color: #1877f2; }
.gz-article-hero { border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.gz-article-hero img { width: 100%; max-height: 400px; object-fit: cover; }
.gz-article-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.gz-article-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #0f172a; line-height: 1.2; margin: 0 0 16px; }
.gz-article-byline { font-size: 13px; color: #64748b; margin-bottom: 24px; }
.gz-article-content { font-size: 16px; line-height: 1.8; color: #1e293b; }
.gz-article-content p { margin: 0 0 16px; }
.gz-article-content h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; }
.gz-article-content a { color: #6366f1; text-decoration: underline; }

/* AI Insights box */
.gz-insights-box { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); border-radius: 14px; padding: 20px 24px; margin: 24px 0; color: #e2e8f0; }
.gz-insights-box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #a5b4fc; margin: 0 0 8px; }
.gz-insights-text { font-size: 15px; line-height: 1.7; color: #f1f5f9; margin: 0; }
.gz-bias-box { background: #fef9c3; border: 1px solid #fde68a; border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.gz-bias-box h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #92400e; margin: 0 0 6px; }
.gz-bias-text { font-size: 14px; color: #78350f; margin: 0; }

/* Scores grid */
.gz-scores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0; }
.gz-score-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; text-align: center; background: #f8fafc; }
.gz-score-card-num { font-size: 2rem; font-weight: 800; color: #0f172a; }
.gz-score-card-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-top: 2px; }
.gz-source-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6366f1; text-decoration: none; font-weight: 600; margin-top: 20px; border: 1px solid #c7d2fe; border-radius: 8px; padding: 8px 14px; }
.gz-source-link:hover { background: #ede9fe; }

/* Card share row */
.gz-card-share { display: flex; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.gz-card-share-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-right: 2px; flex-shrink: 0; }
.gz-card-share-btn { border: 1px solid #e2e8f0; background: #f8fafc; padding: 3px 8px; border-radius: 6px; font-size: 11px; cursor: pointer; color: #475569; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; transition: background .15s, color .15s; line-height: 1.6; }
.gz-card-share-btn:hover { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }

/* Article bottom share row */
.gz-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.gz-share-row-label { font-size: 13px; color: #64748b; font-weight: 600; margin-right: 4px; }
.gz-share-row-btn { border: 1px solid #e2e8f0; background: #f8fafc; padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; color: #475569; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; transition: background .15s, color .15s; }
.gz-share-row-btn:hover { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.gz-share-row-btn.fb:hover { background: #dbeafe; border-color: #93c5fd; color: #1877f2; }
.gz-share-row-btn.li:hover { background: #dbeafe; border-color: #93c5fd; color: #0077b5; }

/* Kortelė yra <a> — paveldėti spalvą, be pabraukimo */
a.gz-card { color: inherit; text-decoration: none; }
a.gz-card:hover .gz-card-title { color: #1d4ed8; }

/* Puslapiavimas */
.gz-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 28px 0 8px; }
.gz-page-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.gz-page-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.gz-page-info { font-size: 14px; color: #64748b; }

/* Straipsnio puslapis (buvęs modalas) */
.gz-article { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 32px; }
.gz-article-hero img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.gz-article-content { font-size: 1.05rem; line-height: 1.75; color: #1e293b; }
.gz-article-content p { margin: 0 0 1em; }
.gz-article-content a { color: #1d4ed8; }
.gz-share-row-btn { text-decoration: none; }
@media (max-width: 640px) { .gz-article { padding: 20px; } }

/* Layout su kairiu meniu */
.gz-layout { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.gz-main { min-width: 0; }
.gz-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.gz-side-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; }
.gz-side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 10px; }
.gz-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gz-side-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #1e293b; text-decoration: none; font-size: 14px; line-height: 1.3; }
.gz-side-list a:hover { background: #f1f5f9; }
.gz-side-list a.active { background: #e0e7ff; color: #3730a3; font-weight: 600; }
.gz-count { font-size: 11px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 7px; flex-shrink: 0; }
.gz-side-list a.active .gz-count { background: #c7d2fe; color: #3730a3; }
.gz-search { width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; }
.gz-search:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

/* Toolbar + greito filtro chips */
.gz-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gz-toolbar-info { font-size: 14px; color: #64748b; }
.gz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gz-chip { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: #334155; }
.gz-chip:hover { background: #f1f5f9; }
.gz-chip.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.gz-card[hidden] { display: none; }

@media (max-width: 1023px) {
  .gz-layout { grid-template-columns: 1fr; }
  .gz-sidebar { position: static; }
  .gz-side-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .gz-side-list a { border: 1px solid #e2e8f0; }
}
