/* ==========================================================================
   HUXO Brand Layer — logo palette (logo-showcase.php) + Kinetik Çarpışma loader
   Loaded after every theme / Elementor stylesheet.
   ========================================================================== */
:root {
    --huxo-bg: #06080d;
    --huxo-surface: #0b0d17;
    --huxo-surface-2: #11142a;
    --huxo-indigo: #4f46e5;
    --huxo-indigo-light: #818cf8;
    --huxo-primary: #6366f1;
    --huxo-deep: #2c265f;
    --huxo-night: #181438;
    --huxo-cyan: #00f0ff;
    --huxo-violet: #a855f7;
    --huxo-text-muted: #94a3b8;
    --huxo-line: rgba(129, 140, 248, 0.14);
    --huxo-gradient: linear-gradient(135deg, #6d66ff 0%, #4f46e5 40%, #a855f7 100%);
    --huxo-laser: linear-gradient(90deg, #00f0ff 0%, #ffffff 50%, #a855f7 100%);
}

/* WordPress' base flex/grid layout rules (kept identical to before; layout styles are disabled in functions.php) */
:where(.is-layout-flex) {
	gap: 0.5em;
}
:where(.is-layout-grid) {
	gap: 0.5em;
}
body .is-layout-flex {
	display: flex;
}
.is-layout-flex {
	flex-wrap: wrap;
	align-items: center;
}
.is-layout-flex > :is(*, div) {
	margin: 0;
}
body .is-layout-grid {
	display: grid;
}
.is-layout-grid > :is(*, div) {
	margin: 0;
}

/* WordPress' "classic theme" button defaults (dropped automatically once a theme.json exists) */
.wp-block-button__link {
	color: #fff;
	background-color: #32373c;
	border-radius: 9999px;
	box-shadow: none;
	text-decoration: none;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	font-size: 1.125em;
}
.wp-block-file__button {
	background: #32373c;
	color: #fff;
	text-decoration: none;
}

html,
body {
    background-color: var(--huxo-bg);
}

::selection {
    background: rgba(99, 102, 241, 0.45);
    color: #ffffff;
}

/* Logo images: SVG has a fixed 676×178 ratio, so give it an explicit width */
.logo-link img,
.footer-logo-container .logo-link img {
    width: 150px;
    max-width: none;
    height: auto;
}
.mobile-header .logo-link img,
.mobile-header-menu-container .logo-link img {
    width: 128px;
}

/* Italic accent letters in headings ("Br<em>a</em>nd") get the laser gradient */
.content-slider-item-heading em,
.content-slider-item-additional-heading em,
.elementor-heading-title em {
    background: var(--huxo-laser);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Primary buttons: indigo → violet with cyan hover glow */
.agencium-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-image: var(--huxo-gradient);
    border-color: transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.agencium-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.35), 0 10px 30px -8px rgba(0, 240, 255, 0.45);
    filter: brightness(1.08);
}

/* Slider dots / active states pick up the laser cyan */
.slider-dots .owl-dot.active,
.owl-dots .owl-dot.active span {
    border-color: var(--huxo-cyan);
    box-shadow: 0 0 18px -4px rgba(0, 240, 255, 0.6);
}

/* Decorative body lines */
.body-line {
    background-color: var(--huxo-line);
}

/* ==========================================================================
   Page loader — Kinetik Çarpışma & Lazer (port of buildCollisionTimeline)
   Phase 1 laser trace · Phase 2 pillar snap · Phase 3 slit + shockwave · Phase 4 wordmark
   ========================================================================== */
.page-loader-container {
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.18) 0%, rgba(6, 8, 13, 0) 55%), var(--huxo-bg);
}
.page-loader {
    width: min(420px, 72vw);
}
.page-loader-inner {
    position: relative;
    animation: none;
    -webkit-animation: none;
}
.huxo-loader-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.huxo-loader-svg .hl-p1,
.huxo-loader-svg .hl-p2,
.huxo-loader-svg .hl-shock,
.huxo-loader-svg .hl-let {
    transform-box: fill-box;
    transform-origin: center;
}

.huxo-loader-svg .hl-p1 { animation: hlSnapP1 0.7s cubic-bezier(0.34, 1.9, 0.64, 1) 0.6s both; }
.huxo-loader-svg .hl-p2 { animation: hlSnapP2 0.7s cubic-bezier(0.34, 1.9, 0.64, 1) 0.6s both; }

.huxo-loader-svg .hl-trace {
    stroke-dasharray: 438;
    animation: hlTrace 1.3s ease-in-out both;
}

.huxo-loader-svg .hl-slit {
    stroke-dasharray: 260;
    animation: hlSlit 0.8s ease-in-out 1s both, hlSlitPulse 1.6s ease-in-out 2.2s infinite;
}

.huxo-loader-svg .hl-shock {
    animation: hlShock 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both;
}

.huxo-loader-svg .hl-let { animation: hlLetter 0.6s cubic-bezier(0.34, 1.6, 0.64, 1) both; }
.huxo-loader-svg .hl-let:nth-child(1) { animation-delay: 1.3s; }
.huxo-loader-svg .hl-let:nth-child(2) { animation-delay: 1.39s; }
.huxo-loader-svg .hl-let:nth-child(3) { animation-delay: 1.48s; }
.huxo-loader-svg .hl-let:nth-child(4) { animation-delay: 1.57s; }

@keyframes hlSnapP1 {
    from { opacity: 0; transform: translate(-55px, -55px) scale(0.88); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes hlSnapP2 {
    from { opacity: 0; transform: translate(55px, 55px) scale(0.88); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes hlTrace {
    0%   { stroke-dashoffset: 438; opacity: 1; }
    73%  { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes hlSlit {
    from { stroke-dashoffset: 260; opacity: 0; }
    to   { stroke-dashoffset: -260; opacity: 1; }
}
@keyframes hlSlitPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
@keyframes hlShock {
    from { opacity: 0.95; transform: scale(0.11); stroke-width: 3.5; }
    to   { opacity: 0; transform: scale(1); stroke-width: 0.5; }
}
@keyframes hlLetter {
    from { opacity: 0; transform: translateY(30px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .huxo-loader-svg * { animation: none !important; }
    .huxo-loader-svg .hl-trace,
    .huxo-loader-svg .hl-shock { opacity: 0; }
}

/* Technology stack row (replaces demo partner logos) — Customizer → Ana Sayfa: Teknolojiler */
.huxo-tech-logo {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}
.huxo-tech-logo:hover {
    color: #ffffff;
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}
@media (max-width: 767px) {
    .huxo-tech-logo { font-size: 20px; }
}

/* Hero video button: custom image from the HUXO Hero block */
.agencium-video-button .video-button-bg[style*="--huxo-video-bg"]:before {
    background-image: var(--huxo-video-bg) !important;
}

/* Portfolio grid: keep the original square cards whatever the featured image ratio is */
.portfolio-grid-listing .portfolio-item-media .post-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Hero: vertical social list — 6 accounts fit, and it stays clear of the big headline */
.agencium-content-slider-widget .social-buttons .social-button {
    margin: 0 14px;
}
@media (min-width: 1200px) {
    .agencium-content-slider-widget .social-buttons {
        left: 6px;
    }
}
