/* Pokémon Aréna V3 – közös, szinkronban tartott fejléc */
a {
    color: inherit;
    text-decoration: none;
}
.app-header,
.auth-header {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: var(--topbar);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}
.app-header .topbar-inner,
.auth-header .topbar-inner {
    width: min(1380px, calc(100% - 40px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: stretch;
    gap: 18px;
}
.app-header .brand,
.auth-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    /*min-width: 205px;*/
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.app-header .brand-mark,
.auth-header .brand-mark {
    width: 35px;
    height: 35px;
    display: block;
    flex: 0 0 auto;
	background: url("../images/layout/pokeball.png") center / contain no-repeat;
}
.app-header .brand b,
.auth-header .brand b {
    color: var(--primary-bright);
}
.app-header .brand small,
.auth-header .brand small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2.2px;
    margin-top: 2px;
}
.menu-toggle {
    display: none;
    align-self: center;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
    padding: 9px 11px;
    border-radius: 4px;
}
.main-nav {
    display: flex;
    align-items: stretch;
    flex: 1;
}
.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.nav-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}
.nav-item:hover > .nav-trigger,
.nav-item.is-open > .nav-trigger,
.nav-trigger.active {
    color: var(--text);
    background: rgba(8, 132, 203, 0.09);
    border-bottom-color: var(--primary-bright);
}
.chev {
    font-size: 11px;
    transition: transform 0.18s;
}
.nav-item.is-open .chev,
.nav-item:hover .chev {
    transform: rotate(180deg);
}
.dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transition: 0.18s ease;
}
.nav-item:hover > .dropdown,
.nav-item.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.dropdown a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.16s ease;
}
.dropdown a:hover {
    color: var(--text);
    background: var(--surface-2);
    padding-left: 14px;
}
.dropdown::before {
  content:""; position:absolute; top:-7px; left:20px; width:12px; height:12px;
  background:var(--surface); border-left:1px solid var(--line-strong); border-top:1px solid var(--line-strong);
  transform:rotate(45deg);
}
.drop-icon {
    color: var(--primary-bright);
    width: 17px;
    text-align: center;
}
.mega-wrap {
    position: static;
}
.mega {
    width: min(1380px, calc(100vw - 40px));
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.15fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.mega-wrap:hover > .mega,
.mega-wrap.is-open > .mega {
    transform: translate(-50%, 0);
}
.mega-column {
    padding: 18px;
    border-right: 1px solid var(--line);
    min-height: 184px;
}
.mega-column:last-child {
    border-right: 0;
}
.mega-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--primary-bright);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 3px 10px 8px;
}
.mega .feature {
    background: linear-gradient(135deg, rgba(8, 132, 203, 0.23), rgba(218, 178, 65, 0.1));
    min-height: 100%;
    padding: 16px;
}
.feature strong {
    font-size: 16px;
    display: block;
}
.feature p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
    margin: 7px 0 13px;
}
.feature-link {
    color: var(--primary-bright) !important;
    padding: 0 !important;
}
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}
.text-link {
    border: 0;
    background: none;
    color: var(--primary-bright);
    font-size: 11px;
    font-weight: 900;
    padding: 0;
}
.logout-form {
    margin: 0;
}
.nav-item > .logout-form {
    display: flex;
    align-items: stretch;
}
.logout-form .text-link {
    border: 0;
    background: none;
    cursor: pointer;
}
.icon-btn {
    height: 36px;
    width: 36px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    display: grid;
    place-items: center;
    transition: 0.17s;
    cursor: pointer;
}
.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary-bright);
    transform: translateY(-1px);
}
.profile-mini {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 4px;
    text-decoration: none;
}
.avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #3ba3e4, #dab241);
    border: 2px solid var(--surface-3);
}
.profile-mini strong {
    display: block;
    font-size: 12px;
}
.profile-mini span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
}
.top-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.top-links a {
    padding: 9px 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}
.top-links a:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}
@media (max-width: 900px) {
    .app-header,
    .auth-header {
        height: 64px;
    }
    .app-header .topbar-inner,
    .auth-header .topbar-inner {
        width: min(100% - 28px, 1380px);
        gap: 10px;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        display: none;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow: auto;
        flex-direction: column;
        background: var(--surface);
        box-shadow: var(--shadow);
    }
    .main-nav.open {
        display: flex;
    }
    .nav-item,
    .mega-wrap {
        display: block;
    }
    .nav-trigger {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        border-bottom: 1px solid var(--line);
        border-left: 3px solid transparent;
    }
    .nav-item.is-open > .nav-trigger {
        border-left-color: var(--primary-bright);
    }
    .dropdown,
    .mega {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        padding: 7px 14px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        border: 0;
        background: var(--surface-2);
        box-shadow: none;
    }
    .nav-item:hover > .dropdown,
    .mega-wrap:hover > .mega {
        display: none;
    }
    .nav-item.is-open > .dropdown,
    .mega-wrap.is-open > .mega {
        display: block;
    }
    .mega {
        grid-template-columns: 1fr 1fr;
    }
    .mega-column {
        min-height: 0;
        padding: 9px;
    }
    .profile-copy {
        display: none;
    }
    .top-links {
        display: none;
    }
}
@media (max-width: 560px) {
    .brandtxt {
        display: none;
    }
    .mega {
        grid-template-columns: 1fr;
    }
    .mega-column {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}
