/* ==========================================================================
   Novrid V2 Roleplay - Template Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-primary: #050608;
    --bg-secondary: #090b10;
    --bg-tertiary: #10131d;
    --accent-red: #ff1e42;
    --accent-red-rgb: 255, 30, 66;
    --accent-yellow: #ffaa00;
    --accent-yellow-rgb: 255, 170, 0;
    --text-main: #f5f6f9;
    --text-muted: #8c93a3;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --border-dark: #1e2230;
    --font-headers: 'Oxanium', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --box-shadow-neon: 0 0 15px rgba(255, 30, 66, 0.35);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin-top: 40px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

/* Gradient Text and Lines */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(var(--accent-red-rgb), 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-label {
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-yellow);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.accent-bar {
    width: 30px;
    height: 4px;
    background-color: var(--accent-red);
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    box-shadow: var(--box-shadow-neon);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Buttons System */
.btn {
    padding: 12px 28px;
    font-family: var(--font-headers);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--box-shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--accent-red-rgb), 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header Navigation & Brand Banner
   ========================================================================== */
.novrid-brand-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #050608;
    border-bottom: 1px solid rgba(var(--accent-red-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    z-index: 2000;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.novrid-brand-banner a {
    color: var(--accent-red);
    text-decoration: underline;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(var(--accent-red-rgb), 0.3);
}

.novrid-brand-banner a:hover {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(var(--accent-yellow-rgb), 0.3);
}

.main-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 6, 8, 0.85);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

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

.nav-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(var(--accent-red-rgb), 0.5));
}

.logo-text {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-headers);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--accent-red);
}

.btn-connect-nav {
    background: rgba(var(--accent-red-rgb), 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-connect-nav:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--box-shadow-neon);
}

.mobile-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.007) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.007) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.5;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.live-player-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff66;
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-family: var(--font-headers);
    font-size: 4.8rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hero-play {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--box-shadow-neon);
}

.btn-hero-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--accent-red-rgb), 0.6);
}

.btn-hero-discord {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid #5865F2;
    color: #5865F2;
}

.btn-hero-discord:hover {
    background: #5865F2;
    color: white;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* Quick Stats panel */
.hero-stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
    border-right: none;
}

.stat-val {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    display: block;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Factions Showcase Slider Styling
   ========================================================================== */
.faction-slider-wrapper {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.faction-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bg-primary));
    pointer-events: none;
}

.slide-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(16, 19, 29, 0.95), var(--bg-primary));
}

.slide-tag {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 20px;
}

.tag-police { background: rgba(0, 80, 255, 0.15); color: #2e8bfe; border: 1px solid #2e8bfe; }
.tag-medic { background: rgba(0, 255, 100, 0.15); color: #10ff66; border: 1px solid #10ff66; }
.tag-gang { background: rgba(255, 170, 0, 0.15); color: #ffaa00; border: 1px solid #ffaa00; }

.slide-content h3 {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-slide-action {
    color: var(--accent-red);
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.btn-slide-action i {
    transition: var(--transition-smooth);
}

.btn-slide-action:hover i {
    transform: translateX(6px);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 19, 29, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: var(--box-shadow-neon);
}

.arrow-prev { left: -24px; }
.arrow-next { right: -24px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dot {
    width: 24px;
    height: 6px;
    background: var(--border-dark);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--accent-red);
    width: 40px;
    box-shadow: var(--box-shadow-neon);
}

/* ==========================================================================
   News Cards Grid Styling
   ========================================================================== */
.news-section {
    background-color: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.news-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-red-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-tag-badge {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-update { background: rgba(255, 30, 66, 0.1); color: var(--accent-red); border: 1px solid var(--accent-red); }
.tag-event { background: rgba(255, 170, 0, 0.1); color: var(--accent-yellow); border: 1px solid var(--accent-yellow); }

.news-card h3 {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-text {
    color: var(--accent-red);
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.btn-text i {
    transition: var(--transition-smooth);
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Regelwerk (Accordion Dropdowns) Styling
   ========================================================================== */
.rules-accordion-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-accordion-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.rule-trigger {
    width: 100%;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--text-main);
}

.rule-number {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
    width: 50px;
    text-shadow: 0 0 8px rgba(var(--accent-red-rgb), 0.2);
}

.rule-title {
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 700;
    flex-grow: 1;
    text-transform: uppercase;
}

.rule-toggle-icon {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 30px 0 80px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rule-content ul {
    padding-left: 20px;
    list-style: square;
}

.rule-content li {
    margin-bottom: 8px;
}

/* Active panel states */
.rule-accordion-item.active {
    border-color: rgba(var(--accent-red-rgb), 0.3);
}

.rule-accordion-item.active .rule-toggle-icon {
    transform: rotate(45deg);
    color: var(--accent-red);
}

.rule-accordion-item.active .rule-content {
    max-height: 800px;
    padding-bottom: 24px;
    transition: max-height 0.4s ease-in-out;
}

/* ==========================================================================
   Discord Widget Card Styling
   ========================================================================== */
.discord-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-dark);
}

.discord-card-widget {
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
}

.discord-widget-header {
    background: rgba(88, 101, 242, 0.1);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discord-logo-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.discord-logo-brand i {
    font-size: 2.5rem;
    color: #5865f2;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.discord-logo-brand h4 {
    font-family: var(--font-headers);
    font-size: 1.15rem;
    font-weight: 700;
}

.discord-logo-brand span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.online-indicator {
    font-size: 0.85rem;
    color: #00ff66;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
    animation: pulse 1.6s infinite;
}

.discord-widget-body {
    padding: 30px;
}

.discord-welcome {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.discord-channels-mock {
    background: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.channel-item i {
    width: 16px;
    text-align: center;
}

.discord-widget-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

.btn-discord-join {
    background: #5865f2;
    color: white;
}

.btn-discord-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

/* ==========================================================================
   Modals (News Details & Connect Box)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 6, 0.85);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 2;
    transform: translateY(-30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-dialog {
    transform: translateY(0);
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-headers);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: var(--accent-red);
}

.modal-close {
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 28px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Connect Modal method blocks */
.modal-intro {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.connect-method {
    margin-bottom: 24px;
}

.connect-method:last-child {
    margin-bottom: 0;
}

.connect-method h4 {
    font-family: var(--font-headers);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--accent-yellow);
}

.copy-box {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    overflow: hidden;
}

.copy-box code {
    padding: 12px 16px;
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--accent-red);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.btn-copy {
    background: var(--bg-tertiary);
    border-left: 1px solid var(--border-dark);
    padding: 0 16px;
    color: var(--text-muted);
}

.btn-copy:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
}

.btn-direct-link {
    background: var(--accent-red);
    color: white;
    width: 100%;
    font-size: 0.95rem;
    border-radius: 4px;
    box-shadow: var(--box-shadow-neon);
}

.btn-direct-link:hover {
    box-shadow: 0 0 20px rgba(var(--accent-red-rgb), 0.5);
    transform: translateY(-2px);
}

/* Modal News Meta */
.modal-news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-news-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-news-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.modal-news-text p {
    margin-bottom: 14px;
}

/* ==========================================================================
   Footer Section Styling
   ========================================================================== */
.main-footer {
    background-color: #030406;
    border-top: 1px solid var(--border-dark);
    padding: 80px 0 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin: 0 auto 16px auto;
    filter: drop-shadow(0 0 6px rgba(var(--accent-red-rgb), 0.3));
}

.footer-title {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: var(--font-headers);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.studio-link {
    color: var(--accent-red);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--accent-red);
}

/* ==========================================================================
   Animations Keyframes
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(0, 255, 102, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Styling (Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.6rem;
    }
    
    .slide {
        grid-template-columns: 1fr;
        height: auto;
    }

    .faction-slider {
        height: auto;
    }

    .slide-image-wrapper {
        aspect-ratio: 16/9;
    }

    .slide-image-wrapper::after {
        width: 100%;
        height: 100px;
        background: linear-gradient(180deg, transparent, var(--bg-primary));
        top: auto;
        bottom: 0;
        right: auto;
        left: 0;
    }

    .slide-content {
        padding: 40px 24px;
    }

    .arrow-prev { left: 10px; }
    .arrow-next { right: 10px; }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats-panel {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
        padding-bottom: 12px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .rule-trigger {
        padding: 20px;
    }

    .rule-content {
        padding: 0 20px 0 20px;
    }

    .discord-card-widget {
        border-radius: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }

    /* Mobile Menu Navigation bar toggle */
    .mobile-toggle {
        display: block;
        z-index: 1010;
    }

    .nav-menu {
        position: fixed;
        top: 40px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 40px);
        background: var(--bg-secondary);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px;
        gap: 24px;
        transition: right 0.4s ease;
        z-index: 1005;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   Rules Page Specific Styles
   ========================================================================== */
.rules-hero-section {
    position: relative;
    padding: 140px 0 60px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.rules-hero-title {
    font-family: var(--font-headers);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(var(--accent-red-rgb), 0.3);
}

.rules-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.rules-search-box {
    max-width: 900px;
    margin: 0 auto 50px auto;
    position: relative;
}

.rules-search-box input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px 20px 56px;
    color: var(--text-main);
    font-size: 1.05rem;
    outline: none;
    font-family: inherit;
}

.rules-search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.rules-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.rules-sidebar-links {
    position: sticky;
    top: 140px;
}

.sidebar-links-wrapper {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
}

.sidebar-header {
    font-family: var(--font-headers);
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--accent-yellow);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 8px;
}

.sidebar-link {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
}

.sidebar-link i {
    width: 16px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    border-left: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: 700;
}

.rules-content-panels {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.rules-category-block {
    scroll-margin-top: 150px;
}

.category-title {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
}

@media (max-width: 992px) {
    .rules-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .rules-sidebar-links {
        display: none;
    }
}
