/**
 * Main Stylesheet - Risecity Roleplay UCP
 * Modern FiveM-style Dark Theme with Red-White Indonesia Accent
 */

/* =============== CSS Variables =============== */
:root {
    /* Primary Colors - Indonesia Theme */
    --primary-red: #DC2626;
    --primary-red-dark: #991B1B;
    --primary-red-light: #EF4444;
    --primary-white: #FFFFFF;
    
    /* Dark Theme Colors */
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1A1A1A;
    --bg-glass: rgba(17, 17, 17, 0.8);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --text-muted: #6B7280;
    
    /* Border Colors */
    --border-color: rgba(220, 38, 38, 0.3);
    --border-color-hover: rgba(220, 38, 38, 0.6);
    
    /* Gradients */
    --gradient-red: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    --gradient-dark: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Effects */
    --glow-red: 0 0 20px rgba(220, 38, 38, 0.5);
    --glow-red-strong: 0 0 40px rgba(220, 38, 38, 0.7);
    
    /* Font Families */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============== Global Styles =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

a {
    color: var(--primary-red-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-red);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-light);
}

/* =============== Navbar =============== */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
}

.navbar-nav .nav-link.btn-glow {
    background: var(--gradient-red);
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1.25rem;
}

.navbar-nav .nav-link.btn-glow:hover {
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

.dropdown-menu-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* =============== Hero Section =============== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg video,
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.7) 0%, 
        rgba(10, 10, 10, 0.5) 50%, 
        rgba(10, 10, 10, 0.9) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-red-light);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.hero-title span {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============== Buttons =============== */
.btn-primary-glow {
    background: var(--gradient-red);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-glow:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-red-strong);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: transparent;
    transition: var(--transition-normal);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
}

/* =============== Glass Cards =============== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--glow-red);
    transform: translateY(-5px);
}

.glass-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.glass-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-card-title i {
    color: var(--primary-red);
}

/* =============== Stats Section =============== */
.stats-section {
    padding: 5rem 0;
    background: var(--bg-darker);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-red);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== Features Section =============== */
.features-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title h2 span {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* =============== Rules Section =============== */
.rules-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.rule-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.rule-item:hover {
    border-color: var(--border-color-hover);
}

.rule-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}

.rule-content h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.rule-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* =============== Footer =============== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-subtitle {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--text-primary);
    border-color: var(--primary-red);
}

.server-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.server-info-box p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

/* =============== Forms =============== */
.form-control,
.form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-card);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* =============== Auth Pages =============== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-darker);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/auth-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.auth-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 500;
}

/* =============== Alerts =============== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #FCA5A5;
    border-left: 4px solid var(--primary-red);
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
    border-left: 4px solid #22C55E;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #FDE047;
    border-left: 4px solid #EAB308;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    border-left: 4px solid #3B82F6;
}

/* =============== Tables =============== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-darker);
    border-color: var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
}

.table tbody td {
    border-color: var(--border-color);
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(220, 38, 38, 0.05);
}

.table-dark {
    --bs-table-bg: var(--bg-card);
    --bs-table-border-color: var(--border-color);
}

/* =============== Badges =============== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

.badge.bg-danger {
    background: rgba(220, 38, 38, 0.2) !important;
    color: var(--primary-red-light);
    border: 1px solid var(--primary-red);
}

.badge.bg-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E;
    border: 1px solid #22C55E;
}

.badge.bg-warning {
    background: rgba(234, 179, 8, 0.2) !important;
    color: #EAB308;
    border: 1px solid #EAB308;
}

.badge.bg-info {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3B82F6;
    border: 1px solid #3B82F6;
}

/* =============== Progress Bars =============== */
.progress {
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-red);
    border-radius: 4px;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%) !important;
}

.progress-bar.bg-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
}

/* =============== Responsive =============== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-glow,
    .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}

/* =============== Animations =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-red), 0 0 10px var(--primary-red);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-red), 0 0 30px var(--primary-red);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered animations */
.animate-fadeInUp:nth-child(1) { animation-delay: 0.1s; }
.animate-fadeInUp:nth-child(2) { animation-delay: 0.2s; }
.animate-fadeInUp:nth-child(3) { animation-delay: 0.3s; }
.animate-fadeInUp:nth-child(4) { animation-delay: 0.4s; }
