
/* =========================================
   SLOT FRUTY - STYLE PRINCIPAL
========================================= */


/* COULEURS */

:root {

    --background: #100D18;
    --background-secondary: #1C1728;
    --background-card: #211A2E;

    --purple: #8739CF;
    --pink: #F044A0;
    --gold: #F2C45C;

    --text: #F5F1FA;
    --text-muted: #AAA0B9;

}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: var(--background);

    color: var(--text);

    font-family: Arial, sans-serif;

    min-height: 100vh;

}


/* =========================================
   HEADER
========================================= */

.header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 6%;

    background: var(--background-secondary);

    border-bottom: 1px solid
        rgba(135, 57, 207, 0.3);

    position: relative;

    z-index: 100;

}

.logo img {

    display: block;

    width: 155px;

    height: auto;

}


/* NAVIGATION */

.navigation {

    display: flex;

    align-items: center;

    gap: 30px;

}

.nav-link {

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: color 0.2s;

}

.nav-link:hover,
.nav-link.active {

    color: var(--gold);

}

.arrow {

    display: inline-block;

    margin-left: 4px;

    transition: transform 0.2s;

}


/* MENU DEROULANT */

.nav-dropdown {

    position: relative;

}

.dropdown-menu {

    position: absolute;

    top: calc(100% + 15px);

    left: 50%;

    transform: translateX(-50%) translateY(8px);

    width: 260px;

    padding: 8px;

    background: var(--background-card);

    border: 1px solid
        rgba(135, 57, 207, 0.4);

    border-radius: 10px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.2s;

}


/* OUVERTURE AU SURVOL */

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(0);

}

.nav-dropdown:hover .arrow {

    transform: rotate(180deg);

}


/* ELEMENTS DU MENU */

.dropdown-menu a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    border-radius: 7px;

    text-decoration: none;

    color: var(--text);

    transition: background 0.2s;

}

.dropdown-menu a:hover {

    background: rgba(135, 57, 207, 0.2);

}

.dropdown-menu a > span {

    font-size: 22px;

}

.dropdown-menu strong {

    display: block;

    font-size: 13px;

    margin-bottom: 4px;

}

.dropdown-menu small {

    display: block;

    color: var(--text-muted);

    font-size: 11px;

}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 490px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 45px 20px;

    background:

        radial-gradient(
            ellipse at center,
            rgba(135, 57, 207, 0.20),
            transparent 70%
        );

}

.hero-logo {

    width: min(460px, 85%);

    height: auto;

    margin-bottom: 25px;

    filter:
        drop-shadow(0 0 25px rgba(135, 57, 207, 0.2));

}

.hero h1 {

    color: var(--gold);

    font-size: clamp(26px, 4vw, 40px);

    margin-bottom: 15px;

}

.hero p {

    color: var(--text-muted);

    line-height: 1.7;

    max-width: 550px;

}


/* BOUTON PRINCIPAL */

.primary-button {

    display: inline-block;

    margin-top: 28px;

    padding: 13px 28px;

    border-radius: 8px;

    background: linear-gradient(
        135deg,
        var(--purple),
        #6525A8
    );

    color: white;

    text-decoration: none;

    font-weight: bold;

    box-shadow:
        0 0 20px rgba(135, 57, 207, 0.25);

    transition: 0.2s;

}

.primary-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 0 28px rgba(135, 57, 207, 0.5);

}


/* =========================================
   JEUX A LA UNE
========================================= */

.featured-games {

    padding: 65px 6% 80px;

}

.section-heading {

    text-align: center;

    margin-bottom: 40px;

}

.subtitle {

    color: var(--pink);

    letter-spacing: 3px;

    font-size: 11px;

    font-weight: bold;

}

.section-heading h2 {

    color: var(--gold);

    font-size: 32px;

    margin: 12px 0;

}

.section-heading p {

    color: var(--text-muted);

    font-size: 14px;

}


/* GRILLE */

.games-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 320px));

    justify-content: center;

    gap: 25px;

}


/* CARTES */

.game-card {

    display: block;

    overflow: hidden;

    background: var(--background-card);

    border: 1px solid
        rgba(135, 57, 207, 0.3);

    border-radius: 12px;

    text-decoration: none;

    color: var(--text);

    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;

}

.game-card:hover {

    transform: translateY(-6px);

    border-color: var(--purple);

    box-shadow:
        0 8px 30px rgba(135, 57, 207, 0.2);

}


/* VISUELS DES CARTES */

.game-image {

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;

}

.game-image h3 {

    font-size: 30px;

    letter-spacing: 4px;

    color: var(--gold);

    text-shadow:
        0 0 15px rgba(242, 196, 92, 0.5);

}

.plinko-image {

    background:
        radial-gradient(
            circle at center,
            #573083,
            #1C1728 75%
        );

}

.slots-image {

    background:
        radial-gradient(
            circle at center,
            #59302F,
            #1C1728 75%
        );

}

.table-image {

    background:
        radial-gradient(
            circle at center,
            #23513F,
            #1C1728 75%
        );

}


/* ETIQUETTES */

.game-tag {

    position: absolute;

    top: 12px;

    left: 12px;

    padding: 6px 10px;

    background: var(--purple);

    color: white;

    border-radius: 5px;

    font-size: 10px;

    font-weight: bold;

}


/* CONTENU DES CARTES */

.game-content {

    padding: 20px;

}

.game-content h3 {

    color: var(--gold);

    margin-bottom: 10px;

}

.game-content p {

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.6;

    min-height: 42px;

}

.game-link {

    display: inline-block;

    margin-top: 18px;

    color: var(--pink);

    font-size: 13px;

    font-weight: bold;

}


/* JEUX INDISPONIBLES */

.unavailable {

    opacity: 0.65;

    cursor: default;

}


/* LIEN CATALOGUE */

.catalog-link {

    display: block;

    width: fit-content;

    margin: 40px auto 0;

    color: var(--gold);

    text-decoration: none;

    font-weight: bold;

    transition: color 0.2s;

}

.catalog-link:hover {

    color: var(--pink);

}


/* =========================================
   FOOTER
========================================= */

footer {

    padding: 35px 20px;

    text-align: center;

    background: var(--background-secondary);

    border-top: 1px solid
        rgba(135, 57, 207, 0.25);

}

.footer-logo {

    width: 110px;

    height: auto;

    margin-bottom: 15px;

}

footer p {

    color: var(--text-muted);

    font-size: 12px;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 750px) {

    .header {

        flex-direction: column;

        gap: 18px;

    }

    .navigation {

        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;

    }

    .dropdown-menu {

        left: auto;

        right: -30px;

        transform: translateY(8px);

    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {

        transform: translateY(0);

    }

    .hero {

        min-height: 400px;

    }

    .featured-games {

        padding: 45px 5%;

    }

}

@media (max-width: 480px) {

    .navigation {

        gap: 13px;

    }

    .nav-link {

        font-size: 12px;

    }

    .games-grid {

        grid-template-columns: 1fr;

    }

}
