/* ═══════════════════════════════════════════════════════════════
   Konnections Groups — Global Styles
   Dark premium palette: Deep Navy · Indigo · Orange accent
   ═══════════════════════════════════════════════════════════════ */

:root {
    --color-bg:          #020617;   /* slate-950 */
    --color-surface:     #0f172a;   /* slate-900 */
    --color-text:        #f1f5f9;
    --color-accent:      #6366f1;   /* indigo */
    --color-accent-2:    #3b82f6;   /* blue */
    --color-accent-3:    #ea580c;   /* orange */
    --color-border:      rgba(99,102,241,0.2);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: rgba(99,102,241,0.35); color: white; }

/* ── CHART CONTAINER ── */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    height: 280px;
    max-height: 400px;
}
@media (min-width: 768px) {
    .chart-container { height: 320px; }
}

/* ── EMOJI / UNICODE ICONS ── */
.unicode-icon {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

/* ── SCROLL ANIMATIONS ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── AUTOFILL (dark mode) ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: white;
}

/* ── FOCUS RING ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(99,102,241,0.7);
    outline-offset: 2px;
}

/* ── FAQ ACCORDION (injected via JS) ── */
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: 10px;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: #a5b4fc;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
details[open] summary::after {
    transform: rotate(45deg);
}
.faq-body {
    padding: 0.25rem 1.25rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── EVENTS NAV DROPDOWN ── */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-family: 'Inter', system-ui, sans-serif;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger { color: white; }
.nav-dropdown-trigger .chevron {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 1px;
}
.nav-dropdown-wrapper:hover .chevron,
.nav-dropdown-wrapper.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 230px;
    background: rgba(10,10,30,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 9px;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    width: 100%;
}
.nav-dropdown-item:hover { background: rgba(99,102,241,0.15); color: white; }
.nav-dropdown-item .dd-icon { font-size: 1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.nav-dropdown-divider { height: 1px; background: rgba(99,102,241,0.15); margin: 4px 0.85rem; }

/* ── EVENT CARDS ── */
.ev-card {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 18px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ev-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.45);
}

/* ── EVENTS DUAL CTA BANNER ── */
.ev-dual-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
@media (max-width: 640px) { .ev-dual-banner { grid-template-columns: 1fr; } }
.ev-banner-card {
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid;
    transition: transform 0.25s ease;
}
.ev-banner-card:hover { transform: translateY(-3px); }
.ev-banner-attend   { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.25); }
.ev-banner-organize { background: rgba(234,88,12,0.07);  border-color: rgba(234,88,12,0.25); }

/* ── EVENTS EXPANDABLE CARDS (accordion) ── */
.ev-expand-card {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ev-expand-card.ev-open {
    border-color: rgba(99,102,241,0.45);
    box-shadow: 0 8px 32px rgba(99,102,241,0.12);
}
.ev-expand-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    font-family: 'Inter', system-ui, sans-serif;
}
.ev-expand-header:hover {
    background: rgba(99,102,241,0.06);
}
.ev-chevron {
    font-style: normal;
    transition: transform 0.3s ease;
    line-height: 1;
    font-size: 1.3rem;
}
.ev-expand-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ev-expand-inner {
    padding: 0 1.75rem 1.75rem;
    border-top: 1px solid rgba(99,102,241,0.12);
    padding-top: 1.25rem;
}
