﻿/* =========================================================
   Peter Beltmaker – közös stílusok (minden oldal)
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #141414;
    color: #d6d6d6;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

a {
    color: inherit;
}

/* ---------- Navigáció ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 24px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #222;
    align-items: center;
}

    .nav a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.08em;
        color: #9a9a9a;
        transition: color 0.2s;
    }

        .nav a:hover {
            color: #ffffff;
        }

        .nav a.active {
            color: #ff8c42;
        }

/* ---------- Lenyíló menü ---------- */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
    /* láthatatlan híd, hogy az egér ne „essen le” a menüről */
    .dropdown::after {
        content: "";
        position: absolute;
        left: -20px;
        right: -20px;
        top: 100%;
        height: 16px;
    }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #9a9a9a;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s;
}

    .dropdown-toggle::after {
        content: "";
        border-style: solid;
        border-width: 5px 4px 0 4px;
        border-color: currentColor transparent transparent transparent;
        transition: transform 0.2s;
    }

.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle {
    color: #ff8c42;
}

    .dropdown:hover .dropdown-toggle::after,
    .dropdown:focus-within .dropdown-toggle::after {
        transform: rotate(180deg);
    }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    min-width: 260px;
    max-width: min(360px, 90vw);
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px;
    background: #1b1b1b;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 14px);
}

.nav .dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0;
    color: #c8c8c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s, color 0.2s;
}

    .nav .dropdown-menu a:hover,
    .nav .dropdown-menu a.current {
        background: #262626;
        color: #ff8c42;
    }

    .nav .dropdown-menu a.all {
        margin-bottom: 6px;
        padding-bottom: 12px;
        border-bottom: 1px solid #2a2a2a;
        border-radius: 8px 8px 0 0;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #8a8a8a;
    }

/* ---------- Lábléc ---------- */
.footer {
    margin-top: 80px;
    padding: 32px 24px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 13px;
    color: #6a6a6a;
}

.visits {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #555;
}

/* ---------- Mobilnézet ---------- */
@media (max-width: 600px) {
    .nav {
        gap: 20px;
    }
}
