@import '/_content/Waves.Tooling.App.Core/css/fonts.css';
@import '/_content/Waves.Tooling.App.Components/css/waves-app-mudblazor.css';
@import '/_content/Waves.Tooling.App.Components/css/waves-app-component.css';

:root {
    --waves-borderradius-buttons: 20px;
    --waves-borderradius-cards: 20px;
    --waves-borderradius-content-section: 20px;
}

/* MudBlazor overrides */

/* =========================================================
   UNIVERSAL MudButton base — applies to filled/outlined/text
   No Class needed. Compound selectors beat MudBlazor's defaults.    
   ========================================================= */
.mud-button-root.mud-button {
    border-radius: var(--waves-borderradius-buttons);
    font-weight: 600;
    letter-spacing: .2px;
    text-transform: none; /* modern apps avoid ALL CAPS */
    transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}

/* MudToggleGroupItem uses button, but should not have the default border radius */
    .mud-button-root.mud-button.waves-toggle-group-item {
        border-radius: unset;
    }

.waves-ca-default-borderradius {
    border-radius: var(--waves-borderradius-buttons) !important;
}

/* Enforce big touch targets ONLY on touch devices,
   so dense desktop/web layouts stay compact. */
@media (pointer: coarse) {
    .mud-button-root.mud-button {
        min-height: 48px;
    }
}

/* ---- State animations ---- */
/* Press feedback — works on touch, no hover required */
.mud-button-root.mud-button:active {
    transform: scale(.97);
}

/* Hover lift only where a real pointer exists */
@media (hover: hover) {
    .mud-button-root.mud-button:hover {
        transform: translateY(-1px);
    }
}

/* Keyboard / a11y focus ring from your theme token */
.mud-button-root.mud-button:focus-visible {
    outline: 2px solid rgba(var(--mud-palette-primary-rgb), .6);
    outline-offset: 2px;
}

/* Disabled — flat, no motion */
.mud-button-root.mud-button:disabled,
.mud-button-root.mud-button.mud-disabled {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* ---- Per-variant drop shadow ---- */
/* Filled: consistent soft shadow that lifts on hover */
.mud-button-root.mud-button-filled {
    box-shadow: 0 2px 6px rgba(0,0,0,.14);
}

@media (hover: hover) {
    .mud-button-root.mud-button-filled:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }
}

/* Outlined & Text: flat by default, subtle lift on hover only.
   Delete this block if you want them to stay perfectly flat. */
@media (hover: hover) {
    .mud-button-root.mud-button-outlined:hover,
    .mud-button-root.mud-button-text:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,.10);
    }
}

/* ---- Accessibility: honor reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .mud-button-root.mud-button {
        transition: none;
    }

        .mud-button-root.mud-button:active,
        .mud-button-root.mud-button:hover {
            transform: none;
        }
}

/* =========================================================
   OPT-IN flair modifiers — add via Class="…" only where wanted
   (these layer on top of the universal base above)
   ========================================================= */
.waves-btn-gradient.mud-button-root {
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    color: var(--mud-palette-primary-text);
    box-shadow: 0 4px 14px rgba(var(--mud-palette-primary-rgb), .35);
}

    .waves-btn-gradient.mud-button-root:active {
        filter: brightness(.95);
    }

.waves-btn-pill.mud-button-root {
    border-radius: 999px;
    padding-inline: 28px;
}

.waves-btn-glass.mud-button-root {
    background: rgba(var(--mud-palette-surface-rgb), .55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--mud-palette-text-primary);
}

.waves-btn-sheen.mud-button-root {
    position: relative;
    overflow: hidden;
}

    .waves-btn-sheen.mud-button-root::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
        transform: translateX(-120%);
    }

    .waves-btn-sheen.mud-button-root:active::after {
        transform: translateX(120%);
        transition: transform .6s ease;
    }

/* END MudBlazor overrides */ 

/* Waves CA General Styling */
.waves-hero-dimming-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}
/* END Waves CA General Styling */

/* Waves CA Home Page - Authorized */
.waves-home-hero-section {
    position: relative;
    height: 220px;
    background-image: url('/_content/Waves.Tooling.App.Core/images/banners/site/jpg/site_banner_1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px; 
    width: 100%;
}

.waves-home-hero-content-container {
    position: relative;    
    z-index: 1;
    color: white;
}
/* END Waves CA Home Page - Authorized */

/* Media Queries for Browser Size */

/* --- Media quries for specific breakpoints sizes --- */
@media (width < 600px) {
    /* xs: 0 – 599.99px */
}

@media (600px <= width < 960px) {
    /* sm: 600 – 959.99px */
}

@media (960px <= width < 1280px) {
    /* md: 960 – 1279.99px */
}

@media (1280px <= width < 1920px) {
    /* lg: 1280 – 1919.99px */
}

@media (1920px <= width < 2560px) {
    /* xl: 1920 – 2559.99px */
}

@media (width >= 2560px) {
    /* xxl: 2560px+ */
}
/* --- Media quries for specific breakpoints sizes --- */

/* --- Cumulative Breakpoints (and under) --- */
@media (width < 960px) {
    /* sm and under: xs + sm (0 – 959.99px) */
}

@media (width < 1280px) {
    /* md and under: xs + sm + md (0 – 1279.99px) */
}

@media (width < 1920px) {
    /* lg and under: xs + sm + md + lg (0 – 1919.99px) */
}

@media (width < 2560px) {
    /* xl and under: xs + sm + md + lg + xl (0 – 2559.99px) */
}
/* --- END Cumulative Breakpoints (and under) --- */

/* END - Media Queries for Broser Size */




/* Book Wash Wizard Styling */

.waves-book-wash-sitestep-search {
    margin-left: var(--waves-card-list-carousel-arrow-width);
    margin-right: var(--waves-card-list-carousel-arrow-width);
}

.waves-book-wash-sitestep-location-unavailable {
    margin-left: var(--waves-card-list-carousel-arrow-width);
    margin-right: var(--waves-card-list-carousel-arrow-width);
}

/* END Book Wash Wizard Styling */


/* Dialog Styles */

.waves-add-new-payment-card-dialog {
    
}

/* END Dialog Styles */

/* BookingConfirmedDialog styling */

/* ── Success badge ─────────────────────────────────────────────── */
.bc-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.bc-success-ring {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
}

.bc-success-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--mud-palette-success);
    opacity: .25;
    animation: bc-pulse 1.8s ease-out .3s infinite;
}

.bc-success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mud-palette-success), var(--mud-palette-success-darken));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transform: scale(0);
    animation: bc-pop .55s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.bc-success-check {
    width: 44px;
    height: 44px;
}

    .bc-success-check path {
        stroke: #fff;
        stroke-width: 5;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 48;
        stroke-dashoffset: 48;
        animation: bc-draw .45s ease-out .4s forwards;
    }

/* ── Key facts strip ───────────────────────────────────────────── */
.bc-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.bc-fact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .bc-fact:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    }

/* ── Timeline ──────────────────────────────────────────────────── */
::deep .bc-timeline .mud-timeline-item {
    min-height: 56px;
}

/* ── Staggered fade-up entrance ────────────────────────────────── */
.bc-fade-up {
    opacity: 0;
    transform: translateY(14px);
    animation: bc-fade-up .5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes bc-pop {
    to {
        transform: scale(1);
    }
}

@keyframes bc-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes bc-pulse {
    0% {
        transform: scale(.85);
        opacity: .35;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes bc-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-success-pulse {
        animation: none;
        opacity: 0;
    }

    .bc-success-circle {
        animation: none;
        transform: scale(1);
    }

    .bc-success-check path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .bc-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* END BookingConfirmedDialog styling */

/* Loyalty Scheme */
.loyalty-title-icon {
    color: #f5a623;
    animation: star-pop 0.6s ease-out;
}

.loyalty-card {
    overflow: hidden;
    opacity: 0;
    animation: card-in 0.5s ease-out forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .loyalty-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    }

.loyalty-card-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: white;
}

.banner-earning {
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-primary-darken) 100%);
}

.banner-ready {
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
}

.text-white {
    color: #fff;
}

.opacity-80 {
    opacity: 0.8;
}

.loyalty-reward-chip {
    animation: pulse 1.6s ease-in-out infinite;
}

.loyalty-progress-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Conic-gradient progress ring */
.loyalty-progress-ring {
    --progress: 0;
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--mud-palette-primary) calc(var(--progress) * 1%), var(--mud-palette-lines-default) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring-fill 1s ease-out;
}

.loyalty-card-ready .loyalty-progress-ring {
    background: conic-gradient(var(--mud-palette-success) calc(var(--progress) * 1%), var(--mud-palette-lines-default) 0);
}

.loyalty-progress-inner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loyalty-balance {
    font-weight: 700;
    line-height: 1;
}

.loyalty-progress-detail {
    flex: 1;
}

.loyalty-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.loyalty-site-chip {
    transition: transform 0.15s ease;
}

    .loyalty-site-chip:hover {
        transform: scale(1.05);
    }

.loyalty-empty {
    text-align: center;
}

.loyalty-empty-icon {
    color: var(--mud-palette-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ring-fill {
    from {
        background: conic-gradient(var(--mud-palette-primary) 0%, var(--mud-palette-lines-default) 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes star-pop {
    0% {
        transform: scale(0) rotate(-45deg);
    }

    70% {
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}
/* END Loyalty Scheme */