/* ========== RESET / BASIS ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Cinzel", Georgia, "Times New Roman", serif;
    background-color: #17120c; /* donker bruin/steen */
    color: #dcdfe5;           /* licht zilver */
}

/* ========== HEADER / MENU ========== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: radial-gradient(circle at top, #4a3624 0%, #17120c 60%);
    border-bottom: 1px solid #7e5a35;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Playercount badge */

.player-count {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f0c775;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(240, 199, 117, 0.6);
    background: rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

/* logo img blijft bestaan voor als je het ooit opnieuw gebruikt */
.logo img {
    height: 52px;
    object-fit: contain;
}

/* menu */

.menu {
    position: relative;
    display: flex;
    align-items: center;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #dcdfe5;             /* zilver */
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease;
}

.menu ul li a:hover,
.menu ul li a.active {
    border-color: #f0c775;      /* goud rand */
    background: linear-gradient(135deg, #5b4027, #3b2919);
    color: #ffffff;
    transform: translateY(-1px);
}

.menu ul li a.play-link {
    border-color: #f0c775;
    background: linear-gradient(135deg, #c7963e, #8a6127);
    color: #24160c;
    font-weight: 700;
}

/* Hamburger button (desktop: hidden) */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-right: 10px;
    background: transparent;
    border-radius: 999px;
    border: 1px solid rgba(240, 199, 117, 0.6);
    padding: 6px 8px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #f0c775;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open {
    background: rgba(0, 0, 0, 0.6);
}

.menu-toggle.open span {
    transform: none;
    opacity: 1;
}

.menu-toggle:hover span,
.menu-toggle.open span {
    box-shadow: 0 0 6px rgba(240, 199, 117, 0.8);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column; /* zorgt dat alles verticaal stapelt */
}

.client-scale {
    position: relative;
    width: 100%;
    height: 100%;
}


/* Play page: hero in één kolom i.p.v. twee */
.play-page .play-hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-page .play-hero .hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

/* Bredere client */
.play-page .client-container {
    margin: 2rem auto 2rem;
    max-width: 1000px;
    background: ##503a24f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.play-page .client-scale {
    width: 100%;
}

.play-page #clientFrame {
    display: block;
    width: 100%;
    height: 690px;
    border: 0;
}

@media (max-width: 1024px) {
    .play-page #clientFrame {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .play-page #clientFrame {
        height: 420px;
    }
}

/* Info onder de client */
.play-info {
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    width: 100%;
}

.play-info-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile melding alleen op kleine schermen */
.play-page .mobile-notice {
    display: none;
    font-size: 0.85rem;
    text-align: center;
    margin: 0.75rem auto 0;
    max-width: 28rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .play-page .mobile-notice {
        display: block;
    }
}

.hero-rsps-casino {
    position: relative;
    flex: 1;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(circle at bottom, #b4823b 0%, #4f3723 35%, #17120c 80%);
}

.hero-rsps-casino::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/background.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;          
    opacity: 0.35;                   
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

.hero-rsps-casino::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

#bubble-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content {
    flex: 1 1 320px;
    max-width: 520px;
    text-align: center;
    padding: 30px 26px 28px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(80, 58, 36, 0.96), rgba(34, 23, 14, 0.98));
    border: 1px solid rgba(240, 199, 117, 0.55);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.95),
        0 0 22px rgba(240, 199, 117, 0.35);
}

/* logo centraal */

.hero-logo {
    width: 260px;
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.8));
}

/* h1 in zilver (voor SEO, visueel bescheiden) */

.hero-title {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #dcdfe5;    /* zilver */
    opacity: 0.9;
}

/* kleine tekst in goudtinten */

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #f0c775;    /* goudachtig */
}

.hero-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f6dda2;    /* iets lichter goud */
    margin-bottom: 20px;
}

/* knoppen */

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-button {
    display: inline-block;
    padding: 10px 26px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 199, 117, 0.85);
    background: rgba(0, 0, 0, 0.45);          /* subtiel donker vlak */
    color: #f6dda2;                            /* licht goud */
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.85);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

/* primaire CTA: volle gouden knop */
.cta-button.primary {
    background: linear-gradient(135deg, #f0c775, #b27b32);
    color: #24160c;       /* donkerbruin tekst */
    font-weight: 700;
}

/* secundaire CTA: transparanter, gouden tekst */
.cta-button.secondary {
    background: rgba(0, 0, 0, 0.35);
    color: #f0c775;
}

/* hover states */
.cta-button:hover {
    box-shadow: 0 0 22px rgba(240, 199, 117, 0.9);
    transform: translateY(-1px);
}

/* ========== DUELS CONTAINER ========== */

.hero-duels {
    text-align: left;
}

.duels-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    color: #f0c775;
}

.duels-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.duels-list li {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(240, 199, 117, 0.25);
}

.duel-names {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f6dda2;
}

.duel-details {
    font-size: 0.8rem;
    margin-top: 2px;
    color: #f0c775;
    opacity: 0.9;
}

.duels-footnote {
    font-size: 0.75rem;
    color: #dcdfe5;
    opacity: 0.7;
}

/* ========== PLAY PAGE SPECIFIEK ========== */

/* Hero op play-pagina mag wat breder zijn voor de client */
.play-page .hero-content {
    max-width: 1100px;
}

/* Container waar later de webclient in komt (iframe/canvas/java applet/...) */
.client-container {
    margin: 10px auto 0;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9; /* mooie verhouding voor client */
    background: radial-gradient(circle at top, #2a1b10, #050304);
    border-radius: 18px;
    border: 1px solid rgba(240, 199, 117, 0.8);
    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(240, 199, 117, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f0c775;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    padding: 10px;
}

/* Op kleinere schermen iets minder groot */
@media (max-width: 768px) {
    .play-page .hero-content {
        max-width: 100%;
    }

    .client-container {
        max-width: 100%;
        aspect-ratio: 16 / 10;
        font-size: 0.75rem;
    }
}


/* ========== FOOTER ========== */

footer {
    position: sticky;
    bottom: 0;
    z-index: 500;
    text-align: center;
    padding: 8px 20px;
    background: #17120c;
    border-top: 1px solid #7e5a35;
    color: #f0c775;
    font-size: 0.85rem;
}

/* Op ultrawide schermen: afbeelding volledig tonen en rest donker opvullen */
@media (min-aspect-ratio: 21/9) {
    .hero-rsps-casino::before {
        background-size: contain;     /* volledige afbeelding zichtbaar */
        background-position: top center;
        background-color: #17120c;    /* randen onder/naast afbeelding donker */
    }
}

/* ========== RESPONSIVE (HEADER + HERO) ========== */

@media (max-width: 900px) {
    .hero-inner {
        max-width: 100%;
    }
}

/* ========== STORE PAGE SPECIFIEK ========== */

.store-page .hero-rsps-casino {
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.store-page .hero-inner {
    align-items: flex-start;
}

.store-page .hero-content {
    text-align: left;
}

/* Kolommen: sidebar links, producten rechts */
.store-page .store-side {
    flex: 0 0 320px;
    max-width: 360px;
}

.store-page .store-main {
    flex: 1 1 420px;
    max-width: 720px;
}

.store-page .store-box + .store-box {
    margin-top: 14px;
}

/* Logo in sidebar */
.store-page .store-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-page .store-logo img {
    width: 190px;
    max-width: 80%;
}

/* Categories */

.store-page .store-categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.store-page .store-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(240, 199, 117, 0.25);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    text-decoration: none;
    color: #f6dda2;
}

.store-page .store-categories-list a:hover {
    border-color: #f0c775;
    background: radial-gradient(circle at top, rgba(80, 58, 36, 0.9), rgba(34, 23, 14, 0.98));
}

.store-page .badge {
    display: inline-block;
    min-width: 26px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(240, 199, 117, 0.5);
    text-align: center;
    font-size: 0.75rem;
    color: #f6dda2;
}

/* Panel / login boxes uit templates */

.store-page .panel {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    border: 1px solid rgba(240, 199, 117, 0.4);
    padding: 10px 12px;
    margin: 0;
}

.store-page .panel-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(240, 199, 117, 0.3);
    padding-bottom: 6px;
}

.store-page .panel-body {
    font-size: 0.85rem;
}

.store-page .form-control,
.store-page input[type="text"],
.store-page input[type="password"],
.store-page input[type="number"],
.store-page select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(240, 199, 117, 0.4);
    background: rgba(0, 0, 0, 0.65);
    color: #dcdfe5;
}

/* Buttons binnen store – zelfde look als CTA */

.store-page .btn,
.store-page button,
.store-page input[type="submit"] {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #f0c775;
    background: linear-gradient(135deg, #f0c775, #b27b32);
    color: #24160c;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease;
}

.store-page .btn:hover,
.store-page button:hover,
.store-page input[type="submit"]:hover {
    box-shadow: 0 0 18px rgba(240, 199, 117, 0.75);
    transform: translateY(-1px);
}

/* Product wrapper */

.store-page .products-wrap {
    margin-top: 18px;
}

/* Desktop: store hero centreren zoals home/play */
@media (min-width: 960px) {
    .store-page .hero-rsps-casino {
        /* zelfde als de gewone hero: geen extra top-padding,
           content gewoon in het midden */
        padding: 0 20px;
        align-items: center;
    }

    /* terug naar standaard (stretch) i.p.v. flex-start */
    .store-page .hero-inner {
        align-items: stretch;
    }
}


/* Responsive */

@media (max-width: 960px) {
    .store-page .hero-rsps-casino {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .store-page .store-side,
    .store-page .store-main {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

/* Store: log out / empty cart links duidelijk en in thema */
.store-page .side-links .side-link,
.store-page .side-links .side-link:visited {
    color: #f0c775;          /* goud */
    font-size: 0.8rem;
}

.store-page .side-links .side-link:hover {
    color: #fff2c4;          /* iets lichter goud bij hover */
}



@media (max-width: 768px) {
    header {
        padding: 8px 12px;
    }

    .player-count {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        padding: 3px 8px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobiel-menu: dropdown */
    .menu ul {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        flex-direction: column;
        gap: 10px;
        background: #17120c;
        border: 1px solid #7e5a35;
        border-radius: 12px;
        padding: 10px 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
        display: none;
        min-width: 160px;
    }

    .menu.open ul {
        display: flex;
    }

    .menu ul li a {
        width: 100%;
        text-align: right;
    }

    .hero-inner {
        padding: 18px 0;
        gap: 18px;
    }

    .hero-content {
        max-width: 100%;
        padding: 22px 18px 20px;
    }

    .hero-logo {
        width: 220px;
    }
}
