/* ══════════════════════════════════════════════════════════════════════
   Helpdesk styles — hero (pricing-style, 2 kolumny + dekorator), cards.
   Ładowane na widokach Helpdesk* przez _HelpdeskLayout.cshtml.
   Używa design tokenów z tokens.css.

   Hero dziedziczy po .doko-hero (gradient + bg) z site.css. `.hd-hero` daje
   kontekstowe nadpisania: jaśniejszy tekst (biały, nie ciemny), mniejszy padding
   niż marketing hero (tu nie ma wielkiego CTA, tylko breadcrumbs + meta), 2-kolumnowy layout.
   ══════════════════════════════════════════════════════════════════════ */


/* ── Hero — padding / 2-col layout ──────────────────────────────────── */
.hd-hero .doko-hero-nav {
    /* dziedziczy z site.css, tylko potwierdzamy żeby nav nie miał dodatkowych korekt */
}

.hd-hero-row {
    padding: 32px 0 48px;
    min-height: 260px;
}

.hd-hero-left {
    position: relative;
    z-index: 2;
}


/* ── Breadcrumbs — na ciemnym gradiencie ─────────────────────────────── */
.hd-hero-breadcrumb {
    margin-bottom: 1.25rem;
}

.hd-hero-breadcrumb .breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.hd-hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--doko-transition-fast);
}

.hd-hero-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.hd-hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: var(--doko-weight-medium);
}

.hd-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}


/* ── Kicker / Title / Subtitle — biały tekst na gradiencie ──────────── */
.hd-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.85rem;
    border-radius: var(--doko-radius-pill);
    font-size: 0.75rem;
    font-weight: var(--doko-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.hd-hero-title {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    font-weight: var(--doko-weight-display);
    color: #fff;
    margin-bottom: 0.65rem;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.hd-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    max-width: 46rem;
    margin-bottom: 0;
}


/* ── Meta row (ItemCount + UpdatedAt) ────────────────────────────────── */
.hd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
}

.hd-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hd-hero-meta-item i[data-lucide],
.hd-hero-meta-item svg {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.65);
}

.hd-hero-meta-item strong {
    color: #fff;
    font-weight: var(--doko-weight-bold);
}


/* ══════════════════════════════════════════════════════════════════════
   Hero visual decorator (prawa kolumna) — concentric rings + icon
   Podobny motyw do .oi-hero-visual, ale w skali mini-hero helpdesku.
   Schowany na <lg (mobile). Aria-hidden — czysta dekoracja.
   ══════════════════════════════════════════════════════════════════════ */
.hd-hero-visual {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-hero-visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: hd-hero-pulse 6s ease-in-out infinite;
}

.hd-hero-visual-ring--1 {
    inset: 0;
    background: rgba(255, 255, 255, 0.04);
}

.hd-hero-visual-ring--2 {
    inset: 24px;
    border-color: rgba(255, 255, 255, 0.25);
    animation-delay: 2s;
}

.hd-hero-visual-icon {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.hd-hero-visual-icon i[data-lucide],
.hd-hero-visual-icon svg {
    width: 44px;
    height: 44px;
    color: #fff;
    stroke-width: 1.5;
}

@keyframes hd-hero-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hd-hero-visual-ring {
        animation: none;
    }
}


/* ── Content area ───────────────────────────────────────────────────── */
.hd-content {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

/* ── Cards w helpdesku — subtelny lawendowy tint zamiast kremowego (--doko-bg).
       Kremowe tło ciała strony powoduje że default .card (bs-card-bg = bs-body-bg)
       wygląda jak żółtawy. Wymuszamy kolor: 92% biały + 8% primary → delikatny lawender. */
.hd-content .card {
    --bs-card-bg: color-mix(in srgb, white 92%, var(--doko-primary) 8%);
    border-color: var(--doko-border);
}

.hd-content .card.bg-white,
.hd-content .card[class*="bg-"] {
    --bs-card-bg: initial; /* pozwól klasom utility nadpisywać */
}


/* ── Article count number (category cards na /support/help) ─────────── */
/* Bootstrap .display-3 z naszym tokens.css domyślnie ma weight 400 (regular).
   Tu dodatkowo wyciszamy w kontekście liczników kategorii — elegancki, lekki. */
.hd-content h3.display-3 {
    font-weight: var(--doko-weight-regular);
    color: var(--doko-primary);
    opacity: 0.85;
}


/* ── Quick cards (Helpdesk landing) ─────────────────────────────────── */
/* Hover/transform obsługuje globalna reguła `a.card` w tokens.css.
   Tutaj tylko kolor i border-radius specyficzne dla tej wersji. */
.hd-quick-card {
    color: var(--doko-ink);
    border-radius: var(--doko-radius-md);
}

.hd-quick-card:hover {
    color: var(--doko-ink); /* nadpisanie default link color na hover */
}

.hd-quick-card-icon {
    width: 2rem;
    height: 2rem;
    color: var(--doko-primary);
    stroke-width: 1.5;
}

.hd-quick-card-icon-sm {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--doko-primary-soft);
    border-radius: var(--doko-radius-sm);
}

.hd-quick-card-icon-sm i[data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
}


/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hd-hero-row {
        padding: 20px 0 32px;
        min-height: auto;
    }
    .hd-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .hd-hero-subtitle {
        font-size: 0.95rem;
    }
}


/* Uwaga: style FAB-ów (`.doko-fab-*`) zostały przeniesione do wwwroot/css/site.css
   bo buttony są globalne (cały portal), nie tylko helpdesk. */
