/* Ruff Ryders Lux Blocks - front end + editor styles. The hero, bands, fleet and service blocks reuse the theme's compiled
   Tailwind classes; this file only adds what the original design had in JavaScript components or that is new. */

/* ---- looping background video: fades in once it is actually playing */
.rrlux-video { opacity: 0; transition: opacity 1s; }
.rrlux-video.is-playing { opacity: 1; }

/* ---- marquee speed override (Marquee block setting) */
.rrlux-marquee-custom .marquee-track { animation-duration: var(--rrlux-marquee, 55s); }

/* ---- liquid-metal call to action (the original used a WebGL shader; chrome-button.js mounts it, this is the no-JS / no-WebGL look) */
.rrlux-chrome { position: relative; display: inline-block; width: 142px; height: 46px; border-radius: 100px; vertical-align: middle;
	box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 36px 14px 0 rgba(0,0,0,.02), 0 20px 12px 0 rgba(0,0,0,.08), 0 9px 9px 0 rgba(0,0,0,.12), 0 2px 5px 0 rgba(0,0,0,.15);
	transition: box-shadow .15s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.34,1.56,.64,1); }
.rrlux-chrome:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 12px 6px 0 rgba(0,0,0,.05), 0 8px 5px 0 rgba(0,0,0,.1), 0 4px 4px 0 rgba(0,0,0,.15), 0 1px 2px 0 rgba(0,0,0,.2); }
.rrlux-chrome:active { transform: translateY(1px) scale(.98); }
.rrlux-chrome__metal { position: absolute; inset: 0; border-radius: 100px; overflow: hidden;
	background: linear-gradient(115deg, #cfcfcf 0%, #8c8c8c 18%, #f4f4f4 34%, #7b7b7b 52%, #e6e6e6 68%, #9a9a9a 84%, #d9d9d9 100%); background-size: 300% 300%; }
.rrlux-chrome__metal canvas { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; display: block !important; border-radius: 100px !important; }
.rrlux-chrome__face { position: absolute; inset: 2px; border-radius: 100px; background: linear-gradient(180deg, #202020 0%, #000 100%); pointer-events: none; }
.rrlux-chrome__link { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; border-radius: 100px; text-decoration: none; overflow: hidden; }
.rrlux-chrome__label { font-family: var(--font-sans, Montserrat, system-ui, sans-serif); font-size: 14px; font-weight: 500; color: #f2f2f2; text-shadow: 0 1px 2px rgba(0,0,0,.5); white-space: nowrap; letter-spacing: normal; text-transform: none; }
.rrlux-chrome__link:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
	@keyframes rrlux-metal { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
	.rrlux-chrome__metal { animation: rrlux-metal 6s linear infinite alternate; }
}
.rrlux-chrome-wrap { line-height: 0; }

/* ---- empty states (admins only) */
.rrlux-empty { margin: 0; padding: 1.25rem; border: 1px dashed rgba(19,19,19,.35); border-radius: .75rem; color: rgba(19,19,19,.7); font-size: .875rem; text-align: center; background: rgba(255,255,255,.6); }

/* ---- content grid (testimonials, team, partners, events, services, vehicles, posts) */
.rrlux-cg { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .rrlux-cg--cols-2, .rrlux-cg--cols-3, .rrlux-cg--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .rrlux-cg--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rrlux-cg--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rrlux-cg__item { display: flex; flex-direction: column; border: 1px solid var(--color-line, rgba(19,19,19,.1)); border-radius: 1rem; background: var(--color-card, #fff); padding: 1.5rem; box-shadow: var(--shadow-soft); }
.rrlux-cg__img { margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1rem 1rem 0 0; background: var(--color-charcoal, #ebebea); }
.rrlux-cg__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rrlux-cg__title { margin: 0 0 .35rem; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--color-bone, #131313); }
.rrlux-cg__text { margin: .5rem 0 0; font-size: .875rem; line-height: 1.7; color: var(--color-mute); }
.rrlux-cg__meta { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-faint); }
.rrlux-cg__name { margin: 1rem 0 .15rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--color-bone); }
.rrlux-cg__quote { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-style: italic; line-height: 1.35; color: var(--color-bone); }
.rrlux-cg__quote p { margin: 0 0 .75rem; }
.rrlux-cg--rrlux_partner { align-items: stretch; }
.rrlux-cg--rrlux_partner .rrlux-cg__item { align-items: center; justify-content: center; min-height: 7rem; }
.rrlux-cg__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-faint); font-family: var(--font-display); font-size: 1.25rem; text-decoration: none; }
.rrlux-cg__logo img { max-width: 100%; max-height: 4rem; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.rrlux-cg__logo:hover img { filter: none; opacity: 1; }

/* ---- stats */
.rrlux-stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); padding: 2rem 0; }
.rrlux-stats__item { text-align: center; }
.rrlux-stats__value { margin: 0; font-size: 3rem; line-height: 1; color: var(--color-bone); }
.rrlux-stats__label { margin: .5rem 0 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-faint); }

/* ---- editor preview wrapper */
.rrlux-editor-preview { position: relative; }
.rrlux-editor-preview .rr-reveal { opacity: 1 !important; transform: none !important; }
.rrlux-editor-preview .marquee-track { animation: none; }

/* ---- cookie notice (hidden until cookie.js decides it is needed) */
.rrlux-cookie { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 46rem; padding: .625rem; }
.rrlux-cookie[hidden] { display: none; }
@media (min-width: 40rem) { .rrlux-cookie { padding: 1rem; } }
.rrlux-cookie__card { display: flex; flex-direction: column; gap: .75rem; border: 1px solid var(--color-line); border-radius: 1rem; background: rgb(255 255 255 / .96); padding: .875rem 1rem; box-shadow: var(--shadow-lift); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 48rem) { .rrlux-cookie__card { flex-direction: row; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; } }
.rrlux-cookie__copy { min-width: 0; flex: 1; }
.rrlux-cookie__copy .eyebrow { font-size: .65rem; }
.rrlux-cookie__copy > div { margin-bottom: .25rem; }
.rrlux-cookie__text { margin: 0; font-size: .75rem; line-height: 1.55; color: var(--color-mute); }
.rrlux-cookie__text a { color: var(--color-accent-light); text-decoration: underline; text-underline-offset: 3px; }
.rrlux-cookie__text a:hover { color: var(--color-bone); }
.rrlux-cookie__actions { display: flex; flex-shrink: 0; flex-direction: row; gap: .5rem; }
.rrlux-cookie__actions button { min-height: 2.25rem; padding: .4rem 1rem; font-size: .65rem; }
@media (max-width: 30rem) { .rrlux-cookie__actions button { flex: 1; padding-inline: .5rem; } }
.rrlux-editor-preview .rrlux-cookie { position: relative; }
.rrlux-editor-preview .rrlux-cookie[hidden] { display: block; }
@media (prefers-reduced-motion: no-preference) {
	@keyframes rrlux-cookie-pop { from { opacity: 0; transform: translateY(1.5rem) scale(.98); } to { opacity: 1; transform: none; } }
	.rrlux-cookie:not([hidden]) { animation: rrlux-cookie-pop .6s cubic-bezier(.16, 1, .3, 1) both; }
}

/* ---- sound toggle lives at the bottom-right corner */
.wp-block-rrlux-sound-toggle button { left: auto; right: 1rem; }
@media (min-width: 40rem) { .wp-block-rrlux-sound-toggle button { right: 1.5rem; } }
