/* ==========================================================================
   FlowPC.nl — design system
   Dark, glassmorphic, gradient-accented theme built on top of Bootstrap 5's
   data-bs-theme="dark" primitives.
   ========================================================================== */

:root {
    --flow-bg: #0a0e17;
    --flow-bg-soft: #0d1220;
    --flow-surface: rgba(255, 255, 255, 0.045);
    --flow-surface-strong: rgba(255, 255, 255, 0.08);
    --flow-border: rgba(255, 255, 255, 0.09);
    --flow-cyan: #22d3ee;
    --flow-indigo: #6366f1;
    --flow-gradient: linear-gradient(135deg, var(--flow-cyan) 0%, var(--flow-indigo) 100%);
    --flow-gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    --flow-text-muted: rgba(255, 255, 255, 0.62);
    --flow-radius: 1rem;
    --flow-shadow-glow: 0 8px 30px rgba(34, 211, 238, 0.12), 0 8px 30px rgba(99, 102, 241, 0.10);
}

/* -------------------------------------------------------------------- */
/* Base                                                                  */
/* -------------------------------------------------------------------- */

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--flow-bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(ellipse 900px 500px at 100% 0%, rgba(99, 102, 241, 0.12), transparent 60%);
    background-attachment: fixed;
    color: rgba(255, 255, 255, 0.92);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .flow-heading {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
}

.text-muted-flow {
    color: var(--flow-text-muted) !important;
}

::selection {
    background: rgba(99, 102, 241, 0.35);
}

/* -------------------------------------------------------------------- */
/* Gradient text / accents                                              */
/* -------------------------------------------------------------------- */

.gradient-text {
    background: var(--flow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-dot::before {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background: var(--flow-gradient);
    margin-right: 0.4em;
    vertical-align: middle;
}

/* -------------------------------------------------------------------- */
/* Navbar — glass                                                       */
/* -------------------------------------------------------------------- */

.glass-nav {
    background: rgba(10, 14, 23, 0.72) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--flow-border);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
}

.brand-mark img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

.brand-tld {
    color: var(--flow-text-muted);
    font-weight: 500;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    position: relative;
    padding-block: 0.6rem;
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.navbar .nav-link.active {
    color: #fff !important;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--flow-gradient);
    border-radius: 2px;
}

.dropdown-menu {
    background: rgba(15, 20, 32, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--flow-border);
    border-radius: 0.85rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    margin: 0.1rem 0.3rem;
    width: calc(100% - 0.6rem);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--flow-surface-strong);
    color: #fff;
}

.dropdown-item.active {
    background: var(--flow-gradient-soft);
    color: #fff;
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */

.btn-flow {
    background: var(--flow-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 0.7rem;
    box-shadow: var(--flow-shadow-glow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-flow:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.22), 0 12px 34px rgba(99, 102, 241, 0.18);
}

.btn-flow-outline {
    background: transparent;
    border: 1px solid var(--flow-border);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 0.7rem;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.btn-flow-outline:hover {
    color: #fff;
    border-color: var(--flow-cyan);
    background: var(--flow-surface);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */

.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    z-index: 0;
    animation: flow-float 14s ease-in-out infinite;
}

.hero-blob--cyan {
    width: 420px;
    height: 420px;
    background: var(--flow-cyan);
    top: -140px;
    left: -100px;
}

.hero-blob--indigo {
    width: 460px;
    height: 460px;
    background: var(--flow-indigo);
    bottom: -180px;
    right: -120px;
    animation-delay: -6s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--flow-surface);
    border: 1px solid var(--flow-border);
    padding: 0.4rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.85rem;
    color: var(--flow-text-muted);
}

@keyframes flow-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.06); }
}

/* -------------------------------------------------------------------- */
/* Glass cards                                                          */
/* -------------------------------------------------------------------- */

.glass-card {
    background: var(--flow-surface);
    border: 1px solid var(--flow-border);
    border-radius: var(--flow-radius);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--flow-shadow-glow);
}

.glass-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: var(--flow-gradient-soft);
    color: var(--flow-cyan);
    font-size: 1.4rem;
}

/* Section framing */
.section-flow {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-flow--soft {
    background: var(--flow-bg-soft);
    border-top: 1px solid var(--flow-border);
    border-bottom: 1px solid var(--flow-border);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--flow-cyan);
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */

footer.flow-footer {
    background: var(--flow-bg-soft);
    border-top: 1px solid var(--flow-border);
    color: var(--flow-text-muted);
}

footer.flow-footer a {
    color: var(--flow-text-muted);
}

footer.flow-footer a:hover {
    color: var(--flow-cyan);
}

/* -------------------------------------------------------------------- */
/* Scroll reveal                                                        */
/* -------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-blob { animation: none; }
}

/* -------------------------------------------------------------------- */
/* Misc overrides                                                        */
/* -------------------------------------------------------------------- */

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--flow-border);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--flow-cyan);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

hr {
    border-color: var(--flow-border);
    opacity: 1;
}

/* -------------------------------------------------------------------- */
/* Shop — filter sidebar, product grid, pagination                      */
/* -------------------------------------------------------------------- */

.form-check-input {
    accent-color: var(--flow-cyan);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--flow-border);
}

.filter-group + .filter-group {
    border-top: 1px solid var(--flow-border);
    margin-top: 1.1rem;
    padding-top: 1.1rem;
}

.filter-group-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--flow-text-muted);
    margin-bottom: 0.65rem;
}

.filter-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.filter-checkbox-list::-webkit-scrollbar {
    width: 6px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--flow-surface-strong);
    border-radius: 4px;
}

.product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    background: var(--flow-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flow-cyan);
    font-size: 2rem;
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.price-old {
    font-size: 0.85rem;
    color: var(--flow-text-muted);
    text-decoration: line-through;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

button.product-card-image {
    display: flex;
    font: inherit;
    text-align: inherit;
    width: 100%;
}

.stock-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50rem;
}

.stock-badge--in {
    background: rgba(34, 211, 238, 0.15);
    color: var(--flow-cyan);
}

.stock-badge--out {
    background: rgba(255, 255, 255, 0.08);
    color: var(--flow-text-muted);
}

.price-tag {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
}

/* htmx sets this class on the request's indicator element while in-flight */
.htmx-indicator {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
    opacity: 1;
}

#product-grid.htmx-request {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.pagination .page-link {
    background: var(--flow-surface);
    border: 1px solid var(--flow-border);
    color: rgba(255, 255, 255, 0.85);
}

.pagination .page-link:hover {
    background: var(--flow-surface-strong);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--flow-gradient);
    border-color: transparent;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.25);
}

/* -------------------------------------------------------------------- */
/* Dual-handle price range slider                                       */
/* -------------------------------------------------------------------- */

.price-slider-value {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: #fff;
}

.price-slider-track {
    position: relative;
    height: 4px;
    border-radius: 2px;
    background: var(--flow-surface-strong);
    margin: 0.5rem 0.15rem 1.1rem;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: var(--flow-gradient);
    border-radius: 2px;
}

.price-slider-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    height: 4px;
}

.price-slider-input::-moz-range-track {
    background: transparent;
    height: 4px;
    border: none;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--flow-indigo);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.price-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--flow-indigo);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------------- */
/* Booking — slot picker chips                                          */
/* -------------------------------------------------------------------- */

.slot-date-group + .slot-date-group {
    margin-top: 1.25rem;
}

.slot-date-heading {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: capitalize;
    margin-bottom: 0.6rem;
}

.slot-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.slot-chip input[type="radio"],
.slot-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-chip label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.slot-chip label:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.slot-chip input[type="radio"]:checked + label,
.slot-chip input[type="checkbox"]:checked + label {
    background: var(--flow-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--flow-shadow-glow);
}

.slot-chip input[type="radio"]:focus-visible + label,
.slot-chip input[type="checkbox"]:focus-visible + label {
    outline: 2px solid var(--flow-cyan);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------- */
/* Blog — feed items, type badges, filter tabs                          */
/* -------------------------------------------------------------------- */

.type-tab {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 50rem;
    border: 1px solid var(--flow-border);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.type-tab:hover {
    border-color: rgba(34, 211, 238, 0.4);
    color: #fff;
}

.type-tab.active {
    background: var(--flow-gradient);
    border-color: transparent;
    color: #fff;
}

.post-type-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-type-badge--work {
    background: var(--flow-gradient-soft);
    color: var(--flow-cyan);
}

.post-type-badge--news {
    background: rgba(251, 113, 133, 0.15);
    color: #fb7185;
}

.feed-date {
    font-size: 0.8rem;
    color: var(--flow-text-muted);
}

.feed-item {
    display: flex;
    gap: 1.5rem;
}

.feed-item-image {
    position: relative;
    flex: 0 0 240px;
    aspect-ratio: 4 / 3;
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--flow-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flow-cyan);
    font-size: 2rem;
}

.feed-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-count-badge {
    position: absolute;
    bottom: 0.55rem;
    right: 0.55rem;
    background: rgba(10, 14, 23, 0.72);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 767.98px) {
    .feed-item {
        flex-direction: column;
    }

    .feed-item-image {
        flex: none;
        width: 100%;
    }
}

/* -------------------------------------------------------------------- */
/* Blog — photo gallery + lightbox                                      */
/* -------------------------------------------------------------------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--flow-border);
    padding: 0;
    background: var(--flow-gradient-soft);
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0);
    color: #fff;
    opacity: 0;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.gallery-thumb:hover .gallery-thumb-overlay {
    opacity: 1;
    background: rgba(10, 14, 23, 0.35);
}

#galleryModalImage {
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--flow-border);
    background: rgba(10, 14, 23, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    z-index: 5;
    transition: all 0.15s ease;
}

.gallery-nav--prev {
    left: 0.5rem;
}

.gallery-nav--next {
    right: 0.5rem;
}

.gallery-nav:hover {
    background: var(--flow-gradient);
    border-color: transparent;
}

/* -------------------------------------------------------------------- */
/* Shop — cart, checkout, shipping options                              */
/* -------------------------------------------------------------------- */

.quick-add-btn {
    position: relative;
    z-index: 2;
}

.cart-count-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.5rem;
    background: var(--flow-gradient);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.cart-row--divider {
    border-bottom: 1px solid var(--flow-border);
}

.cart-row-image {
    width: 4.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 0.65rem;
    overflow: hidden;
    background: var(--flow-gradient-soft);
    color: var(--flow-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.cart-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row-qty {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.cart-row-qty input {
    width: 4rem;
}

.cart-row-total {
    min-width: 5rem;
    text-align: right;
}

@media (max-width: 767.98px) {
    .cart-row {
        grid-template-columns: 3.5rem 1fr;
        grid-template-areas:
            "image info"
            "qty qty"
            "total remove";
        row-gap: 0.5rem;
    }
    .cart-row-image { grid-area: image; }
    .cart-row-info { grid-area: info; }
    .cart-row-qty { grid-area: qty; }
    .cart-row-total { grid-area: total; text-align: left; }
    .cart-row-remove { grid-area: remove; justify-self: end; }
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--flow-border);
    background: var(--flow-surface);
    cursor: pointer;
    transition: all 0.15s ease;
}

.shipping-option:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.shipping-option input[type="radio"] {
    accent-color: var(--flow-cyan);
    flex: 0 0 auto;
}

.shipping-option:has(input[type="radio"]:checked) {
    border-color: transparent;
    background: var(--flow-gradient-soft);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.shipping-option-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.shipping-option-label {
    font-weight: 600;
    color: #fff;
}

.shipping-option-desc {
    font-size: 0.82rem;
    color: var(--flow-text-muted);
}

.shipping-option-price {
    flex: 0 0 auto;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.notice-accent {
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
    background: var(--flow-gradient-soft);
    border-left: 3px solid var(--flow-cyan);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
