
/* ========================================
   EET HIGHLIGHT — CONFIGURATION
   ======================================== */

.eet-highlight {

    /* Colors */

    --eet-heading-accent: var(--primary-700);

    /* Product preview */

    --eet-preview-width: 800px;

    /* Background texture */

    --eet-dots-width: 45%;
    --eet-dots-opacity: 0.8;
    --eet-dots-inset: 10%;

    /* Section */

    position: relative;
    isolation: isolate;

    width: 100%;

    margin: 0;

    overflow: hidden;

    background: var(--gradient-primary-section);
    color: var(--neutral-900);
}


/* ========================================
   BACKGROUND — DECORATIVE TEXTURE
   ======================================== */

.eet-highlight::before,
.eet-highlight::after {
    content: "";

    position: absolute;

    top: var(--eet-dots-inset);
    bottom: var(--eet-dots-inset);

    width: var(--eet-dots-width);

    z-index: -1;

    background-image: var(--texture-dots-primary);
    background-size: var(--texture-dots-size);

    opacity: var(--eet-dots-opacity);

    pointer-events: none;
}

.eet-highlight::before {
    left: 0;

    -webkit-mask-image: var(--texture-fade-left);
    mask-image: var(--texture-fade-left);
}

.eet-highlight::after {
    right: 0;

    -webkit-mask-image: var(--texture-fade-right);
    mask-image: var(--texture-fade-right);
}


/* ========================================
   SECTION CONTAINER
   ======================================== */

.eet-highlight .eet-highlight__container {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    align-items: center;

    width: 100%;
    max-width: var(--container-width);

    gap: var(--space-7);

    margin-inline: auto;

    padding:
        clamp(32px, 3vw, 48px)
        var(--container-padding)
        clamp(40px, 4vw, 56px);
}


/* ========================================
   SECTION HEADER
   ======================================== */

.eet-highlight__header {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: center;

    width: 100%;
    max-width: 800px;

    gap: var(--space-4);

    text-align: center;
}


/* ========================================
   NEW FEATURE LABEL
   ======================================== */

.eet-highlight__eyebrow {
    display: inline-flex;

    align-items: center;

    font-size: 12px;
    font-weight: var(--font-weight-bold);

    line-height: 1.4;
    letter-spacing: 0.14em;

    text-transform: uppercase;

    color: var(--eet-heading-accent);
}


/* ========================================
   SECTION TITLE
   ======================================== */

.eet-highlight__title {
    margin: 0;

    font-family: var(--font-heading);
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-bold);

    line-height: var(--line-height-heading);
    letter-spacing: -0.045em;

    color: var(--neutral-900);
}

.eet-highlight__title > span {
    display: block;

    margin-top: 6px;

    color: var(--eet-heading-accent);
}


/* ========================================
   SECTION DESCRIPTION
   ======================================== */

.eet-highlight__description {
    max-width: 640px;

    margin: 0;

    font-size: var(--font-size-section-intro);
    font-weight: var(--font-weight-regular);

    line-height: var(--line-height-relaxed);

    color: var(--neutral-700);
}


/* ========================================
   SECTION LINK
   ======================================== */

.eet-highlight__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 32px;

    gap: var(--space-2);

    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);

    text-decoration: none;

    color: var(--primary-700);

    transition: color var(--transition-default);
}

.eet-highlight__link svg {
    width: 18px;
    height: 18px;

    transition: transform var(--transition-default);
}

.eet-highlight__link:hover {
    color: var(--primary-800);
}

.eet-highlight__link:hover svg {
    transform: translateX(4px);
}

.eet-highlight__link:focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 4px;

    border-radius: 4px;
}


/* ========================================
   PRODUCT PRESENTATION
   ======================================== */

.eet-highlight__visual {
    position: relative;
    isolation: isolate;
    z-index: 1;

    display: flex;

    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-width: 0;
}


/* ========================================
   EET PREVIEW — CONFIGURATION
   ======================================== */

.eet-preview {

    /* Preview colors */

    --preview-primary: var(--primary-700);
    --preview-border: var(--neutral-100);
    --preview-muted: var(--neutral-700);

    --preview-danger-background: #ffe9ea;
    --preview-danger-text: #c52d3a;
    --preview-success-border: #9bd28e;

    /* Interactive 3D tilt */

    --eet-rotate-x: 8deg;
    --eet-rotate-y: -5deg;
    --eet-rotate-z: -1deg;
    --eet-translate-y: 0px;

    /* Window shadows */

    --eet-window-shadow:
        0 4px 12px rgba(13, 30, 55, 0.04),
        8px 18px 36px rgba(13, 30, 55, 0.10),
        16px 32px 64px rgba(13, 30, 55, 0.08);

    --eet-window-shadow-hover:
        0 8px 20px rgba(13, 30, 55, 0.06),
        0 25px 56px rgba(13, 30, 55, 0.17);

    --eet-window-shadow-active:
        0 8px 20px rgba(13, 30, 55, 0.06),
        0 24px 56px rgba(13, 30, 55, 0.16),
        0 40px 80px rgba(13, 30, 55, 0.08);

    /* Preview layout */

    position: relative;

    width: 100%;
    max-width: var(--eet-preview-width);
    min-width: 0;

    container-type: inline-size;

    perspective: 1600px;

    font-family: var(--navbar-font);
    font-size: 13px;
    line-height: 1.4;

    color: var(--neutral-900);
}

.eet-preview svg {
    display: block;

    flex-shrink: 0;

    width: 18px;
    height: 18px;
}


/* ========================================
   APPLICATION WINDOW
   ======================================== */

.eet-preview__window {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: var(--space-3);
    padding: var(--space-4);

    margin-bottom: 0;

    border: 1px solid var(--preview-border);
    border-radius: var(--radius-md);

    background: var(--surface-card);

    transform:
        translateY(var(--eet-translate-y))
        rotateX(var(--eet-rotate-x))
        rotateY(var(--eet-rotate-y))
        rotateZ(var(--eet-rotate-z));

    transform-origin: center;

    box-shadow: var(--eet-window-shadow);

    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 400ms ease;
}

.eet-preview__title {
    margin: 0;

    font-size: 19px;
    font-weight: var(--font-weight-bold);

    color: var(--preview-primary);
}


/* ========================================
   APPLICATION WINDOW — INTERACTION
   ======================================== */

@media (hover: hover) and (pointer: fine) {

    .eet-preview:hover .eet-preview__window {
        box-shadow: var(--eet-window-shadow-hover);
    }

}

.eet-preview.is-tilting .eet-preview__window {
    transition:
        transform 180ms ease-out,
        box-shadow 400ms ease;

    box-shadow: var(--eet-window-shadow-active);
}


/* ========================================
   PREVIEW SECTIONS
   ======================================== */

.eet-preview__section {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: var(--space-3);
    padding: var(--space-4);

    border: 1px solid var(--preview-border);
    border-radius: 10px;

    background: linear-gradient(
        115deg,
        var(--primary-50),
        #f5f9fc
    );
}

.eet-preview__section--status {
    gap: 10px;
    padding: var(--space-3);
}

.eet-preview__section-head {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: var(--space-3);

    font-size: 13px;
    font-weight: var(--font-weight-bold);

    color: var(--preview-primary);
}


/* ========================================
   STATUS BADGES
   ======================================== */

.eet-preview__badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    padding: 4px 10px;

    border: 1px solid var(--preview-primary);
    border-radius: 5px;

    font-size: 11px;
    font-weight: var(--font-weight-medium);

    white-space: nowrap;

    color: var(--preview-primary);
}

.eet-preview__badge--success {
    border-color: var(--success);

    color: var(--success-dark);
}


/* ========================================
   ACTIVE STATUS NOTICE
   ======================================== */

.eet-preview__notice {
    display: flex;

    align-items: center;

    gap: 10px;
    padding: 10px 12px;

    border: 1px solid var(--preview-success-border);
    border-radius: 7px;

    background: var(--success-light);
    color: var(--success-dark);

    font-size: 12px;
    font-weight: var(--font-weight-medium);

    line-height: var(--line-height-body);
}

.eet-preview__notice svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   SETTINGS ROWS
   ======================================== */

.eet-preview__row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-width: 0;

    gap: var(--space-3);
    padding: 10px 12px;

    border: 1px solid var(--preview-border);
    border-radius: 7px;

    background: var(--surface-card);
}

.eet-preview__row-text {
    display: flex;

    flex: 1;
    flex-direction: column;

    min-width: 0;

    gap: var(--space-1);
}

.eet-preview__row-text strong {
    font-size: 12px;
    font-weight: var(--font-weight-bold);
}

.eet-preview__row-text > span {
    font-size: 11px;

    color: var(--preview-muted);
}


/* ========================================
   STATUS SWITCH
   ======================================== */

.eet-preview__switch {
    display: inline-flex;

    align-items: center;
    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid var(--neutral-400);
    border-radius: 6px;
}

.eet-preview__switch > span {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 12px;

    font-size: 11px;
    font-weight: var(--font-weight-semibold);

    color: var(--preview-muted);
}

.eet-preview__switch > .is-active {
    background: var(--success-dark);
    color: var(--white);
}


/* ========================================
   EVIDENCE UNIT FIELD
   ======================================== */

.eet-preview__input {
    display: flex;

    align-items: center;

    min-width: 160px;
    min-height: 32px;

    padding: 7px 12px;

    border: 1px solid var(--neutral-400);
    border-radius: 6px;

    background: var(--surface-card);

    font-size: 12px;
    font-weight: var(--font-weight-semibold);
}


/* ========================================
   CERTIFICATE TABLE — CONTAINER
   ======================================== */

.eet-preview__section--certificates {
    gap: 0;
    padding: 0;

    overflow: hidden;

    background: var(--surface-card);
}

.eet-preview__section--certificates
.eet-preview__section-head {
    padding: 10px 12px;

    background: var(--primary-50);
}

.eet-preview__table-wrapper {
    width: 100%;
    min-width: 0;

    overflow-x: auto;

    padding: 6px 12px 10px;
}


/* ========================================
   CERTIFICATE TABLE — LAYOUT
   ======================================== */

.eet-preview__table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
    text-align: left;
}

.eet-preview__col-status {
    width: 100px;
}

.eet-preview__col-date {
    width: 105px;
}

.eet-preview__col-actions {
    width: 60px;
}


/* ========================================
   CERTIFICATE TABLE — CELLS
   ======================================== */

.eet-preview__table th,
.eet-preview__table td {
    border-bottom: 1px solid var(--preview-border);

    font-size: 11px;
}

.eet-preview__table th {
    padding: 8px 6px;

    font-weight: var(--font-weight-bold);
}

.eet-preview__table td {
    height: 36px;

    padding: 6px;

    white-space: nowrap;
}

.eet-preview__table tbody tr:last-child td {
    border-bottom: 0;
}


/* ========================================
   CERTIFICATE TABLE — ROW STATES
   ======================================== */

.eet-preview__table tbody tr {
    transition: background-color 150ms ease;
}

.eet-preview__table tbody tr.is-active,
.eet-preview__table tbody tr:hover {
    background: var(--primary-50);
}


/* ========================================
   CERTIFICATE FILE
   ======================================== */

.eet-preview__file {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: var(--space-2);
}

.eet-preview__file > svg {
    color: var(--preview-primary);
}

.eet-preview__file > span:not(.eet-preview__used) {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.eet-preview__used {
    flex-shrink: 0;

    padding: 3px 6px;

    border: 1px solid var(--primary-400);
    border-radius: 4px;

    font-size: 10px;

    color: var(--preview-primary);
}


/* ========================================
   CERTIFICATE STATUS
   ======================================== */

.eet-preview__status {
    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: var(--font-weight-semibold);

    white-space: nowrap;
}

.eet-preview__status--success {
    background: var(--success-light);
    color: var(--success-dark);
}

.eet-preview__status--danger {
    background: var(--preview-danger-background);
    color: var(--preview-danger-text);
}

.eet-preview__expired {
    color: var(--preview-danger-text);
}


/* ========================================
   CERTIFICATE ACTIONS
   ======================================== */

.eet-preview__row-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    color: var(--preview-primary);
}

.eet-preview__row-actions svg {
    width: 15px;
    height: 15px;
}


/* ========================================
   RESPONSIVE — TABLET
   ======================================== */

@media (max-width: 1024px) {

    .eet-highlight {

        /* Background texture */

        --eet-dots-width: 40%;
        --eet-dots-opacity: 0.5;
    }

    .eet-highlight .eet-highlight__container {
        gap: var(--space-7);

        padding:
            var(--space-8)
            var(--space-8)
            var(--space-10);
    }

}


/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */

@media (max-width: 600px) {

    .eet-highlight {
        background: var(--gradient-primary-section-mobile);
    }

    .eet-highlight::before,
    .eet-highlight::after {
        display: none;
    }

    .eet-highlight .eet-highlight__container {
        gap: var(--space-6);

        padding:
            var(--space-7)
            var(--space-4)
            var(--space-8);
    }

    .eet-highlight__header {
        gap: 14px;

        padding-inline: 6px;
    }

    .eet-highlight__eyebrow {
        font-size: 11px;
    }

    .eet-highlight__title {
        font-size: var(--font-size-section-title-mobile);

        letter-spacing: -0.035em;
    }

    .eet-highlight__description {
        font-size: var(--font-size-body);
    }

}


/* ========================================
   CONTAINER QUERY — PREVIEW 740 PX
   ======================================== */

@container (max-width: 740px) {

    .eet-preview__used {
        display: none;
    }

    .eet-preview__col-date {
        width: 90px;
    }

    .eet-preview__col-status {
        width: 85px;
    }

}


/* ========================================
   CONTAINER QUERY — PREVIEW 600 PX
   ======================================== */

@container (max-width: 600px) {

    .eet-preview__window {
        gap: 10px;
        padding: 10px;
    }

    .eet-preview__section {
        gap: 9px;
        padding: 10px;
    }

    .eet-preview__section--status {
        gap: 10px;
        padding: var(--space-2);
    }

    .eet-preview__section--certificates {
        gap: 0;
        padding: 0;
    }

    .eet-preview__row {
        padding: var(--space-2);
    }

    .eet-preview__row-text strong,
    .eet-preview__notice {
        font-size: 11px;
    }

    .eet-preview__row-text > span {
        font-size: 10px;
    }

    .eet-preview__input {
        min-width: 110px;
    }

    .eet-preview__table th,
    .eet-preview__table td {
        font-size: 10px;
    }

    /* Hide less important certificate columns */

    .eet-preview__table col:nth-child(3),
    .eet-preview__table col:nth-child(5),
    .eet-preview__table th:nth-child(3),
    .eet-preview__table th:nth-child(5),
    .eet-preview__table td:nth-child(3),
    .eet-preview__table td:nth-child(5) {
        display: none;
    }

}


/* ========================================
   CONTAINER QUERY — PREVIEW 400 PX
   ======================================== */

@container (max-width: 400px) {

    .eet-preview__row {
        flex-wrap: wrap;
    }

    .eet-preview__row-text {
        flex-basis: 100%;
    }

    .eet-preview__table-wrapper {
        padding-inline: 5px;
    }

    .eet-preview__col-status {
        width: 72px;
    }

    .eet-preview__col-date {
        width: 76px;
    }

    .eet-preview__file {
        gap: var(--space-1);
    }

    .eet-preview__file > svg {
        width: 12px;
        height: 12px;
    }

    .eet-preview__status {
        padding: 4px 5px;

        font-size: 9px;
    }

}


/* ========================================
   TOUCH DEVICES — DISABLE 3D TILT
   ======================================== */

@media (max-width: 1024px),
       (hover: none),
       (pointer: coarse),
       (pointer: none),
       (prefers-reduced-motion: reduce) {

    .eet-preview__window,
    .eet-preview:hover .eet-preview__window,
    .eet-preview.is-tilting .eet-preview__window {
        transform: none;
        transition: none;
    }

}


/* ========================================
   ACCESSIBILITY — REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .eet-highlight *,
    .eet-highlight *::before,
    .eet-highlight *::after {
        transition: none;
        animation: none;
    }

    .eet-highlight__link:hover svg {
        transform: none;
    }

}
