/* ==========================================================================
   MINEFALL CLIENT - HUNGARIAN MINECRAFT RP CLIENT (MINEFALL.EU BRANDING)
   ========================================================================== */

:root {
    /* Brand Colors (Minefall.eu Cobalt Blue Theme) */
    --bg-main: hsl(0, 0%, 8%);            /* #141414 */
    --bg-surface: hsl(0, 0%, 12%);        /* #1f1f1f */
    --border-color: hsl(210, 15%, 18%);    /* #262a33 */
    --border-hover: rgba(59, 130, 246, 0.4);
    
    --primary: hsl(210, 100%, 50%);       /* Cobalt Blue #0080ff */
    --primary-glow: rgba(59, 130, 246, 0.6);
    --secondary: hsl(150, 100%, 40%);     /* Accent Green */

    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(0, 0%, 70%);
    --text-muted: hsl(0, 0%, 50%);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius: 0.375rem; /* 6px as on minefall.eu */
    --max-width: 1240px;
    --header-height: 80px;
    
    --transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border: 2px solid var(--bg-main);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

/* Section Divider */
.section-divider {
    height: 4px;
    width: 96px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 16px auto 0;
}

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

/* Buttons (Exactly as minefall.eu) */
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 30px var(--primary-glow);
    font-family: var(--font-sans);
}

.btn-primary:hover {
    background-color: hsl(210, 100%, 45%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid rgba(59, 130, 246, 0.5);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Glow effects */
.logo-glow {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.glow-blue {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(16px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-fall {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 100px;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)),
        url('assets/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.logo-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.hero-logo-text {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

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

/* Scroll Arrow Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.indicator-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.indicator-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-top: 8px;
}

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

/* ==========================================================================
   OVERVIEW & STATS SECTION
   ========================================================================== */

.overview-section {
    padding: 96px 0;
    background: linear-gradient(to bottom, hsl(0, 0%, 8%), hsl(0, 0%, 10%));
    border-top: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin: 0 auto 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: 96px 0;
    background-color: hsl(0, 0%, 10%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--border-hover);
}

.feature-icon-box {
    height: 48px;
    width: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-icon-box i {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   INSTALLATION SECTION
   ========================================================================== */

.install-section {
    padding: 96px 0;
    background-color: var(--bg-main);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   SYSTEM REQUIREMENTS
   ========================================================================== */

.reqs-section {
    padding: 96px 0;
    background-color: hsl(0, 0%, 10%);
    border-top: 1px solid var(--border-color);
}

.reqs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 64px;
}

.reqs-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
}

.reqs-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    color: var(--primary);
}

.reqs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reqs-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.req-label {
    color: var(--text-secondary);
}

.req-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   SHOWCASE SECTION
   ========================================================================== */

.showcase-section {
    padding: 96px 0;
    background: linear-gradient(to bottom, hsl(0, 0%, 10%), hsl(0, 0%, 8%));
    border-top: 1px solid var(--border-color);
}

.showcase-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 64px;
    border: 1px solid var(--border-color);
}

.showcase-image {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.8), transparent);
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.final-cta {
    padding: 96px 0;
    background-color: hsl(0, 0%, 10%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-title {
    margin-bottom: 16px;
}

.final-cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--bg-surface);
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    padding: 64px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-links-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-server-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-ip {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid hsl(210, 15%, 18%);
    padding-top: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: var(--transition);
    z-index: 90;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Spinner Animation for Download */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile responsive menu */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: var(--bg-main);
        border-left: 1px solid var(--border-color);
        padding: 100px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 8px 0;
    }

    .stats-grid, .steps-grid, .reqs-grid, .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
