:root {
    --dark-blue: #174a65;
    --gold: #d6a84f;
    --cream: #fff8e6;
}

/* =========================================================
💻 DESKTOP ALAP
========================================================= */
body {
    margin: 0;
    font-family: 'Trebuchet MS', sans-serif;
    background: linear-gradient(180deg, #1e5a7e, #0d3143);
    background-attachment: fixed;
    color: var(--cream);
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

header {
    position: relative;
    padding: 5px 30px 0 30px;
    box-sizing: border-box;
}

/* LOGÓ */
.logo img {
    height: 260px;
    width: auto;
    display: block;
}

/* Felső menü (DESKTOP ONLY) */
.top-menu {
    padding-bottom: 4px;
    position: absolute;
    bottom: 10px;
    left: 260px;
    display: flex;
    gap: 35px;
}
.top-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25em;
    position: relative;
}
.top-menu a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: var(--gold);
    transition: width 0.25s;
}
.top-menu a:hover::after {
    width: 100%;
}

/* Desktop sidebar */
.page-wrap { display:flex; }

/* ========== Tökéletesen egyező DESKTOP Sidebar háttér ========== */
.sidebar {
    width: 220px;
    padding: 30px 0;
    box-sizing: border-box;
    position: relative;

    /* Ugyanaz a gradient mint a body */
    background: linear-gradient(180deg, #1e5a7e, #0d3143);
    background-attachment: fixed !important;
    background-size: cover !important;
}
.sidebar::before {
    content:"";
    position:absolute;
    inset:0;

    /* Ugyanaz a textúra mint a body */
    background:url("https://www.transparenttextures.com/patterns/cream-paper.png");
    opacity:0.12;
    pointer-events:none;
}

/* Sidebar linkek  */
.sidebar a {
    display: block;
    color: var(--cream);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: transform 0.15s, background 0.15s, color 0.15s;
}
.sidebar a:hover {
    background: var(--gold);
    color: black;
    transform: translateX(6px);
}

/* Tartalom */
main {
    flex: 1;
    padding: 40px;
    color: var(--cream);
}
h1, h2, h3 {
    margin-top: 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* Aktív elem */
.top-menu a.active,
.sidebar a.active {
    background: var(--gold);
    color: black !important;
    padding: 6px 10px;
    border-radius: 6px;
}

/* =========================================================
📱 MOBIL (iOS STYLE) – TABBAR + BOTTOM SHEET
========================================================= */
@media (max-width: 900px) {

    /* Desktop menü el */
    .top-menu { display:none !important; }
    .page-wrap { display:block; }
    .logo img { height:250px; }
     header {
        display: flex; /* Flexbox bekapcsolása */
        justify-content: center; /* Vízszintes középre igazítás */
        padding: 5px 10px 0 10px; /* Csökkentett oldalsó padding mobilra */
    }

    /* ===== TABBAR ===== */
    .mobile-tabbar {
        display:flex;
        position:fixed;
        bottom:0; left:0; right:0;
        height:60px;
        padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
        border-top:1px solid rgba(255,255,255,0.15);
        z-index:400;

        background:rgba(14,74,89,0.55);
        backdrop-filter:blur(12px) saturate(140%);
        -webkit-backdrop-filter:blur(12px) saturate(140%);
    }
    .mobile-tabbar .tab-item {
        flex:1; text-align:center;
        padding-top:6px;
        font-size:0.8rem;
        color:#EAD6A2;
        background:none; border:none;
    }
    .mobile-tabbar .icon {
        width:22px; height:22px;
        display:block; margin:0 auto 3px;
    }

    /* Aktív effekt */
    .mobile-tabbar .tab-item.active {
        background:rgba(173,70,50,1);
        color:#fff;
    }
    .mobile-tabbar .tab-item.active::before {
        content:""; position:absolute; top:-6px; left:50%;
        width:28px; height:28px; border-radius:50%;
        background:rgba(255,255,255,0.30);
        filter:blur(12px);
        transform:translateX(-50%);
        animation:glowPulse 1.6s infinite ease-in-out;
    }
    @keyframes glowPulse {
        0%{opacity:0.4; transform:translateX(-50%) scale(0.9);}
        50%{opacity:0.8; transform:translateX(-50%) scale(1.1);}
        100%{opacity:0.4; transform:translateX(-50%) scale(0.9);}
    }


/* ===== BOTTOM SHEET (MOBIL) ===== */
@media (max-width: 900px) {

    .sidebar {
        position:fixed;
        left:0; bottom:0;
        width:100%;

        /* 📌 Pontos, vizuális, 3 sor + húzócsík */
        max-height: 350px;

        transform:translateY(100%);

        padding-top:50px;
        padding-bottom:15px;

        border-radius:25px 25px 0 0;
        box-shadow:0 -8px 25px rgba(0,0,0,0.55);
        z-index:350;
        touch-action:none;

        /* 📌 Üveg, sokkal áttetszőbb */
        background:rgba(14,74,89,0.23);
        backdrop-filter:blur(22px) saturate(230%);
        -webkit-backdrop-filter:blur(22px) saturate(230%);
        background-blend-mode:overlay;

        transition:transform 0.45s cubic-bezier(0.22,1.25,0.32,1);
    }

    /* 📌 Ez hozza fel 3 sor magasságra, nem többre */
    .sidebar.open {
        transform:translateY(calc(50% - 180px));
    }

    /* ===== Húzócsík ===== */
    .sidebar::before {
        content:""; position:absolute; top:10px; left:50%;
        width:60px; height:6px;
        background:rgba(255,255,255,0.5);
        border-radius:4px;
        transform:translateX(-50%);
    }

    /* ===== Linkek nagyban ===== */
    .sidebar a {
        font-size:1.3em;
        text-align:center;
        padding:18px 0;
        border-bottom:1px solid rgba(255,255,255,0.12);
    }
}


    /* ===== OVERLAY ===== */
    .overlay {
        display:none; position:fixed; inset:0;
        background:rgba(0,0,0,0.45);
        z-index:300;
    }
    .overlay.show { display:block; }

    /* Tartalom biztonság */
    main {
        padding-bottom:calc(80px + env(safe-area-inset-bottom));
        position:relative;
        z-index:100;
    }
}

/* Linkek ne legyenek aláhúzva */
.top-menu a,
.sidebar a,
.mobile-tabbar .tab-item {
    text-decoration:none !important;
}


/* =========================================================
🚫 DESKTOPON NINCS MOBIL MENU
========================================================= */
@media (min-width: 901px) {
    .mobile-tabbar,
    .overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    /* A sidebar desktopon fix, nem üveg */
    .sidebar {
        transform: none !important;
        position: static !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: linear-gradient(180deg, #1e5a7e, #0d3143) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}


/* =========================================================
🎨 DESKTOP HÁTTÉR EGYSÉGESÍTÉS (HEADER + SIDEBAR + MAIN)
========================================================= */
@media (min-width: 901px) {

    /* Sidebar legyen teljesen átlátszó desktopon */
    .sidebar {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Biztos, ami biztos: ne legyen rajta textúra overlay */
    .sidebar::before {
        display: none !important;
    }

    /* Main és Header is átlátszó */
    header, main {
        background: transparent !important;
    }
}

/* ===== Kapcsolat oldal linkek javítása ===== */
main a[href^="mailto"],
main a[href^="tel"] {
    color: #ffdca3; /* enyhe arany, jól olvasható */
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.35);
}

main a[href^="mailto"]:hover,
main a[href^="tel"]:hover {
    color: #ffffff; /* teljesen fehér hoverre */
    border-bottom-color: rgba(255,255,255,0.65);
}

/* Sötét mobil háttéren még világosabb legyen */
@media (max-width: 900px) {
    main a[href^="mailto"],
    main a[href^="tel"] {
        color: #ffffff !important;
        border-bottom-color: rgba(255,255,255,0.65);
    }
}

/* ===== INFO / DANGER / SUCCESS BOX ===== */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 1.05em;
    display:flex;
    gap:10px;
    align-items:center;
}
.alert .icon { font-size:1.4em; }

.alert-info {
    background:rgba(30, 116, 163, 0.25);
    backdrop-filter:blur(6px);
}
.alert-danger {
    background:rgba(174, 47, 47, 0.25);
    backdrop-filter:blur(6px);
}
.alert-success {
    background:rgba(65, 125, 75, 0.25);
    backdrop-filter:blur(6px);
}

/* ===== LINK STÍLUSOK ===== */
a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #ffe2a6;
}


/* ===== iOS ARANY LINK ANIMÁCIÓ ===== */
main a {
    color: var(--gold);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

/* Finom fény átmenet a szövegen */
main a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease-out;
}

/* Hover: csillan + enyhe szín »
   Nem lesz túl erős, csak elegáns */
main a:hover {
    color: #ffe2a6;
}

main a:hover::after {
    transform: scaleX(1);
}

