@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --font: "Montserrat", sans-serif;
    --main-color: #5488e0;
    --bg-dark: #071225;
    --nav-bg: #1a1a1a;
    --card-bg: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --shadow-color: rgba(84, 136, 224, 0.2);
    --severe: #ff4444;
    --moderate: #ffaa44;
    --low: #44ff88;
}

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

body {
    background-color: var(--bg-dark);
    font-family: var(--font);
    color: var(--text-primary);
    overflow-x: hidden;
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--main-color);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--main-color);
    bottom: -150px;
    left: -100px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(84, 136, 224, 0.2);
    z-index: 1000;
    border-bottom: 1px solid rgba(84, 136, 224, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #5488e0;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.logo-text {
    color: #ffffff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #5488e0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar-item {
    font-family: var(--font);
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5488e0;
    transition: width 0.3s ease;
}

.navbar-item:hover,
.navbar-item.active {
    color: #ffffff;
}

.navbar-item:hover::after,
.navbar-item.active::after {
    width: 100%;
}

.nav-btn-join {
    padding: 0.7rem 1.8rem;
    background: #5488e0;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
}

.nav-btn-join:hover {
    background: #0090d9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-btn-join {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

.rules-container {
    padding-top: 5rem;
    position: relative;
    z-index: 1;
}

.rules-hero {
    background: linear-gradient(135deg, rgba(84, 136, 224, 0.15) 0%, rgba(84, 136, 224, 0.05) 100%);
    border-bottom: 2px solid rgba(84, 136, 224, 0.2);
    padding: 4rem 2rem;
    text-align: center;
}

.rules-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(84, 136, 224, 0.2);
    border: 1px solid var(--main-color);
    border-radius: 50px;
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.rules-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.rules-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-warning {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 170, 68, 0.1);
    border: 1px solid rgba(255, 170, 68, 0.3);
    border-radius: 10px;
    color: #ffaa44;
    font-weight: 600;
}

.rules-layout {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
}

.rules-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 6rem;
}

.sidebar-sticky h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.sidebar-menu {
    list-style: none;
    margin-bottom: 2rem;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 26, 0.4);
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(26, 26, 26, 0.7);
    border-left-color: var(--main-color);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: rgba(84, 136, 224, 0.15);
    border-left-color: var(--main-color);
    color: var(--main-color);
}

.sidebar-menu i {
    font-size: 1.1rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(84, 136, 224, 0.1) 0%, rgba(84, 136, 224, 0.05) 100%);
    border: 1px solid rgba(84, 136, 224, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-cta i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.sidebar-cta h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-btn {
    display: block;
    padding: 0.7rem 1.5rem;
    background: var(--main-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background: #6799ff;
    transform: translateY(-2px);
}

.rules-content {
    min-height: 100vh;
}

.rules-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(84, 136, 224, 0.2);
}

.section-icon {
    font-size: 2rem;
    color: var(--main-color);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.rule-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 136, 224, 0.15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(84, 136, 224, 0.15);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(84, 136, 224, 0.05);
    border-bottom: 1px solid rgba(84, 136, 224, 0.1);
}

.rule-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--main-color), #3366cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.rule-header h3 {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rule-severity {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-severity.severe {
    background: rgba(255, 68, 68, 0.2);
    color: var(--severe);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.rule-severity.moderate {
    background: rgba(255, 170, 68, 0.2);
    color: var(--moderate);
    border: 1px solid rgba(255, 170, 68, 0.3);
}

.rule-severity.low {
    background: rgba(68, 255, 136, 0.2);
    color: var(--low);
    border: 1px solid rgba(68, 255, 136, 0.3);
}

.rule-body {
    padding: 2rem;
}

.rule-definition {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rule-example {
    background: rgba(84, 136, 224, 0.08);
    border-left: 3px solid var(--main-color);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.rule-example strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.rule-example p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.rule-forbidden {
    background: rgba(255, 68, 68, 0.08);
    border-left: 3px solid var(--severe);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.rule-forbidden strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--severe);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.rule-forbidden ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.rule-forbidden li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rule-forbidden li::before {
    content: '•';
    color: var(--severe);
    font-weight: bold;
    margin-right: 0.5rem;
}

.warning-text {
    color: var(--severe);
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.rule-list {
    list-style: none;
    padding-left: 0;
}

.rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rule-list i {
    color: var(--main-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.limit-item {
    background: rgba(84, 136, 224, 0.08);
    border: 1px solid rgba(84, 136, 224, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.limit-item i {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.75rem;
}

.limit-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.limit-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
}

.addendum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.addendum-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 136, 224, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.addendum-card:hover {
    border-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(84, 136, 224, 0.15);
}

.addendum-card i {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    display: block;
}

.addendum-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.addendum-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.rules-footer {
    background: linear-gradient(135deg, rgba(84, 136, 224, 0.15) 0%, rgba(84, 136, 224, 0.05) 100%);
    border: 1px solid rgba(84, 136, 224, 0.2);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.rules-footer i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.rules-footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.rules-footer p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.staff-signature {
    font-style: italic;
    color: var(--main-color);
    font-weight: 600;
    margin-top: 1.5rem;
}

@media (max-width: 1200px) {
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        position: relative;
        top: 0;
    }

    .rules-sidebar {
        order: 2;
        margin-top: 3rem;
    }

    .rules-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .rules-hero h1 {
        font-size: 2.5rem;
    }

    .rules-hero p {
        font-size: 1rem;
    }

    .rule-header {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    .rule-header h3 {
        font-size: 1.2rem;
    }

    .rule-body {
        padding: 1.5rem;
    }

    .limits-grid,
    .addendum-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        display: none;
    }

    .sidebar-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .rules-hero h1 {
        font-size: 2rem;
    }

    .hero-warning {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .rule-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .rules-layout {
        padding: 2rem 1rem;
    }

    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}

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

.footer {
    background: #0f1420;
    border-top: 1px solid rgba(84, 136, 224, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #5488e0;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #5488e0;
}

.footer-brand p {
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(84, 136, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5488e0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 136, 224, 0.2);
}

.social-link:hover {
    background: #5488e0;
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #5488e0;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(84, 136, 224, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #7a8396;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}