/* ====================================
   MAFIA EMPIRE - GLOBAL STYLES 2.0
   Dark, Immersive, Action-Focused Design
   ==================================== */

/* ====================================
   1. ROOT VARIABLES
   ==================================== */
:root {
    /* Dark Theme Colors */
    --blood-red: #dc2626;
    --dark-red: #7f1d1d;
    --bright-red: #ef4444;
    --gold: #fbbf24;
    --dark-gold: #d97706;
    
    /* Backgrounds */
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #242424;
    
    /* Text */
    --text-white: #ffffff;
    --text-light: #e5e5e5;
    --text-gray: #9ca3af;
    --text-dim: #6b7280;
    
    /* Borders */
    --border-dark: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-red: rgba(220, 38, 38, 0.5);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Oswald', 'Impact', sans-serif;
    
    /* Sizing */
    --radius: 8px;
    --radius-lg: 12px;
}

/* ====================================
   2. RESET & BASE
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-black);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Dark gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark) 100%);
    z-index: -2;
}

/* Animated grid pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ====================================
   3. TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.text-red { color: var(--blood-red); }
.text-gold { color: var(--gold); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }

/* ====================================
   4. CONTAINER & LAYOUT
   ==================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

/* ====================================
   5. HERO SECTION
   ==================================== */
.hero-modern {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="g" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23dc2626;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23000;stop-opacity:0"/></linearGradient></defs><rect x="100" y="200" width="150" height="400" fill="url(%23g)" opacity="0.5"/><rect x="300" y="150" width="120" height="450" fill="url(%23g)" opacity="0.4"/><rect x="500" y="100" width="180" height="500" fill="url(%23g)" opacity="0.6"/><rect x="750" y="180" width="140" height="420" fill="url(%23g)" opacity="0.5"/><rect x="950" y="140" width="160" height="460" fill="url(%23g)" opacity="0.4"/></svg>') no-repeat center;
    background-size: cover;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

/* ====================================
   6. LOGIN BOX
   ==================================== */
.login-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--blood-red), transparent, var(--blood-red));
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.login-box:hover::before {
    opacity: 0.3;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-dark);
}

.login-icon {
    width: 40px;
    height: 40px;
    background: var(--blood-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
}

.login-header h2 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ====================================
   7. FORMS
   ==================================== */
.form-group-compact {
    margin-bottom: 15px;
}

.form-input-modern {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-black);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--blood-red);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input-modern::placeholder {
    color: var(--text-dim);
}

.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.checkbox-modern input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blood-red);
}

/* ====================================
   8. BUTTONS
   ==================================== */
.btn-modern {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-red {
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--dark-red) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--blood-red);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--bg-black);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.4);
}

.divider-text {
    text-align: center;
    margin: 20px 0;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-dark);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ====================================
   9. HERO CONTENT
   ==================================== */
.hero-content-modern {
    padding-left: 40px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-red);
    color: var(--blood-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title-modern {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-buttons .btn-modern {
    width: auto;
    padding: 14px 30px;
}

/* ====================================
   10. STATS
   ==================================== */
.stats-row {
    display: flex;
    gap: 30px;
}

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

.stat-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blood-red);
}

.stat-info h4 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* ====================================
   11. FEATURES SECTION
   ==================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blood-red), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-red);
    background: rgba(220, 38, 38, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--dark-red) 100%);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ====================================
   12. CTA SECTION
   ==================================== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 100%);
    text-align: center;
    border-top: 1px solid var(--border-dark);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--blood-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* ====================================
   13. RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .login-box {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content-modern {
        padding-left: 0;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-modern {
        width: 100%;
    }
    
    .stats-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .hero-title-modern {
        font-size: 1.8rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* ====================================
   14. ANIMATIONS
   ==================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.8); }
}

.pulse { animation: pulse 2s infinite; }
.glow { animation: glow 2s infinite; }

/* ====================================
   15. SCROLLBAR
   ==================================== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 5px;
}

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