/**
 * Evito Template - Main Stylesheet
 * Nightlife / Neon aesthetic for Joomla 6
 */

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

html, body {
    min-height: 100%;
    background: #0a0612;
    color: #e8dcff;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.evito-body {
    background:
        radial-gradient(ellipse at top left, rgba(168, 85, 247, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.12), transparent 50%),
        linear-gradient(180deg, #0a0612 0%, #14081f 50%, #0a0612 100%);
    position: relative;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--evito-primary, #a855f7);
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}
a:hover {
    color: var(--evito-accent, #ec4899);
    text-shadow: 0 0 8px currentColor;
}

::selection {
    background: var(--evito-primary, #a855f7);
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0612; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--evito-primary, #a855f7), var(--evito-accent, #ec4899));
    border-radius: 10px;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1em; color: #cbb8ea; }

.glow {
    color: var(--evito-primary, #a855f7);
    text-shadow:
        0 0 10px var(--evito-primary, #a855f7),
        0 0 20px var(--evito-primary, #a855f7),
        0 0 40px rgba(168, 85, 247, 0.6);
}

/* ====== LAYOUT ====== */
.evito-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.evito-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== HEADER ====== */
.evito-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 6, 18, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.evito-header .evito-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.evito-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    animation: logoIn 1.2s cubic-bezier(.2,.9,.3,1.2) both;
}

.evito-logo-link { display: inline-block; }

.evito-logo-img {
    max-height: 72px;
    width: auto;
    filter:
        drop-shadow(0 0 8px rgba(168, 85, 247, 0.6))
        drop-shadow(0 0 20px rgba(168, 85, 247, 0.35));
    transition: transform .4s ease, filter .4s ease;
}
.evito-logo-img:hover {
    transform: scale(1.05) rotate(-1deg);
    filter:
        drop-shadow(0 0 12px var(--evito-primary, #a855f7))
        drop-shadow(0 0 30px var(--evito-accent, #ec4899));
}

/* ====== NAV / MENU ====== */
.evito-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.evito-nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex: 1;
}

/* Style Joomla menu (ul.mod-menu) */
.evito-nav-inner ul,
.evito-nav-inner .mod-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.evito-nav-inner ul li {
    position: relative;
}

.evito-nav-inner ul li a,
.evito-nav-inner ul li > span {
    display: inline-block;
    padding: 10px 18px;
    color: #e8dcff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    position: relative;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.evito-nav-inner ul li a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--evito-primary), var(--evito-accent));
    transition: width .35s ease, left .35s ease;
    box-shadow: 0 0 8px var(--evito-primary);
}
.evito-nav-inner ul li a:hover::before,
.evito-nav-inner ul li.active > a::before,
.evito-nav-inner ul li.current > a::before {
    width: calc(100% - 24px);
    left: 12px;
}

.evito-nav-inner ul li a:hover,
.evito-nav-inner ul li.active > a,
.evito-nav-inner ul li.current > a {
    color: #fff;
    text-shadow: 0 0 10px var(--evito-primary);
}

/* Dropdown submenu */
.evito-nav-inner ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(20, 8, 31, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    padding: 8px;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.25);
    z-index: 200;
}
.evito-nav-inner ul li:hover > ul {
    display: flex;
}
.evito-nav-inner ul ul li a {
    width: 100%;
    padding: 8px 14px;
}

/* Nav toggle (mobile) */
.evito-nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: -60px;
}
.evito-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--evito-primary);
    transition: transform .3s ease, opacity .3s ease;
}
.evito-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.evito-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.evito-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====== HERO ====== */
.evito-hero {
    position: relative;
    min-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 40px 0;
}

.evito-hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--evito-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    animation: heroZoom 22s ease-in-out infinite alternate;
    filter: saturate(1.25) contrast(1.05) brightness(0.85);
}

.evito-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 6, 18, 0.25) 55%, rgba(10, 6, 18, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 6, 18, 0.25) 0%, rgba(20, 8, 31, 0.4) 60%, #0a0612 100%);
    z-index: -2;
}

.evito-hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    animation: logoFloat 14s ease-in-out infinite;
}
.evito-hero-logo img {
    width: min(40vw, 380px);
    filter: drop-shadow(0 0 30px var(--evito-primary));
}

.evito-hero-content {
    text-align: center;
    padding: 30px 24px;
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out both;
    animation-delay: 0.2s;
}

.evito-hero-title {
    font-family: 'Syncopate', 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 0.35em;
    text-shadow:
        0 0 18px rgba(168, 85, 247, 0.85),
        0 0 36px rgba(168, 85, 247, 0.45),
        0 0 60px rgba(236, 72, 153, 0.3);
}

.evito-hero-sub {
    font-family: 'Bebas Neue', 'Rajdhani', sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #f0e6ff;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.evito-hero-modules { margin-top: 24px; }

/* ====== BREADCRUMB ====== */
.evito-breadcrumb {
    padding: 12px 0;
    background: rgba(20, 8, 31, 0.5);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    font-size: 14px;
}
.evito-breadcrumb a, .evito-breadcrumb .divider { color: #a794c8; }

/* ====== MAIN GRID ====== */
.evito-main {
    padding: 60px 0;
    flex: 1;
}

.evito-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
.evito-grid:has(.evito-sidebar-right):has(.evito-sidebar-left) {
    grid-template-columns: 280px 1fr 280px;
}
.evito-grid:has(.evito-sidebar-right):not(:has(.evito-sidebar-left)) {
    grid-template-columns: 1fr 280px;
}
.evito-grid:not(:has(.evito-sidebar)) {
    grid-template-columns: 1fr;
}

.evito-content {
    background: rgba(20, 8, 31, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 32px;
    min-height: 400px;
    animation: fadeUp .8s ease-out both;
}

/* ====== SIDEBAR ====== */
.evito-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 180px;
}

/* Module box style "evito" */
.moduletable,
.evito-module {
    background: linear-gradient(145deg, rgba(30, 12, 46, 0.7), rgba(20, 8, 31, 0.7));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.moduletable::before,
.evito-module::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--evito-primary), var(--evito-accent), transparent);
    opacity: 0.7;
}
.moduletable:hover,
.evito-module:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

.moduletable > h3,
.evito-module > h3,
.moduletable .card-header,
.evito-module .module-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    color: #fff;
    position: relative;
}
.moduletable > h3::after,
.evito-module > h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--evito-accent, #ec4899);
    box-shadow: 0 0 6px var(--evito-accent);
}

/* ====== BOTTOM MODULES ====== */
.evito-bottom {
    padding: 60px 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(20, 8, 31, 0.6) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}
.evito-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.evito-bottom-col { display: flex; flex-direction: column; gap: 20px; }

/* ====== FOOTER ====== */
.evito-footer {
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 40px 0 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    text-align: center;
    position: relative;
}
.evito-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--evito-primary), var(--evito-accent), transparent);
    box-shadow: 0 0 10px var(--evito-primary);
}
.evito-footer-default { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.evito-footer-logo { max-height: 50px; opacity: 0.8; filter: drop-shadow(0 0 8px var(--evito-primary)); }
.evito-footer-tag { font-size: 13px; color: #7a668f; }

/* ====== FORMS / BUTTONS ====== */
.evito-btn,
.btn-primary,
button.btn,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--evito-primary, #a855f7), var(--evito-accent, #ec4899));
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.evito-btn:hover,
.btn-primary:hover,
button.btn:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        0 10px 30px rgba(168, 85, 247, 0.55),
        0 0 30px rgba(236, 72, 153, 0.4);
}
.evito-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left .6s ease;
}
.evito-btn:hover::before { left: 100%; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
    background: rgba(10, 6, 18, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    width: 100%;
    transition: border-color .25s ease, box-shadow .25s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--evito-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Joomla content styling */
.evito-content h1,
.evito-content h2,
.evito-content h3 {
    background: linear-gradient(135deg, #fff, var(--evito-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.evito-content blockquote {
    border-left: 3px solid var(--evito-primary);
    padding: 8px 20px;
    margin: 20px 0;
    background: rgba(168, 85, 247, 0.05);
    font-style: italic;
    color: #d8c8f0;
}

.evito-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.evito-content th, .evito-content td {
    padding: 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    text-align: left;
}
.evito-content th {
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
}

.evito-content img { border-radius: 8px; margin: 12px 0; }

/* ====== ERROR PAGE ====== */
.evito-error-body, .evito-offline-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.evito-error-wrap, .evito-offline-wrap {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.evito-error-logo { max-height: 80px; margin: 0 auto 30px; filter: drop-shadow(0 0 20px var(--evito-primary)); }
.evito-error-code {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--evito-primary);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 40px var(--evito-primary);
}
.evito-error-title { margin-bottom: 12px; }
.evito-error-desc { color: #a794c8; margin-bottom: 30px; font-size: 1.1rem; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .evito-grid,
    .evito-grid:has(.evito-sidebar-right):has(.evito-sidebar-left),
    .evito-grid:has(.evito-sidebar-right):not(:has(.evito-sidebar-left)) {
        grid-template-columns: 1fr;
    }
    .evito-sidebar { position: static; }
}

@media (max-width: 768px) {
    .evito-nav-toggle { display: flex; }
    .evito-nav-toggle {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto;
    }
    .evito-nav-inner {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }
    .evito-nav.open .evito-nav-inner { display: flex; }
    .evito-nav-inner ul { flex-direction: column; width: 100%; }
    .evito-nav-inner ul li { width: 100%; text-align: center; }
    .evito-nav-inner ul ul {
        position: static;
        display: none;
        background: rgba(10, 6, 18, 0.6);
        margin-top: 4px;
    }
    .evito-nav-inner ul li:hover > ul,
    .evito-nav-inner ul li.open > ul { display: flex; }

    .evito-hero { min-height: 70vh; }
    .evito-content { padding: 20px; }
    .evito-container { padding: 0 16px; }
    .evito-main { padding: 30px 0; }
}
