/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0f1f;
    color: white;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 22px;
    color: #ff7a00;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff7a00;
}

/* ===== BUTTON ===== */
.btn-nav {
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.btn-nav:hover {
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.6);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 80px;
    position: relative;
}

/* VIDEO */
.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,15,31,0.95), rgba(10,15,31,0.2));
    z-index: -1;
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
}

.subtitle {
    color: #aaa;
}

.hero h1 {
    font-size: 80px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 30px;
    color: #ccc;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.primary {
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    color: white;
}

.secondary {
    border: 1px solid #ff7a00;
    color: white;
}

/* ===== FLOAT BOXES ===== */
.box {
    position: absolute;
    background: rgba(20, 25, 50, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    transition: 0.3s;
}

.box:hover {
    transform: translateY(-5px);
}

.box1 { top: 30%; right: 15%; }
.box2 { top: 50%; right: 25%; }
.box3 { bottom: 15%; right: 10%; }

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    width: 220px;
    max-height: 400px;
    overflow-y: auto;

    background: rgba(10, 15, 31, 0.95);
    border-radius: 10px;
    padding: 10px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 15px;
    color: #ccc;
    transition: 0.2s;
}

.dropdown-menu li:hover {
    background: rgba(255, 122, 0, 0.2);
    color: #ff7a00;
}

/* SCROLLBAR */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(#ff7a00, #a100ff);
    border-radius: 10px;
}

/* ===== STAFF ===== */
.staff-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    padding: 60px;
    background: radial-gradient(circle at top left, rgba(161,0,255,0.2), transparent 60%),
                radial-gradient(circle at bottom right, rgba(255,122,0,0.2), transparent 60%),
                #0a0f1f;
}

.staff-hero h1 {
    font-size: 90px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.staff-container {
    padding: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* CARD */
.staff-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(20, 25, 50, 0.7);
    transition: 0.3s;
}

.staff-card:hover {
    transform: translateY(-8px);
}

/* IMAGE */
.staff-card img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

/* ROLE */
.staff-card span {
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* ===== RULES HERO ===== */
.rules-hero {
    height: 45vh;
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;

    background: url("assets/rules.png") center right / cover no-repeat;
}

.rules-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,15,31,0.95), rgba(10,15,31,0.4));
}

.rules-content {
    position: relative;
    z-index: 2;
}

/* ===== RULES ===== */
.rules-container {
    display: flex;
    gap: 40px;
    padding: 80px;
}

.rules-main {
    flex: 3;
}

.rules-sidebar {
    flex: 1;
    position: sticky;
    top: 100px;
}

.rules-box {
    background: rgba(20, 25, 50, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,122,0,0.3);
    margin-bottom: 20px;
}

.rules-search {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111827;
    color: white;
    margin-bottom: 30px;
}

.rules-section {
    margin-bottom: 40px;
}

.rules-section h3 {
    color: #ff7a00;
    margin-bottom: 10px;
}

.rules-section li {
    margin: 8px 0;
    color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .box {
        display: none;
    }

    .rules-container {
        flex-direction: column;
    }
}

/* ===== RULES UPGRADE ===== */

/* MAIN SPACING */
.rules-container {
    display: flex;
    gap: 50px;
    padding: 100px;
}

/* SECTION */
.rules-section {
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(20, 25, 50, 0.4);
    border: 1px solid rgba(255, 122, 0, 0.15);
    transition: 0.3s;
}

/* HOVER EFFECT */
.rules-section:hover {
    transform: translateY(-5px);
    border-color: #ff7a00;
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.2);
}

/* TITLES */
.rules-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LIST */
.rules-section ul {
    padding-left: 20px;
}

.rules-section li {
    margin: 10px 0;
    color: #ccc;
    transition: 0.2s;
}

/* LIST HOVER */
.rules-section li:hover {
    color: #fff;
    transform: translateX(5px);
}

/* RULES BOX */
.rules-box {
    background: rgba(20, 25, 50, 0.6);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 122, 0, 0.3);
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.1);
}

/* SEARCH */
.rules-search {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #222;
    background: rgba(15, 20, 40, 0.9);
    color: white;
    margin-bottom: 40px;
    transition: 0.3s;
}

.rules-search:focus {
    outline: none;
    border-color: #ff7a00;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.3);
}

/* SIDEBAR */
.rules-sidebar {
    flex: 1;
    position: sticky;
    top: 120px;
    padding: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* SIDEBAR TITLE */
.rules-sidebar h4 {
    margin-bottom: 15px;
    color: #fff;
}

/* SIDEBAR LIST */
.rules-sidebar li {
    margin: 10px 0;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

/* SIDEBAR HOVER */
.rules-sidebar li:hover {
    color: #ff7a00;
    transform: translateX(5px);
}

/* HERO TEXT UPGRADE */
.rules-content h1 {
    font-size: 90px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rules-content h2 {
    color: #ccc;
}

/* MOBILE */
@media (max-width: 900px) {
    .rules-container {
        flex-direction: column;
        padding: 40px;
    }

    .rules-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}




/* ===== PREMIUM RULES DESIGN ===== */

.rules-container {
    display: flex;
    justify-content: center;
    padding: 100px 20px;
}

.rules-main {
    width: 100%;
    max-width: 900px;
}

/* ===== NOTICE ===== */
.rules-box {
    background: rgba(20, 25, 50, 0.7);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 122, 0, 0.3);
    margin-bottom: 40px;

    box-shadow: 0 0 30px rgba(255, 122, 0, 0.1);
    transition: 0.3s;
}

.rules-box:hover {
    box-shadow: 0 0 40px rgba(255, 122, 0, 0.3);
}

/* ===== CARDS ===== */
.rules-section {
    position: relative;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(15, 20, 40, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;

    transition: 0.4s;
}

/* GLOW BORDER */
.rules-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: 0.3s;
}

/* HOVER */
.rules-section:hover {
    transform: translateY(-6px) scale(1.01);
    background: rgba(20, 25, 50, 0.9);
}

.rules-section:hover::before {
    opacity: 1;
}

/* ===== TITLE ===== */
.rules-section h3 {
    font-size: 20px;
    margin-bottom: 15px;

    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== LIST ===== */
.rules-section ul {
    padding-left: 20px;
}

.rules-section li {
    margin: 10px 0;
    color: #bbb;
    transition: 0.2s;
}

/* HOVER TEXT */
.rules-section li:hover {
    color: #fff;
    transform: translateX(5px);
}

/* ===== HERO FIX ===== */
.rules-hero {
    height: 45vh;
    display: flex;
    align-items: center;
    padding: 60px;
    position: relative;

    background: url("assets/rules.png") center / cover no-repeat;
}

/* DARK FADE */
.rules-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,15,31,0.95), rgba(10,15,31,0.3));
}

.rules-content {
    position: relative;
    z-index: 2;
}

/* TITLE BIG */
.rules-content h1 {
    font-size: 90px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== SCROLL FADE ANIMATION ===== */
.rules-section {
    opacity: 0;
    transform: translateY(40px);
}

.rules-section.show {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s ease;
}

/* ===== TABS ===== */
.rules-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

/* BUTTON */
.tab-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(20, 25, 50, 0.5);
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

/* ACTIVE */
.tab-btn.active {
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    color: white;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.5);
}

/* HOVER */
.tab-btn:hover {
    color: white;
    transform: translateY(-2px);
}

/* CONTENT */
.tab-content {
    display: none;
}

/* ACTIVE CONTENT */
.tab-content.active {
    display: block;
}

/* TAB CONTENT */
.tab-content {
    display: none;
}

/* ACTIVE TAB */
.tab-content.active {
    display: block;
}

/* ===== SCROLLBAR ===== */

/* WIDTH */
::-webkit-scrollbar {
    width: 8px;
}

/* TRACK */
::-webkit-scrollbar-track {
    background: #0a0f1f;
}

/* HANDLE */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7a00, #a100ff);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(161, 0, 255, 0.4);
}

/* HOVER */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff9a3c, #c04dff);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ff7a00;
    border-radius: 10px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ff7a00 #0a0f1f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7a00, #a100ff);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0f1f;
}

/* dynamická farba */
::-webkit-scrollbar-thumb {
    background: var(--scroll-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-gradient);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
}

.profile-box img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

#hello-text {
    color: #aaa;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== ADMIN NÁBOR PAGE ===== */

.hero-banner {
    text-align: center;
    margin-top: 120px;
}

.glow-text {
    font-size: 60px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(161,0,255,0.4);
}

.subtitle {
    color: #aaa;
    margin-top: 10px;
    font-size: 16px;
}

/* CARD */
.card {
    margin-top: 50px;
    background: rgba(20, 25, 50, 0.7);
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(15px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

/* GLOW BORDER */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card:hover::before {
    opacity: 1;
}

/* TEXT */
.card h2 {
    margin-bottom: 10px;
    color: #ff7a00;
}

.card p {
    color: #ccc;
    margin: 6px 0;
}

/* STATUS */
.status {
    margin-top: 20px;
    font-weight: bold;
}

.status span {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0,255,136,0.6);
}

/* BUTTON */
.btn {
    margin-top: 25px;
    padding: 12px 25px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(161,0,255,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255,122,0,0.6);
}

/* CENTER */
.main-wrapper {
    display: flex;
    justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .glow-text {
        font-size: 40px;
    }

    .card {
        margin: 20px;
    }
}

.rules-section {
    background: rgba(20, 25, 50, 0.6);
    border: 1px solid rgba(255, 122, 0, 0.2);
    border-radius: 16px;
    padding: 25px 30px;
    backdrop-filter: blur(12px);
    transition: 0.3s;
    position: relative;
}

/* HOVER */
.rules-section:hover {
    transform: translateY(-5px);
    border-color: rgba(161, 0, 255, 0.5);
    box-shadow: 0 0 25px rgba(161, 0, 255, 0.2);
}

/* TITLE */
.rules-section h3 {
    color: #ff7a00;
    margin-bottom: 10px;
}

/* TEXT */
.rules-section li {
    color: #ccc;
    margin: 6px 0;
}

/* STATUS */
.rules-section p {
    color: #00ff88;
}

/* BUTTON */
.btn.primary {
    background: linear-gradient(45deg, #ff7a00, #a100ff);
    border-radius: 10px;
    padding: 12px 25px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn.primary:hover {
    box-shadow: 0 0 20px rgba(161, 0, 255, 0.6);
    transform: translateY(-2px);
}


/* ===== FIX NABOR PAGE ===== */

.rules-container {
    display: flex !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    height: auto !important;
    position: relative !important;
    top: 0 !important;
    overflow: visible !important;
}

.rules-main {
    display: block !important;
    width: 100%;
    max-width: 800px;
}

.rules-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 25px;
}

.rules-hero {
    height: 50vh !important;
}


/* ==================================================================================================================================================================================== */
/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form label {
    font-size: 14px;
    color: #aaa;
}

form input,
form textarea {
    background: rgba(20,25,50,0.6);
    border: 1px solid rgba(255,122,0,0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    outline: none;
}

form textarea {
    min-height: 100px;
    resize: none;
}

form input:focus,
form textarea:focus {
    border-color: #a100ff;
}

/* ===== FIX KLIKNUTIA ===== */

.rules-hero::before,
.rules-hero::after {
    pointer-events: none !important;
}

.rules-hero * {
    pointer-events: none;
}

.rules-container,
.rules-main,
.rules-section,
.rules-section * {
    pointer-events: auto !important;
}

/* FORCE BUTTON CLICK */
a, button {
    position: relative;
    z-index: 999;
}

.card::before {
    pointer-events: none;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
}

input, textarea {
    position: relative;
    z-index: 2;
}