/* EventFlow Labs — Technology archive presentation */

/* ==========================================================
   ADVANCED TECHNOLOGY EXPLORER
   EventFlow Labs Reference Theme

   Presentation only.
   Data ownership remains with EventFlow Core / WordPress.

   Progressive enhancement:
   - stable Grid fallback
   - component-scoped Container Queries
   ========================================================== */

.ef-tech-explorer {
	container-type: inline-size;
	container-name: ef-technology-explorer;

	border-top: 1px solid var(--ef-border-subtle);
}

.ef-tech-explorer__item {
	position: relative;
	border-bottom: 1px solid var(--ef-border-subtle);
	background: transparent;
	overflow: hidden;

	transition:
		background-color var(--ef-duration-base) var(--ef-ease-standard),
		border-color var(--ef-duration-base) var(--ef-ease-standard);
}

.ef-tech-explorer__item::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;

	background: linear-gradient(
		90deg,
		transparent,
		var(--ef-accent),
		transparent
	);

	opacity: 0;
	transform: scaleX(0.4);

	transition:
		opacity var(--ef-duration-base) var(--ef-ease-standard),
		transform var(--ef-duration-base) var(--ef-ease-standard);

	pointer-events: none;
}

.ef-tech-explorer__item:hover,
.ef-tech-explorer__item:focus-within {
	background: var(--ef-surface-1);
	border-color: var(--ef-border-accent);
}

.ef-tech-explorer__item:hover::before,
.ef-tech-explorer__item:focus-within::before {
	opacity: 1;
	transform: scaleX(1);
}

.ef-tech-explorer__link {
	display: grid;
	grid-template-columns:
		minmax(8rem, 0.32fr)
		minmax(0, 1.4fr)
		minmax(9rem, auto);

	gap: clamp(1.5rem, 4vw, 5rem);
	align-items: end;

	padding:
		clamp(2rem, 4.5vw, 4.75rem)
		clamp(1rem, 2vw, 2rem);

	color: inherit;
	text-decoration: none;
}

.ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
	grid-template-columns:
		minmax(8rem, 0.28fr)
		minmax(0, 1fr)
		minmax(12rem, 0.55fr)
		minmax(9rem, auto);
}

.ef-tech-explorer__meta {
	align-self: stretch;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--ef-space-5);
}

.ef-tech-explorer__index,
.ef-tech-explorer__category,
.ef-tech-explorer__action {
	font-family: var(--ef-font-mono);
	font-size: var(--ef-font-size-xs);
	letter-spacing: var(--ef-tracking-system);
	text-transform: uppercase;
}

.ef-tech-explorer__index {
	color: var(--ef-color-text-muted);
}

.ef-tech-explorer__category {
	color: var(--ef-accent);
}

.ef-tech-explorer__content {
	min-width: 0;
}

.ef-tech-explorer__title {
	max-width: 15ch;
	margin: 0;

	font-size: clamp(2rem, 4.6vw, 5rem);
	line-height: 0.96;
	letter-spacing: -0.045em;

	transition:
		transform var(--ef-duration-base) var(--ef-ease-standard),
		color var(--ef-duration-base) var(--ef-ease-standard);
}

.ef-tech-explorer__excerpt {
	max-width: 42rem;
	margin-top: var(--ef-space-4);

	color: var(--ef-color-text-muted);
	font-size: var(--ef-text-body-lg);
}

.ef-tech-explorer__media {
	border: 1px solid var(--ef-border-subtle);
	border-radius: var(--ef-radius-lg);
	background: var(--ef-surface-2);
	overflow: hidden;
}

.ef-tech-explorer__action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--ef-space-3);

	color: var(--ef-color-text-muted);
	white-space: nowrap;
}

.ef-tech-explorer__arrow {
	display: inline-block;
	font-size: 1.25rem;

	transform: translate(0, 0);

	transition:
		transform var(--ef-duration-fast) var(--ef-ease-standard),
		color var(--ef-duration-fast) var(--ef-ease-standard);
}

.ef-tech-explorer__item:hover .ef-tech-explorer__title,
.ef-tech-explorer__item:focus-within .ef-tech-explorer__title {
	transform: translateX(var(--ef-space-2));
}

.ef-tech-explorer__item:hover .ef-tech-explorer__arrow,
.ef-tech-explorer__item:focus-within .ef-tech-explorer__arrow {
	transform: translate(0.2rem, -0.2rem);
	color: var(--ef-accent);
}

/*
 * Component-responsive behavior.
 * This depends on the Explorer's own available width,
 * rather than viewport width.
 */

@container ef-technology-explorer (max-width: 56rem) {

	.ef-tech-explorer__link,
	.ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
		grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
	}

	.ef-tech-explorer__media {
		grid-column: 2;
	}

	.ef-tech-explorer__action {
		grid-column: 2;
		justify-content: flex-start;
	}
}

@container ef-technology-explorer (max-width: 38rem) {

	.ef-tech-explorer__link,
	.ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
		grid-template-columns: 1fr;
		gap: var(--ef-space-5);
	}

	.ef-tech-explorer__meta {
		flex-direction: row;
	}

	.ef-tech-explorer__media,
	.ef-tech-explorer__action {
		grid-column: auto;
	}

	.ef-tech-explorer__title {
		max-width: 12ch;
	}

	.ef-tech-explorer__item:hover .ef-tech-explorer__title,
	.ef-tech-explorer__item:focus-within .ef-tech-explorer__title {
		transform: none;
	}
}

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

	.ef-tech-explorer__item,
	.ef-tech-explorer__item::before,
	.ef-tech-explorer__title,
	.ef-tech-explorer__arrow {
		transition: none !important;
		transform: none !important;
	}
}



/* ==========================================================
   A2R — TECHNOLOGY EXPLORER VISUAL REFINEMENT

   High-authority institutional technology index.

   Scope:
   - presentation only
   - no Core ownership
   - no content ownership
   - no database dependency
   - preserves optional visual architecture
   ========================================================== */

.ef-tech-explorer {
        position: relative;
        width: 100%;
}

/*
 * Each technology behaves as an architectural band rather
 * than as a conventional content card.
 */
.ef-tech-explorer__item {
        isolation: isolate;
}

.ef-tech-explorer__link {
        position: relative;

        grid-template-columns:
                clamp(6.5rem, 11vw, 10rem)
                minmax(0, 1fr)
                minmax(10rem, 0.24fr);

        min-height: clamp(18rem, 27vw, 27rem);

        gap: clamp(2rem, 5vw, 6rem);
        align-items: stretch;

        padding:
                clamp(3rem, 6vw, 6.5rem)
                clamp(0.5rem, 1.5vw, 1.5rem);
}

/*
 * Technical index occupies its own architectural axis.
 */
.ef-tech-explorer__meta {
        position: relative;

        align-self: stretch;
        justify-content: flex-start;

        padding-top: 0.35rem;
}

.ef-tech-explorer__meta::after {
        content: "";

        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;

        width: 1px;

        background: linear-gradient(
                180deg,
                var(--ef-border-accent),
                var(--ef-border-subtle) 38%,
                transparent 100%
        );

        opacity: 0.7;
}

.ef-tech-explorer__index {
        font-size: clamp(
                var(--ef-font-size-xs),
                0.8vw,
                var(--ef-font-size-sm)
        );

        letter-spacing: 0.14em;
}

.ef-tech-explorer__category {
        margin-top: auto;
        padding-right: var(--ef-space-5);

        line-height: 1.4;
}

/*
 * Main technology identity.
 */
.ef-tech-explorer__content {
        align-self: center;

        display: flex;
        flex-direction: column;
        justify-content: center;

        max-width: 58rem;
}

.ef-tech-explorer__title {
        max-width: 12ch;

        font-size: clamp(3rem, 6.25vw, 6.75rem);
        line-height: 0.88;
        letter-spacing: -0.06em;

        text-wrap: balance;
}

.ef-tech-explorer__excerpt {
        max-width: 38rem;

        margin-top: clamp(
                var(--ef-space-5),
                2vw,
                var(--ef-space-7)
        );

        font-size: clamp(1rem, 1.35vw, 1.25rem);
        line-height: 1.55;
}

/*
 * Action becomes a deliberate terminal column rather than
 * visually competing with the technology identity.
 */
.ef-tech-explorer__action {
        align-self: end;
        justify-self: end;

        padding-bottom: 0.35rem;

        font-size: var(--ef-font-size-xs);
        letter-spacing: 0.12em;
}

.ef-tech-explorer__arrow {
        font-size: 1.5rem;
}

/*
 * Quiet technical coordinate marker.
 * Purely visual; no semantic content.
 */
.ef-tech-explorer__item::after {
        content: "";

        position: absolute;
        right: clamp(0.5rem, 1.5vw, 1.5rem);
        top: clamp(2rem, 4vw, 3.5rem);

        width: clamp(2.5rem, 5vw, 5rem);
        height: 1px;

        background: var(--ef-border-subtle);

        transform-origin: right center;

        transition:
                width var(--ef-duration-base) var(--ef-ease-standard),
                background-color var(--ef-duration-base) var(--ef-ease-standard);

        pointer-events: none;
}

.ef-tech-explorer__item:hover::after,
.ef-tech-explorer__item:focus-within::after {
        width: clamp(4rem, 8vw, 8rem);
        background: var(--ef-accent);
}

/*
 * Interaction remains restrained.
 */
.ef-tech-explorer__item:hover .ef-tech-explorer__title,
.ef-tech-explorer__item:focus-within .ef-tech-explorer__title {
        transform: translateX(
                clamp(
                        var(--ef-space-2),
                        0.8vw,
                        var(--ef-space-4)
                )
        );
}

/*
 * Optional visual mode remains supported.
 */
.ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
        grid-template-columns:
                clamp(6.5rem, 10vw, 9rem)
                minmax(0, 1fr)
                minmax(15rem, 0.52fr)
                minmax(8rem, 0.18fr);
}

.ef-tech-explorer__item.has-visual .ef-tech-explorer__media {
        align-self: center;
}

/*
 * Component responsive composition.
 */
@container ef-technology-explorer (max-width: 64rem) {

        .ef-tech-explorer__link,
        .ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
                grid-template-columns:
                        clamp(5.5rem, 12vw, 8rem)
                        minmax(0, 1fr);

                min-height: auto;

                gap: clamp(1.5rem, 4vw, 3rem);
        }

        .ef-tech-explorer__action,
        .ef-tech-explorer__media {
                grid-column: 2;
                justify-self: start;
        }

        .ef-tech-explorer__title {
                font-size: clamp(2.75rem, 8vw, 5.5rem);
        }
}

@container ef-technology-explorer (max-width: 40rem) {

        .ef-tech-explorer__link,
        .ef-tech-explorer__item.has-visual .ef-tech-explorer__link {
                grid-template-columns: 1fr;

                padding-block:
                        clamp(2.5rem, 10vw, 4rem);
        }

        .ef-tech-explorer__meta {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;

                padding: 0 0 var(--ef-space-4);
        }

        .ef-tech-explorer__meta::after {
                top: auto;
                right: 0;
                bottom: 0;
                left: 0;

                width: auto;
                height: 1px;
        }

        .ef-tech-explorer__category {
                margin-top: 0;
                padding-right: 0;
        }

        .ef-tech-explorer__content {
                align-self: auto;
        }

        .ef-tech-explorer__title {
                max-width: 11ch;

                font-size: clamp(2.6rem, 13vw, 4.5rem);
                line-height: 0.92;
        }

        .ef-tech-explorer__excerpt {
                font-size: 1rem;
        }

        .ef-tech-explorer__action,
        .ef-tech-explorer__media {
                grid-column: auto;
        }

        .ef-tech-explorer__item::after {
                display: none;
        }
}

/*
 * Accessibility remains authoritative.
 */
@media (prefers-reduced-motion: reduce) {

        .ef-tech-explorer__item::after {
                transition: none !important;
        }
}
