/* ============================================
   Quel Logiciel — Dark, unique casino guide
   quel-logiciel.com | 2026
   ============================================ */

:root {
    --ql-bg: #0a0e14;
    --ql-bg-card: #111820;
    --ql-bg-elevated: #161d28;
    --ql-border: rgba(255, 255, 255, 0.07);
    --ql-border-strong: rgba(255, 255, 255, 0.12);
    --ql-text: #e2e6ec;
    --ql-text-soft: #8b95a5;
    --ql-accent: #3b82f6;
    --ql-accent-hover: #60a5fa;
    --ql-gradient-start: #0f172a;
    --ql-gradient-mid: #1e293b;
    --ql-gradient-end: #0a0e14;
    --ql-glow: rgba(59, 130, 246, 0.15);
    --ql-font: 'Outfit', system-ui, sans-serif;
    --ql-font-head: 'Instrument Serif', Georgia, serif;
    --ql-radius: 12px;
    --ql-radius-sm: 8px;
    --ql-ease: cubic-bezier(0.33, 1, 0.68, 1);
    --ql-transition: 0.3s var(--ql-ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--ql-font);
    background: var(--ql-bg);
    color: var(--ql-text);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

body.ql-menu-open { overflow: hidden; }
body.ql-agegate-open { overflow: hidden; }

/* ========== Background: calm dark gradient + subtle glow ========== */
.ql-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ql-bg__base {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, #0b0f14 0%, #0f1419 35%, #0d1116 70%, #080b0e 100%);
}

.ql-bg__glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 60% at 50% -20%, rgba(30, 41, 59, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 85% 110%, rgba(15, 23, 42, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 35% at -10% 50%, rgba(20, 30, 48, 0.2) 0%, transparent 50%);
    animation: ql-bg-glow 25s ease-in-out infinite alternate;
}

@keyframes ql-bg-glow {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.ql-bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ql-header, .ql-section, .ql-footer { position: relative; z-index: 1; }

/* ========== Header ========== */
.ql-header {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ql-border);
    z-index: 100;
}

.ql-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ql-logo {
    font-family: var(--ql-font-head);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ql-text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.ql-nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.ql-nav__link {
    color: var(--ql-text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--ql-transition);
}

.ql-nav__link:hover { color: var(--ql-accent); }

.ql-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.ql-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ql-text);
    border-radius: 1px;
    transition: var(--ql-transition);
}

.ql-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ql-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ql-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ql-header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ql-bg-elevated);
    border-bottom: 1px solid var(--ql-border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
}

.ql-header__dropdown.is-open { display: flex; }

.ql-header__dropdown a {
    color: var(--ql-text);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ql-nav { display: none; }
    .ql-burger { display: flex; }
}

/* ========== 18+ Age gate modal ========== */
.ql-age-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ql-age-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ql-age-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.ql-age-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.ql-age-modal__box {
    position: relative;
    background: var(--ql-bg-card);
    border: 1px solid var(--ql-border-strong);
    border-radius: var(--ql-radius);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ql-age-modal__badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ql-accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.ql-age-modal__title {
    font-family: var(--ql-font-head);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ql-text);
    margin-bottom: 0.75rem;
}

.ql-age-modal__text {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ql-age-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ql-age-modal__actions .ql-btn { width: 100%; }

.ql-age-modal__under18 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ql-age-modal__under18[hidden] {
    display: none !important;
}

.ql-age-modal__under18.is-visible {
    visibility: visible;
    opacity: 1;
}

.ql-age-modal.is-under18 > .ql-age-modal__box { display: none; }
.ql-age-modal.is-under18 .ql-age-modal__under18 {
    display: flex !important;
    position: absolute;
    inset: 0;
}
.ql-age-modal.is-under18 .ql-age-modal__under18.is-visible { opacity: 1; visibility: visible; }

/* ========== Hero ========== */
.ql-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 380px;
    padding: 4rem 1.5rem 3.5rem;
    margin: 0;
    text-align: center;
    background-image: url("../images/hero-bg.jpg");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 var(--ql-radius) var(--ql-radius);
    overflow: hidden;
}

.ql-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.72) 0%, rgba(10, 14, 20, 0.88) 100%);
    border-radius: 0 0 var(--ql-radius) var(--ql-radius);
    pointer-events: none;
}

.ql-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    opacity: 1;
    animation: ql-hero-in 0.8s var(--ql-ease) both;
}

@keyframes ql-hero-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ql-hero__title {
    font-family: var(--ql-font-head);
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 400;
    color: var(--ql-text);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.ql-hero__sub {
    color: var(--ql-text-soft);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.ql-hero__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.ql-hero__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ql-text-soft);
    font-size: 0.95rem;
}

.ql-hero__icon { font-size: 1.1rem; }

/* ========== Section ========== */
.ql-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.ql-section.ql-inview {
    animation: ql-fade-up 0.6s var(--ql-ease) both;
}

.ql-platforms.ql-inview .ql-product { animation: ql-fade-up 0.5s var(--ql-ease) both; }
.ql-platforms.ql-inview .ql-product:nth-child(1) { animation-delay: 0.08s; }
.ql-platforms.ql-inview .ql-product:nth-child(2) { animation-delay: 0.16s; }
.ql-platforms.ql-inview .ql-product:nth-child(3) { animation-delay: 0.24s; }

@keyframes ql-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ql-section__head {
    margin-bottom: 2rem;
}

.ql-section__title {
    font-family: var(--ql-font-head);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--ql-text);
    margin-bottom: 0.35rem;
}

.ql-section__title--small {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.ql-section__sub {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
}

/* ========== Products (compact + expandable) ========== */
.ql-products {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ql-product {
    background: var(--ql-bg-card);
    border: 1px solid var(--ql-border);
    border-radius: var(--ql-radius);
    overflow: hidden;
    transition: border-color var(--ql-transition), box-shadow var(--ql-transition), transform var(--ql-transition);
}

.ql-product:hover {
    border-color: var(--ql-border-strong);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
    transition: border-color var(--ql-transition), box-shadow var(--ql-transition), transform var(--ql-transition);
}

.ql-product__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.ql-product__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ql-product__logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.ql-product__name-fallback {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ql-text);
}

.ql-product__toggle {
    font-family: var(--ql-font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ql-accent);
    background: transparent;
    border: 1px solid var(--ql-accent);
    border-radius: var(--ql-radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background var(--ql-transition), color var(--ql-transition);
}

.ql-product__toggle:hover {
    background: var(--ql-accent);
    color: #fff;
}

.ql-product__toggle[aria-expanded="true"] {
    background: var(--ql-accent);
    color: #fff;
}

.ql-product__toggle[aria-expanded="true"]::after {
    content: " ▲";
    font-size: 0.75em;
}

.ql-product__toggle:not([aria-expanded="true"])::after {
    content: " ▼";
    font-size: 0.75em;
}

.ql-product__details {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--ql-border);
}

.ql-product__details[hidden] {
    display: none !important;
}

.ql-product__details:not([hidden]) {
    display: block;
    padding-top: 1.25rem;
    animation: qlExpand 0.3s var(--ql-ease);
}

@keyframes qlExpand {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ql-product__bonus {
    font-weight: 600;
    color: var(--ql-text);
    margin-bottom: 0.5rem;
}

.ql-product__desc {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ql-product__rating {
    font-size: 0.85rem;
    color: var(--ql-text-soft);
    margin-bottom: 1rem;
}

.ql-product__details .ql-btn { margin-top: 0.25rem; }

/* ========== Buttons ========== */
.ql-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-family: var(--ql-font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ql-radius-sm);
    cursor: pointer;
    transition: background var(--ql-transition), color var(--ql-transition), border-color var(--ql-transition), transform 0.2s;
}

.ql-btn:hover { transform: translateY(-1px); }

.ql-btn--primary {
    background: var(--ql-accent);
    color: #fff;
    border: none;
}

.ql-btn--primary:hover {
    background: var(--ql-accent-hover);
    box-shadow: 0 6px 20px var(--ql-glow);
}

.ql-btn--outline {
    background: transparent;
    color: var(--ql-accent);
    border: 2px solid var(--ql-accent);
}

.ql-btn--outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* ========== News ========== */
.ql-news {
    text-align: center;
}

.ql-news__text {
    color: var(--ql-text-soft);
    margin-bottom: 1rem;
}

/* ========== Disclaimer & Responsible ========== */
.ql-disclaimer p,
.ql-responsible p {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ql-responsible__list {
    list-style: none;
    margin-bottom: 1rem;
}

.ql-responsible__list li {
    color: var(--ql-text-soft);
    margin-bottom: 0.35rem;
}

/* ========== Footer ========== */
.ql-footer {
    background: var(--ql-bg-card);
    border-top: 1px solid var(--ql-border);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 2rem;
}

.ql-footer__partners,
.ql-footer__responsible {
    max-width: 1100px;
    margin: 0 auto 2rem;
    text-align: center;
}

.ql-footer__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ql-text-soft);
    margin-bottom: 1rem;
}

.ql-footer__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.ql-footer__logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity var(--ql-transition);
}

.ql-footer__logos a:hover { opacity: 1; }

.ql-footer__logos img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.ql-footer__logos--casino img { max-height: 36px; }

.ql-footer__brand-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ql-text-soft);
}

.ql-footer__logos a:hover .ql-footer__brand-name { color: var(--ql-text); }

.ql-footer__legal {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ql-border);
}

.ql-footer__legal p {
    color: var(--ql-text-soft);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ql-footer__legal a {
    color: var(--ql-accent);
    text-decoration: none;
}

.ql-footer__legal a:hover { text-decoration: underline; }

.ql-footer__copyright {
    margin-top: 0.75rem;
    line-height: 1.6;
}

.ql-footer__age {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ql-text-soft);
    margin-top: 1rem;
}

/* ========== Policy / subpages ========== */
.ql-page {
    max-width: 680px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.ql-page__updated {
    font-size: 0.9rem;
    color: var(--ql-text-soft);
    margin-bottom: 0.5rem;
}

.ql-page__intro {
    color: var(--ql-text-soft);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.ql-page__block {
    margin-bottom: 2rem;
}

.ql-page__h2 {
    font-family: var(--ql-font);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ql-text);
    margin-bottom: 0.75rem;
}

.ql-page__block p {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.ql-page__address {
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.7;
    margin: 0.5rem 0 1rem;
}

.ql-page__address a {
    color: var(--ql-accent);
    text-decoration: none;
}

.ql-page__address a:hover { text-decoration: underline; }

.ql-page__list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
    color: var(--ql-text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

.ql-page__list li { margin-bottom: 0.25rem; }

.ql-page__list--links { list-style: none; padding-left: 0; }
.ql-page__list--links li { margin-bottom: 0.5rem; }

.ql-page__block a {
    color: var(--ql-accent);
    text-decoration: none;
}

.ql-page__block a:hover { text-decoration: underline; }

.ql-page__back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ql-border);
}
