/* ========================================================= */
/* ================= GLOBAL BACKGROUND ===================== */
/* ========================================================= */

body {
    background: radial-gradient(circle at top, #0b1224, #020617 60%);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: -20%;
        background-image: url("../img/logo-home-page-1024x912.webp");
        background-size: cover;
        background-position: center;
        filter: blur(42px);
        opacity: 0.14;
        transform: translate3d(0,0,0) scale(1.15);
        z-index: -1;
        pointer-events: none;
    }

/* ================= RULES WRAPPER ================= */

.rules-wrapper {
    padding: 40px;
}

.rules-container {
    max-width: 1200px; /* 👈 ΙΔΙΟ FEEL ΜΕ BRANDS */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ================= HERO ================= */

.rules-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid #1f2937;
    border-radius: 22px;
}

    .rules-hero h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 900;
        color: #f5a524;
        letter-spacing: 1px;
    }

    .rules-hero p {
        margin-top: 10px;
        font-size: 14px;
        color: #9ca3af;
    }

/* ================= RULE CARD ================= */

.rules-card {
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid #1f2937;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,.6);
}

    .rules-card h2 {
        margin: 0 0 14px;
        font-size: 18px;
        font-weight: 900;
        color: #93c5fd;
    }

    .rules-card ul {
        padding-left: 18px;
        margin: 0;
    }

    .rules-card li {
        margin-bottom: 10px;
        font-size: 14px;
        color: #d1d5db;
        line-height: 1.6;
    }

/* ================= EXAMPLE BOX ================= */

.rules-example {
    margin-top: 16px;
    padding: 16px;
    background: #020617;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    font-size: 13px;
    color: #e5e7eb;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .rules-wrapper {
        padding: 20px;
    }

    .rules-hero h1 {
        font-size: 22px;
    }
}

/* ===== TOPBAR MOBILE MENU ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
}

/* Desktop */
.topbar nav {
    display: flex;
    gap: 26px;
}

/* Mobile */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .topbar nav {
            position: absolute;
            top: 64px;
            right: 16px;
            background: rgba(2,6,23,.95);
            border-radius: 16px;
            padding: 16px 20px;
            flex-direction: column;
            gap: 14px;
            display: none;
            box-shadow: 0 20px 60px rgba(0,0,0,.6);
            z-index: 999;
        }

            .topbar nav.open {
                display: flex;
            }

            .topbar nav a {
                font-size: 15px;
                white-space: nowrap;
            }
}

@media (max-width: 520px) {
    body::before {
        filter: blur(28px);
        opacity: 0.08;
    }
}

.logo {
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
}

    .logo span {
        color: #f5a524;
    }

/* Animation για την αρχική εμφάνιση (Fade In) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Εφαρμογή animation στα cards κατά το φόρτωμα */
.rules-card {
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

    /* Hover εφέ στο Card */
    .rules-card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: #f5a524; /* Το χρυσό της Φαμίλιας */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 165, 36, 0.2);
    }

/* Animation στα Nav Tabs (Home, Brands κλπ) */
.topbar nav a {
    position: relative;
    transition: color 0.3s ease;
}

    .topbar nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: #f5a524;
        transition: width 0.3s ease;
    }

    .topbar nav a:hover::after,
    .topbar nav a.active::after {
        width: 100%;
    }

    .topbar nav a:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

/* Animation στα bullets (li) όταν κάνεις hover στο card */
.rules-card:hover li {
    transform: translateX(5px);
    color: #fff;
}

.rules-card li {
    transition: all 0.3s ease;
}

/* Εφέ στο Hero H1 */
.rules-hero h1 {
    text-shadow: 0 0 20px rgba(245, 165, 36, 0.3);
    transition: transform 0.5s ease;
}

.rules-hero:hover h1 {
    transform: scale(1.05);
}