/* ============================================================
   guides.css — Portal homepage v2 (hero + mřížka novinek +
   boční panel Návody) a archiv/detail Návodů.
   Používá stávající proměnné z base.css (--cyan, --bg, --glass...).
   ============================================================ */

/* Nová sekce Návody dostává vlastní akcent, aby byla na první pohled
   odlišitelná od cyan Novinek, ale zůstala v rodině barev webu. */
:root {
    --guide: var(--amber, #ffb347);
    --guide-dim: var(--amber-dim, rgba(255, 179, 71, 0.4));
    --guide-glow: rgba(255, 179, 71, 0.12);

    --tag-windows: #4fc3f7;
    --tag-server: #85ff9e;
    --tag-fix: #ff6b6b;
    --tag-network: #c792ea;
}

/* ============================================================
   PORTAL HOMEPAGE GRID
   ============================================================ */
.portal-main { max-width: 1500px; margin: 0 auto; padding: 46px 40px 90px; position: relative; z-index: 1; }

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 340px;
    grid-template-rows: auto auto;
    gap: 22px;
}

.portal-primary { grid-column: 1 / 4; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 22px; }
.portal-side { grid-column: 4; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 22px; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.section-heading h2 {
    font-family: 'Teko', sans-serif; font-size: 1.5rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 12px;
}
.section-heading h2 .heading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.section-heading .heading-all {
    font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; transition: color 0.25s ease;
}
.section-heading .heading-all:hover { color: var(--cyan); }
.section-heading--guide h2 .heading-dot { background: var(--guide); box-shadow: 0 0 8px var(--guide); }
.section-heading--guide .heading-all:hover { color: var(--guide); }

/* ── Hero novinka (featured) ───────────────────────────────── */
.hero-feature {
    position: relative; overflow: hidden; min-height: 400px;
    display: flex; align-items: flex-end;
    background-color: #14181c; background-size: cover; background-position: center;
    border: 1px solid var(--border-glass); text-decoration: none; color: var(--text);
    transition: border-color 0.3s ease;
}
.hero-feature:hover { border-color: var(--cyan-dim); }
.hero-feature::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--cyan); box-shadow: 0 0 15px var(--cyan); z-index: 3;
}
.hero-feature-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0.05) 0%, rgba(5,6,8,0.35) 55%, rgba(5,6,8,0.94) 100%); }
.hero-feature-content { position: relative; z-index: 2; padding: 40px 44px; width: 100%; }
.hero-feature .cat-label--big {
    display: inline-block; font-family: 'Teko', sans-serif; font-size: 1.05rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0,242,255,0.3);
    background: rgba(0,242,255,0.06); padding: 4px 16px; margin-bottom: 16px;
}
.hero-feature h1 {
    font-family: 'Teko', sans-serif; font-size: 3.4rem; line-height: 0.95; letter-spacing: 0.5px;
    text-transform: uppercase; color: #fff; max-width: 85%; margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero-feature p { color: #c3c8cf; font-size: 1rem; line-height: 1.6; max-width: 60%; margin-bottom: 18px; }
.hero-feature .date { font-family: 'Teko', sans-serif; font-size: 0.95rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }
.hero-feature:hover h1 { color: var(--cyan); }

/* ── Mřížka 6 novinek (2 řádky x 3 sloupce) ────────────────── */
.news-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-mini-card {
    position: relative; overflow: hidden; min-height: 190px;
    background-color: #14181c; background-size: cover; background-position: center;
    border: 1px solid var(--border-glass); text-decoration: none; color: #fff;
    display: flex; align-items: flex-end; transition: border-color 0.3s ease, transform 0.3s ease;
}
.news-mini-card:hover { border-color: var(--cyan-dim); transform: translateY(-4px); }
.news-mini-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,6,8,0.05) 0%, rgba(5,6,8,0.2) 50%, rgba(5,6,8,0.92) 100%);
    transition: background 0.3s ease;
}
.news-mini-card-content { position: relative; z-index: 2; padding: 16px 18px; width: 100%; }
.news-mini-card .cat-label {
    display: inline-block; font-family: 'Teko', sans-serif; font-size: 0.72rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0,242,255,0.25);
    background: rgba(0,242,255,0.06); padding: 1px 9px; margin-bottom: 8px;
}
.news-mini-card h3 {
    font-family: 'Teko', sans-serif; font-size: 1.28rem; line-height: 1.05; letter-spacing: 0.2px;
    text-transform: uppercase; color: #fff; margin-bottom: 6px; transition: color 0.25s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-mini-card:hover h3 { color: var(--cyan); }
.news-mini-card .date { font-size: 0.7rem; letter-spacing: 1px; color: #9aa0a7; text-transform: uppercase; font-weight: 700; }
.news-mini-card--empty { align-items: center; justify-content: center; color: var(--text-muted); font-family: 'Teko', sans-serif; letter-spacing: 2px; text-transform: uppercase; }

/* ── Boční panel Návody (mini karty s obrázkem) ────────────── */
.guide-rail { display: flex; flex-direction: column; gap: 14px; }

.guide-card {
    position: relative; overflow: hidden; min-height: 128px;
    background-color: #14181c; background-size: cover; background-position: center;
    border: 1px solid var(--border-glass); text-decoration: none; color: #fff;
    display: flex; align-items: flex-end; transition: border-color 0.3s ease, transform 0.3s ease;
}
.guide-card:hover { border-color: var(--guide-dim); transform: translateY(-3px); }
.guide-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--guide); box-shadow: 0 0 10px var(--guide); z-index: 3;
}
.guide-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0.1) 0%, rgba(5,6,8,0.35) 45%, rgba(5,6,8,0.95) 100%); }
.guide-card-content { position: relative; z-index: 2; padding: 14px 16px; width: 100%; }
.guide-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Teko', sans-serif; font-size: 0.68rem; letter-spacing: 1.3px; text-transform: uppercase;
    padding: 1px 8px; margin-bottom: 7px; border: 1px solid; border-radius: 2px;
}
.guide-tag--windows { color: var(--tag-windows); border-color: rgba(79,195,247,0.35); background: rgba(79,195,247,0.08); }
.guide-tag--server   { color: var(--tag-server);  border-color: rgba(133,255,158,0.35); background: rgba(133,255,158,0.08); }
.guide-tag--fix       { color: var(--tag-fix);     border-color: rgba(255,107,107,0.35); background: rgba(255,107,107,0.08); }
.guide-tag--network   { color: var(--tag-network); border-color: rgba(199,146,234,0.35); background: rgba(199,146,234,0.08); }
.guide-tag--default   { color: var(--guide); border-color: rgba(255,179,71,0.35); background: rgba(255,179,71,0.08); }
.guide-card h4 {
    font-family: 'Teko', sans-serif; font-size: 1.08rem; line-height: 1.12; letter-spacing: 0.2px;
    text-transform: uppercase; color: #fff; transition: color 0.25s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card:hover h4 { color: var(--guide); }
.guide-card .guide-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 0.68rem; letter-spacing: 0.5px; color: #9aa0a7; text-transform: uppercase; }
.guide-card .guide-meta i { color: var(--guide); font-size: 0.7rem; }
.guide-rail--empty { color: var(--text-muted); font-family: 'Teko', sans-serif; letter-spacing: 2px; text-transform: uppercase; padding: 30px 10px; text-align: center; border: 1px dashed var(--border-glass); }

.guide-rail-more {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--guide); text-decoration: none; padding: 14px; margin-top: 2px;
    border: 1px solid rgba(255,179,71,0.25); background: rgba(255,179,71,0.04); transition: 0.25s ease;
}
.guide-rail-more:hover { background: rgba(255,179,71,0.1); border-color: rgba(255,179,71,0.5); }
.guide-rail-more i { transition: transform 0.25s ease; }
.guide-rail-more:hover i { transform: translateX(3px); }

/* ── Navigace: odznak "NEW" u položky Návody ───────────────── */
.nav-l a .nav-badge-new, .nav-r a .nav-badge-new {
    font-family: 'Teko', sans-serif; font-size: 0.62rem; letter-spacing: 1px;
    background: var(--amber); color: #1a0f00; padding: 1px 6px; border-radius: 2px;
    margin-left: 6px; vertical-align: 3px; display: inline-block;
}

/* ============================================================
   ARCHIV NÁVODŮ (/navody/) — reuse .tile systém stejně jako Novinky
   ============================================================ */
.guides-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.guides-filter {
    font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); text-decoration: none; padding: 7px 18px;
    border: 1px solid var(--border-glass); background: var(--glass); transition: 0.25s ease;
}
.guides-filter:hover { color: #fff; border-color: var(--guide-dim); }
.guides-filter.is-active { color: var(--guide); border-color: var(--guide-dim); background: var(--guide-glow); }

.guides-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card--archive { min-height: 260px; }
.guide-card--archive h4 { font-size: 1.5rem; -webkit-line-clamp: 3; }
.guide-card--archive .guide-card-content { padding: 22px 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .portal-grid { grid-template-columns: 1fr 1fr 1fr; }
    .portal-primary { grid-column: 1 / 4; }
    .portal-side { grid-column: 1 / 4; grid-row: 3; }
    .guide-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .guide-rail-more { grid-column: 1 / 4; }
    .guides-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .portal-main { padding: 30px 20px 60px; }
    .news-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-feature h1 { font-size: 2.4rem; }
    .hero-feature p { max-width: 100%; }
    .guide-rail { grid-template-columns: repeat(2, 1fr); }
    .guide-rail-more { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
    .news-mini-grid { grid-template-columns: 1fr; }
    .guide-rail { grid-template-columns: 1fr; }
    .guide-rail-more { grid-column: 1; }
    .hero-feature h1 { font-size: 2rem; }
    .guides-archive-grid { grid-template-columns: 1fr; }
}
