/* ARMA RP Landing Page Styles */

:root {
    --primary: #dc3545;
    --primary-dark: #b02a37;
    --primary-light: #ff4757;
    --secondary: #1a1a2e;
    --dark: #0f0f1a;
    --darker: #080810;
    --light: #f8f9fa;
    --text: #e0e0e0;
    --text-muted: #9ca3af;
    --accent: #ff6b6b;
    --success: #28a745;
    --warning: #ffc107;
    --blue: #3b82f6;
    --green: #10b981;
    --purple: #8b5cf6;
    --orange: #f59e0b;
    --cyan: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(220, 53, 69, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark) 0%, var(--secondary) 50%, var(--dark) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(220, 53, 69, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(220, 53, 69, 0.15);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    z-index: 999;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(220, 53, 69, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(220, 53, 69, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--light);
}

/* Features Section */
.features {
    background: rgba(26, 26, 46, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(15, 15, 26, 0.8);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(59, 130, 246, 0.2); color: var(--blue); }
.feature-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--green); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.2); color: var(--purple); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.2); color: var(--orange); }
.feature-icon.red { background: rgba(220, 53, 69, 0.2); color: var(--primary); }
.feature-icon.cyan { background: rgba(6, 182, 212, 0.2); color: var(--cyan); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* How to Start Section */
.how-to-start {
    background: transparent;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateY(-3px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: var(--light);
    color: var(--primary);
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RULES PAGE STYLES
   ============================================ */

.rules-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
}

.rules-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--light);
}

.rules-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.rules-section {
    padding: 40px 0 100px;
}

.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Rules Sidebar */
.rules-sidebar {
    position: sticky;
    top: 90px;
}

.rules-nav {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.rules-nav h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.rules-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.rules-nav-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--primary);
}

.rules-nav-item.active {
    background: rgba(220, 53, 69, 0.15);
    color: var(--primary);
}

.rules-nav-count {
    font-size: 0.8rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
}

/* Rules Main Content */
.rules-main {
    min-width: 0;
}

.rules-category {
    margin-bottom: 50px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
    color: var(--light);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rule Item */
.rule-item {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: rgba(220, 53, 69, 0.2);
}

.rule-item.important {
    border-left: 4px solid var(--warning);
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.05), transparent);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rule-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rule-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--light);
}

.rule-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rule-badge.important {
    background: var(--warning);
    color: var(--dark);
}

.rule-chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.rule-item.open .rule-chevron {
    transform: rotate(180deg);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rule-item.open .rule-content {
    max-height: none;
}

.rule-body {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.rule-body p {
    margin-bottom: 12px;
}

.rule-body p:last-child {
    margin-bottom: 0;
}

.rule-body ul,
.rule-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.rule-body li {
    margin-bottom: 8px;
}

.rule-body strong {
    color: var(--light);
}

.rule-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', monospace;
}

.rule-body del {
    color: var(--text-muted);
    opacity: 0.7;
}
.rule-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 12px 0;
}

/* No Rules Message */
.no-rules {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .rules-layout {
        grid-template-columns: 1fr;
    }

    .rules-sidebar {
        position: static;
    }

    .rules-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
    }

    .rules-nav h3 {
        width: 100%;
    }

    .rules-nav-item {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .rules-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .rule-header {
        padding: 16px 18px;
    }

    .rule-body {
        padding: 0 18px 18px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Server Restart Banner */
.server-restart-banner {
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    padding: 12px 0;
}

.restart-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.restart-banner-content svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.restart-banner-content strong {
    color: #fff;
}

/* ============================================
   Mods Page
   ============================================ */

.mods-hero {
    padding: 140px 0 40px;
    text-align: center;
}

.mods-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mods-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.mods-section {
    padding: 20px 0 80px;
}

.mods-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.mods-select-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mod-select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}

.mod-select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.mods-count {
    font-size: 14px;
    color: var(--text-muted);
}

.mods-download-selected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mods-download-selected:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mod-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mod-card:hover {
    border-color: rgba(220, 53, 69, 0.3);
    background: rgba(26, 26, 46, 0.9);
}

.mod-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mod-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.mod-info {
    flex: 1;
    min-width: 0;
}

.mod-name {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    word-break: break-all;
}

.mod-meta {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.mod-size,
.mod-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.btn-download {
    flex-shrink: 0;
    padding: 8px 12px !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mods-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
}

.mods-install-hint {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
}

.mods-install-hint-icon {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 1px;
}

.mods-install-hint-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.mods-install-hint-text strong {
    color: #fff;
    display: block;
    margin-bottom: 6px;
}

.mods-install-hint-text p {
    margin: 4px 0;
    color: var(--text-muted);
}

.mods-install-hint-text code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #f59e0b;
    word-break: break-all;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .mods-hero {
        padding: 120px 0 30px;
    }

    .mods-title {
        font-size: 1.8rem;
    }

    .mods-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mods-select-controls {
        justify-content: space-between;
    }

    .mods-download-selected {
        justify-content: center;
    }

    .mod-card {
        padding: 12px 14px;
    }

    .mod-meta {
        flex-direction: column;
        gap: 4px;
    }
}
