/*
Theme Name: MrG Neural Theme
Description: Zjednotená, moderná a interaktívna (Lego Block) téma pre MrG Ecosystem.
Version: 6.0
Author: AI & Jakub MrG
*/

:root {
    --bg-color: #000000;
    --text-color: #c9d1d9;
    --neon-cyan: #00f3ff;
    --neon-purple: #9d4edd;
    --neon-orange: #ffaa00;
}

body.mrg-neural-bg {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Base Layout Classes */
.mrg-body-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.mrg-main-content {
    min-height: 100vh;
    padding: 0;
    z-index: 10;
    position: relative;
    /* Pushes content below the fold so initially we only see the 3D network */
    margin-top: 100vh; 
    background-color: transparent; 
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.mrg-content-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 60px 100px 60px;
    color: #fff;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: left;
    box-sizing: border-box;
}

/* Skrytie duplicitného nadpisu z WordPress editora, aby svietil len ten 3D scrollovací */
.mrg-content-inner > h1:first-child,
.mrg-content-inner > h2:first-child { 
    display: none !important; 
}


.mrg-eco-wrapper {
    display: flex;
    min-height: 100vh;
    z-index: 10;
    position: relative;
}

.mrg-wip-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    z-index: 10;
    position: relative;
}

.mrg-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    z-index: 10;
    position: relative;
}

/* UI Elements */
.mrg-glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.mrg-btn-primary {
    background-color: var(--neon-cyan);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mrg-btn-primary:hover {
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Neural Canvas */
#mrg-neural-canvas, #mrg-neural-canvas-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Pozadie */
    pointer-events: none;
}

/* Floating Menu Items (DesktopUX.js overrides transforms) */
.mrg-primary-menu-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mrg-floating-menu-item {
    position: fixed;
    z-index: 5;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(69, 243, 255, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.1s ease-out;
}
.mrg-floating-menu-item a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mrg-floating-menu-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(69, 243, 255, 0.5);
    z-index: 6;
}

#mrg-bouncing-logo {
    display: none; /* We will use Three.js for the logo now */
}

/* Dynamic Scroll Title */
.mrg-dynamic-scroll-title {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--neon-cyan);
    animation: mrg-bounce 2s infinite;
    pointer-events: none;
    z-index: 5;
    width: 100%;
}
.mrg-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-cyan);
}
.mrg-scroll-arrow {
    font-size: 24px;
    margin-top: 5px;
}
@keyframes mrg-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Lego Utility Classes & Public Components */
.mrg-text-cyan { color: var(--neon-cyan) !important; text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.mrg-text-purple { color: var(--neon-purple) !important; text-shadow: 0 0 10px rgba(157, 78, 221, 0.4); }
.mrg-text-orange { color: var(--neon-orange) !important; text-shadow: 0 0 10px rgba(255, 170, 0, 0.4); }

.mrg-hero-banner {
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    border-color: rgba(0, 243, 255, 0.2);
}
.mrg-hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}
.mrg-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0.9;
}

.mrg-cta-gateway {
    padding: 50px 30px;
    margin-top: 60px;
    text-align: center;
    border-color: rgba(157, 78, 221, 0.3);
    background: rgba(157, 78, 221, 0.05);
}
.mrg-cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.mrg-cta-desc {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.85;
}

.mrg-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.mrg-card-item {
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.mrg-card-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

