@import url('./site-base.css');

/*
 * NIS2 microsite – Security HUD hero
 * A teljes alapstílus a site-base.css fájlban marad; ez a belépési pont
 * a kiválasztott hero-hátteret és a kért elrendezési finomításokat írja felül.
 */

.hero {
    min-height: 690px;
    background: url('../img/hero-security-hud.svg') center center / cover no-repeat;
}

.hero::before {
    background: linear-gradient(
        90deg,
        rgba(2, 14, 9, 0.91) 0%,
        rgba(2, 14, 9, 0.79) 42%,
        rgba(2, 20, 24, 0.34) 64%,
        rgba(2, 12, 23, 0.14) 100%
    );
}

/* A hero alján korábban megjelenő vékony zöld sáv eltávolítása. */
.hero::after {
    display: none;
}

/* A Security HUD saját hálózati rajzolatot tartalmaz. */
.hero-grid {
    display: none;
}

/*
 * A szöveges blokk asztali nézetben a szülő szélességének kétharmadát tölti ki.
 * A fennmaradó harmad szabadon hagyja érvényesülni a HUD grafikát.
 */
.hero-layout {
    display: block;
    padding-block: 82px 88px;
}

.hero-copy {
    width: 66.6667%;
    max-width: none;
}

.hero-copy > .eyebrow {
    margin-bottom: 16px;
}

.hero-copy > h1 {
    max-width: 780px;
}

.hero-copy > .hero-lead {
    max-width: 720px;
}

/* A korábbi jobb oldali kép- és árpanel nem jelenik meg. */
.hero-panel {
    display: none;
}

/* Határidőkiemelés: fehér háttér, fekete szöveg, színes oldalsáv nélkül. */
.deadline {
    padding: 16px 18px;
    border: 0;
    background: #ffffff;
    color: #111713;
}

.deadline strong {
    color: inherit;
}

/* A fejléc EOQ logója hangsúlyosabb méretben jelenik meg. */
.header-inner {
    grid-template-columns: minmax(155px, 210px) 1fr auto;
}

.brand-link {
    width: 200px;
}

.brand-link img {
    height: 78px;
}

.header-facts strong {
    color: var(--brand-dark);
}

/* A korábban kért portrékép vízszintesen tükrözve jelenik meg. */
.section-visual .visual-media img {
    object-position: center center;
    transform: scaleX(-1);
    transform-origin: center;
}

/* Hat modul áttekinthető, egységes megjelenítése. */
.curriculum-note {
    max-width: 920px;
    padding: 15px 18px;
    border-left: 5px solid #8ef0b0;
    background: rgba(255, 255, 255, 0.1);
    color: #f2f8f4 !important;
    font-size: 15px !important;
}

.module-grid {
    align-items: stretch;
}

.module-card {
    display: flex;
    flex-direction: column;
}

.module-details {
    display: grid;
    gap: 18px;
    margin: 0;
}

.module-details > div {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.module-details dt {
    color: #8ef0b0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.module-details dd {
    margin: 7px 0 0;
    color: #edf5f0;
    line-height: 1.58;
}

/* Az e-learning előnyök négy, egyenrangú információs kártyán jelennek meg. */
.format-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.format-facts > div {
    min-height: 0;
}

.format-facts strong {
    min-height: 0;
    margin-bottom: 10px;
}

/* Early bird árazás és sürgetés, a teljes ár egyértelmű feltüntetésével. */
.offer-early-bird-copy {
    padding-left: 18px;
    border-left: 4px solid #8ef0b0;
}

.early-bird-badge {
    display: inline-flex !important;
    width: fit-content;
    padding: 7px 10px;
    background: var(--brand);
    color: var(--paper) !important;
    letter-spacing: 0.09em !important;
}

.full-price {
    margin: 18px 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.full-price span,
.full-price del {
    display: block;
}

.full-price span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.full-price del {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 18px;
    font-weight: 750;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
}

.offer-price > strong {
    margin-top: 18px;
}

.offer-price > em {
    margin-bottom: 14px;
}

.early-bird-saving {
    margin: 0 0 22px;
    padding: 13px 14px;
    background: var(--brand-soft);
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

/* A számozások helyét változatos, egységes zöld ikonok veszik át. */
.card-number,
.outcome-item > span:not(.outcome-icon) {
    visibility: hidden;
}

.card-icon,
.outcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    line-height: 1;
}

.card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 30px;
    border: 1px solid var(--brand);
    background: var(--brand-soft);
}

.card-icon svg {
    width: 25px;
    height: 25px;
}

.outcome-item {
    grid-template-columns: 44px 1fr;
    align-items: start;
}

.outcome-icon {
    width: 36px;
    height: 36px;
    margin-top: -4px;
    font-size: initial;
    letter-spacing: normal;
}

.outcome-icon svg {
    width: 27px;
    height: 27px;
}

.card-icon svg,
.outcome-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A fix AI Helpdesk közvetlenül a gyakori kérdések része. */
.faq-layout {
    row-gap: 36px;
}

#ai-helpdesk-title,
.section-faq .ai-chat-panel {
    grid-column: 1 / -1;
}

#ai-helpdesk-title {
    margin: 28px 0 0;
    padding: 48px 300px 0 0;
}

.ai-chat-panel {
    position: relative;
    border: 1px solid rgba(142, 240, 176, 0.38);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.ai-chat-messages {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 260px;
    max-height: 430px;
    padding: 24px;
    overflow-y: auto;
    background:
        linear-gradient(rgba(4, 158, 56, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 158, 56, 0.035) 1px, transparent 1px),
        #f8fbf9;
    background-size: 28px 28px;
    border-bottom: 1px solid var(--line);
    scroll-behavior: smooth;
}

.ai-chat-agent-image {
    position: absolute;
    right: 10px;
    bottom: 100%;
    z-index: 2;
    display: block;
    width: 266px;
    max-width: 30%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.ai-chat-message {
    width: min(88%, 620px);
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 15px !important;
    background: #ffffff;
}

.ai-chat-message-assistant {
    position: relative;
    width: min(calc(88% - 68px), 620px);
    margin-left: 68px;
}

.ai-chat-avatar {
    position: absolute;
    top: 50%;
    left: -60px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50% !important;
    background: #ffffff;
    color: var(--brand);
    box-shadow: 0 6px 16px rgba(4, 35, 19, 0.16);
    font-size: 17px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    transform: translateY(-50%);
    user-select: none;
}

.ai-chat-message-user {
    justify-self: end;
    border-color: var(--brand);
    background: var(--brand-soft);
}

.ai-chat-speaker {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ai-chat-message p {
    margin: 0;
    white-space: pre-wrap;
}

.ai-chat-message.is-pending p {
    color: var(--muted);
}

.ai-chat-message.is-pending p::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    background: var(--brand);
    animation: ai-chat-pulse 1s ease-in-out infinite alternate;
}

.ai-chat-message.is-error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.ai-chat-form {
    padding: 22px 24px 18px;
}

.ai-chat-form .form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.ai-human-check {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.ai-human-check p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.ai-human-check.is-verified {
    display: none;
}

.ai-chat-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.ai-chat-form textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid var(--line-dark);
    background: #ffffff;
    color: var(--ink);
}

.ai-chat-form textarea:disabled {
    background: var(--surface);
    cursor: not-allowed;
}

.ai-chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
}

.ai-chat-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ai-chat-actions .button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.ai-chat-disclaimer {
    margin: 0;
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@keyframes ai-chat-pulse {
    from { opacity: 0.28; transform: scale(0.82); }
    to { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-chat-message.is-pending p::after {
        animation: none;
    }
}

@media (max-width: 1080px) and (min-width: 901px) {
    .hero-layout {
        padding-block: 76px 82px;
    }

    .hero-copy > h1 {
        font-size: clamp(38px, 5vw, 56px);
    }

    .format-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 175px 1fr auto;
    }

    .brand-link {
        width: 175px;
    }

    .brand-link img {
        height: 64px;
    }

    .hero {
        min-height: auto;
        background-position: 67% center;
    }

    .hero-layout {
        padding-block: 66px 78px;
    }

    .hero-copy {
        width: 100%;
        max-width: 760px;
    }

    .format-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    #ai-helpdesk-title {
        padding-right: 0;
    }

    .section-faq .ai-chat-panel {
        margin-top: 100px;
    }

    .ai-chat-messages {
        min-height: 230px;
        padding: 16px;
    }

    .ai-chat-agent-image {
        width: 180px;
        max-width: 55%;
    }

    .ai-chat-message {
        width: 94%;
    }

    .ai-chat-message-assistant {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .ai-chat-avatar {
        left: -46px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .ai-chat-form {
        padding: 18px 16px 14px;
    }

    .ai-chat-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ai-chat-actions .button {
        width: 100%;
    }

    .ai-chat-disclaimer {
        padding: 0 16px 16px;
    }

    .header-inner {
        grid-template-columns: minmax(125px, 160px) auto;
    }

    .brand-link {
        width: 158px;
    }

    .brand-link img {
        height: 56px;
    }

    .hero {
        background-position: 63% center;
    }

    .hero-layout {
        padding-block: 52px 66px;
    }

    .deadline {
        padding: 14px 15px;
    }

    .curriculum-note {
        padding: 13px 14px;
        font-size: 14px !important;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 24px;
    }

    .outcome-item {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .full-price del {
        font-size: 16px;
    }
}
