/*
Theme Name: Greencards HUD
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://example.com/
Description: Dark-Gaming / Green-Eye-inspiriertes HUD-Theme, optimiert für das Greencards Pro Serverstatus-Plugin. Minimales Layout ohne störende Container, mit Fokus auf Serverstatus, News und Community.
Version: 1.4.2
Text Domain: greencards-hud
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, #020617 0, #020617 35%, #000 80%),
        radial-gradient(circle at bottom, #020617 0, #000 60%);
    color: #e5e7eb;
    line-height: 1.5;
}

a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/* Layout-Shell */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hud-shell {
    flex: 1 0 auto;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 16px 40px;
}

/* Header / Navigation */

.site-header {
    padding: 12px 16px 6px;
    border-bottom: 2px solid #16a34a;
    background: linear-gradient(to bottom, #16a34a 0, #15803d 40%, transparent 100%);
    box-shadow: 0 4px 20px rgba(21,128,61,0.45);
}

.hud-brand {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hud-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 20%, #4ade80, #22c55e 35%, #16a34a 60%, #052e16 100%);
    box-shadow: 0 0 26px rgba(22,163,74,0.9);
    border: 1px solid rgba(187,247,208,0.9);
}

.hud-logo-text {
    font-size: 18px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #bbf7d0;
}

.hud-main-nav {
    display: flex;
    gap: 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hud-main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #ecfdf5;
}
.hud-main-nav a:hover {
    border-color: rgba(34,197,94,0.9);
    background: radial-gradient(circle at top, rgba(6,78,59,1), rgba(5,46,34,0.94));
    box-shadow: 0 0 18px rgba(22,163,74,0.9);
}

/* Hauptbereich */

.site-main {
    flex: 1 0 auto;
}

.hud-main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .hud-main-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Panel für Serverstatus */

.hud-panel-status {
    position: relative;
    border-radius: 22px;
    padding: 18px 18px 20px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.35) 0, transparent 55%),
        radial-gradient(circle at bottom, rgba(15,23,42,0.98) 0, #020617 70%);
    box-shadow:
        0 0 0 1px rgba(30,64,175,0.7),
        0 26px 70px rgba(15,23,42,0.98);
    overflow: visible;
}

.hud-panel-status::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(56,189,248,0.55);
    opacity: .7;
}

/* Abschnittstitel */

.hud-section-label {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(148,163,184,0.9);
    margin-bottom: 4px;
}

.hud-section-title {
    font-size: 24px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #e0f2fe;
    margin: 0 0 12px;
}

/* Container für Plugin-Output */

.hud-status-wrapper {
    position: relative;
    border-radius: 18px;
    padding: 10px 10px 12px;
    background:
        radial-gradient(circle at top, rgba(15,23,42,0.85), rgba(15,23,42,0.98) 60%, #020617 100%);
    overflow: visible;
    max-width: 100%;
}

/* Rechte Spalte (News / Widgets) */

.hud-aside {
    border-radius: 20px;
    padding: 16px 16px 18px;
    background:
        radial-gradient(circle at top right, rgba(34,197,94,0.28) 0, transparent 55%),
        radial-gradient(circle at bottom, rgba(15,23,42,0.98) 0, #020617 70%);
    box-shadow:
        0 0 0 1px rgba(22,101,52,0.55),
        0 18px 60px rgba(15,23,42,0.96);
}

.hud-aside h2 {
    font-size: 14px;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #bbf7d0;
}

/* News & Widgets in HUD-Area */

.hud-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.hud-news-item {
    padding: 6px 8px;
    border-radius: 10px;
    background: radial-gradient(circle at top right, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
    border: 1px solid rgba(55,65,81,0.9);
}

.hud-news-title {
    font-size: 13px;
    margin: 0 0 2px;
    color: #e5e7eb;
}
.hud-news-title a {
    color: inherit;
}
.hud-news-title a:hover {
    color: #bbf7d0;
}

.hud-news-meta {
    font-size: 11px;
    color: #9ca3af;
}

.hud-widget {
    margin-top: 10px;
}
.hud-widget-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin: 0 0 4px;
    color: #a5f3fc;
}

/* HUD generische Karten-Layouts */

.hud-panel {
    border-radius: 20px;
    padding: 18px 18px 20px;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,0.15), transparent 55%),
        radial-gradient(circle at bottom, rgba(15,23,42,0.98), #020617 75%);
    box-shadow:
        0 0 0 1px rgba(22,163,74,0.6),
        0 22px 60px rgba(15,23,42,0.95);
}

.hud-panel-header {
    margin-bottom: 10px;
}

.hud-panel-title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 4px;
    color: #e5f9ee;
}

.hud-panel-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

/* HUD Layout Varianten */

.hud-layout-full {
    max-width: 1320px;
    margin: 0 auto;
}

.hud-layout-with-sidebar {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
    gap: 22px;
}
@media (max-width: 1024px) {
    .hud-layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hud-layout-split {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.0fr);
    gap: 20px;
}
@media (max-width: 1024px) {
    .hud-layout-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Footer */

.site-footer {
    margin-top: 32px;
    padding: 16px;
    border-top: 1px solid rgba(31,41,55,0.85);
    color: #9ca3af;
    font-size: 12px;
}
.site-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Plugin-spezifische kleine Anpassungen */

.gcp-wrapper {
    margin: 0;
    border-radius: 18px;
}

/* Stelle sicher, dass Plugin-Effekte über allem liegen dürfen */
#gcp-css-particles,
#gcp-canvas-effects,
#gcp-webgl-effects {
    z-index: 999990;
}


/* ==== HUD Widgets Layout (Seiten-spezifische Widgets) ==== */

.hud-layout-widgets {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.hud-layout-widgets.hud-layout-2col {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
}

.hud-layout-widgets.hud-layout-3col {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr) minmax(0, 1.2fr);
}

.hud-aside-left,
.hud-aside-right {
    align-self: flex-start;
}

/* Extra Logo oben rechts im Header */
.site-header {
    position: relative;
}

.hud-header-logo-right {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 20;
}

.hud-header-logo-right img {
    display: block;
}

/* HUD Theme-Optionen: Animationen deaktivieren */
.hud-animations-disabled *,
.hud-animations-disabled *::before,
.hud-animations-disabled *::after {
    animation: none !important;
    transition: none !important;
}

/* Mobile Navigation verbessern */
@media (max-width: 768px) {
    .hud-main-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    .hud-main-nav a {
        flex: 0 0 auto;
    }
}


/* ========================
   HUD Dropdown Navigation
   ======================== */

.hud-dropdown-nav {
    position: relative;
}

.hud-dropdown-nav li {
    position: relative;
}

.hud-dropdown-nav > li {
    display: inline-block;
}

.hud-dropdown-nav .hud-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    padding: 12px 0;
    background: rgba(0,0,0,0.70);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(34,197,94,0.5);
    border-radius: 10px;
    min-width: 180px;
    z-index: 9999;
    box-shadow: 0 0 18px rgba(34,197,94,0.55);
}

.hud-dropdown-nav li:hover > .hud-submenu,
.hud-dropdown-nav li:focus-within > .hud-submenu {
    display: block;
    animation: var(--hud-dropdown-animation) var(--hud-dropdown-speed) ease-out;
}

/* submenu links */
.hud-dropdown-nav .hud-submenu a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 13px;
    color: #d1fae5;
}

.hud-dropdown-nav .hud-submenu a:hover {
    background: rgba(6,78,59,0.5);
    color: #ffffff;
}

/* glowy fade */
@keyframes hudFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* slide */
@keyframes hudSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* glow */
@keyframes hudGlow {
    from { box-shadow: 0 0 0 rgba(34,197,94,0); }
    to   { box-shadow: 0 0 18px rgba(34,197,94,0.85); }
}




/* ========================
   MOBILE NAVIGATION
   ======================== */

.hud-mobile-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    color: #22c55e;
    cursor: pointer;
    z-index: 2000;
}

@media (max-width: 768px) {
    .hud-main-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(0,0,0,0.85);
        padding: 20px;
        border-radius: 10px;
        position: absolute;
        right: 20px;
        top: 70px;
        box-shadow: 0 0 18px rgba(34,197,94,0.55);
    }

    .hud-main-nav.open {
        display: flex;
    }

    .hud-mobile-toggle {
        display: block;
    }

    .hud-main-nav li {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hud-dropdown-nav .hud-submenu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.4);
    }
}


/* ======= HUD Mega Menu + Icons + Sound ======= */

.hud-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    display: none;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(34,197,94,0.5);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(34,197,94,0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
}

.hud-menu-item.mega:hover > .hud-mega-menu {
    display: grid;
}

.hud-icon {
    margin-right: 8px;
    filter: drop-shadow(0 0 5px #22c55e);
}

/* sound click highlight */
.hud-menu-click {
    animation: hudClick 0.2s ease-out;
}
@keyframes hudClick {
    from { transform: scale(1); }
    to { transform: scale(0.95); }
}


/* HUD Menü-Icons (per CSS-Klasse icon-*) */

.hud-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hud-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(34,197,94,0.8);
    box-shadow: 0 0 8px rgba(34,197,94,0.7);
    font-size: 11px;
    text-shadow: 0 0 6px rgba(22,163,74,0.9);
}

/* Standard-Icons über Emojis – diese kannst du später überschreiben */
.hud-icon.icon-home::before { content: "⌂"; }
.hud-icon.icon-discord::before { content: "✉"; }
.hud-icon.icon-shop::before { content: "✦"; }
.hud-icon.icon-download::before { content: "⭳"; }
.hud-icon.icon-forum::before { content: "✉"; }
.hud-icon.icon-vote::before { content: "★"; }

/* Mega-Menü: wenn ein Menüpunkt die Klasse 'mega' hat */
.hud-dropdown-nav .hud-menu-item.mega > .hud-submenu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 20px;
    gap: 18px;
    min-width: 460px;
}

.hud-dropdown-nav .hud-menu-item.mega > .hud-submenu > li {
    padding: 0 8px;
}

.hud-dropdown-nav .hud-menu-item.mega > .hud-submenu > li > a {
    font-weight: 600;
}

/* kleine Scanner-Linie oben am Mega-Menü */
.hud-dropdown-nav .hud-menu-item.mega > .hud-submenu::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110,231,183,0.9), transparent);
    opacity: .8;
}




/* ===========================
   HUD MEGA MENU v1.6.3
   =========================== */

.menu-item.mega {
    position: relative;
}

.menu-item.mega > .sub-menu {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    min-width: 620px;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 99999;
    animation: var(--hud-dropdown-animation) var(--hud-dropdown-speed) ease-out;
}

/* Mega menu list items */
.menu-item.mega .sub-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.menu-item.mega .sub-menu li a {
    display: block;
    padding: 5px 8px;
    color: #d1fae5;
    font-size: 14px;
    letter-spacing: 0.35px;
    border-radius: 6px;
}

.menu-item.mega .sub-menu li a:hover {
    background: rgba(34, 197, 94, 0.25);
    color: #ffffff;
}

/* Scanline effect */
.menu-item.mega > .sub-menu::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.8), transparent);
    opacity: 0.85;
}

/* Ensure Mega Menu stays inside screen */
@media (max-width: 900px) {
    .menu-item.mega > .sub-menu {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        min-width: 260px;
    }
}


.menu-item.mega:hover > .sub-menu,
.menu-item.mega:focus-within > .sub-menu {
    display: grid !important;
}



/* v1.6.5 Hover gap fixes */
.hud-dropdown-nav .sub-menu,
.menu-item.mega > .sub-menu {
    margin-top: 0 !important;
    top: calc(100% - 1px) !important;
}

.hud-panel,
.hud-panel * {
    z-index: 1 !important;
}

.hud-main-nav,
.hud-main-nav * {
    z-index: 99999 !important;
}

.menu-item.mega {
    position: relative;
}

.menu-item.mega::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
    background: transparent;
    z-index: 9999;
}

