body {
    background: #191919;
    color: #e6e2cf;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('/assets/favicon512.png') no-repeat center center;
    background-size: 380px;
    opacity: 0.13;
    z-index: 0;
    pointer-events: none;
}

header, main, footer {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
header {
    background: #201c1c;
    border-bottom: 2px solid #ff9300;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
    padding-top: 14px;
}
h1 {
    color: #ff9300;
    text-align: center;
    font-size: 2.3em;
    margin-top: 10px;
    letter-spacing: 0.03em;
}
nav {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 2px;
}
nav a {
    color: #e6e2cf;
    background: #2b2626;
    border-radius: 8px;
    padding: 9px 20px;
    margin: 2px 6px;
    text-decoration: none;
    font-weight: bold;
    border: 1.7px solid #ff9300;
    transition: 0.17s;
    font-size: 1.09em;
    display: inline-block;
}
nav a:hover, nav a.selected {
    background: #ff9300;
    color: #191919;
}
.langswitch {
    text-align: right;
    font-size: 1.09em;
    margin-bottom: 10px;
    margin-right: 8px;
    color: #ff9300;
    letter-spacing: 0.04em;
    user-select: none;
    z-index: 3;
}
.langswitch a {
    display: inline-flex;
    align-items: center;
    font-size: 1.12em;
    gap: 4px;
    font-weight: bold;
    color: #aa88ff;
    margin: 0 6px;
    text-decoration: underline;
    padding: 2px 10px 2px 7px;
    border-radius: 5px;
    background: none;
    transition: 0.15s;
    vertical-align: middle;
    z-index: 3;
}
.langswitch a.selected {
    color: #ff9300;
    text-decoration: none;
    background: #2b2626;
}
.flag-icon {
    width: 22px;
    height: 16px;
    margin-right: 4px;
    margin-bottom: 1.5px;
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px #0002;
}
.langswitch-flag {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", "Segoe UI Symbol", sans-serif !important;
    font-size: 1.25em;
    vertical-align: -0.06em;
    margin-right: 4px;
    display: inline-block;
    line-height: 1;
}
main {
    min-height: 390px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.weather-box {
    background: #1c1c1c;
    border-radius: 8px;
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 14px;
    color: #ff9300;
    font-size: 1.12em;
}
h2, h3 {
    margin-left: 0;
    color: #ffe6a0;
}
form {
    max-width: 440px;
    width: 100%;
    margin: 28px 0 20px 0;
    background: #222;
    padding: 26px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 14px #0007;
    z-index: 2;
}
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 14px;
    border: 1.7px solid #ff9300;
    border-radius: 7px;
    background: #181818;
    color: #fff;
    font-size: 1.07em;
    box-sizing: border-box;
}
textarea {
    min-height: 72px;
    resize: vertical;
}
button, input[type="submit"] {
    background: #ff9300;
    color: #222;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 11px 32px;
    font-size: 1.13em;
    cursor: pointer;
    box-shadow: 0 1px 6px #0006;
    margin-top: 6px;
    transition: 0.17s;
}
button:hover, input[type="submit"]:hover {
    background: #e6e2cf;
    color: #1a1818;
}
input[type="file"] {
    display: inline-block;
    padding: 9px 0;
    background: #181818;
    border: none;
    color: #fff;
    font-size: 1em;
    margin: 0;
}
input[type="file"]::-webkit-file-upload-button {
    background: #ff9300;
    color: #191919;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    margin-right: 7px;
}
input[type="file"]:focus {
    outline: 2px solid #ff9300;
}
.file-upload-box {
    border:2px solid #ff9300;
    border-radius:10px;
    padding:10px 22px;
    margin: 0 auto 15px auto;
    display: inline-block;
    background: #181818;
    box-shadow: 0 2px 10px #0004;
}
.error {
    color: #ff3636;
    font-weight: bold;
    padding: 8px 10px;
    background: #351010;
    border-radius: 8px;
    margin: 13px 0;
}
.success {
    color: #33ff60;
    font-weight: bold;
    padding: 8px 10px;
    background: #10351a;
    border-radius: 8px;
    margin: 13px 0;
}
footer {
    text-align: center;
    color: #666;
    padding: 18px 0;
    margin-top: 35px;
    border-top: 1px solid #333;
    font-size: 1em;
    letter-spacing: 0.07em;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    margin-top: 28px;
}
.gallery > div {
    width: 240px;
    background: #222;
    border-radius: 13px;
    padding: 14px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px #0006;
    text-align: center;
}
.gallery img {
    width: 100%;
    border-radius: 11px;
    margin-bottom: 8px;
    box-shadow: 0 1px 5px #0004;
}
.gallery .desc {
    color: #ff9300;
    margin-bottom: 5px;
    font-size: 1.08em;
    font-weight: bold;
}
.gallery .author {
    font-size: 0.98em;
    color: #aa88ff;
    margin-bottom: 3px;
    font-weight: bold;
    letter-spacing: 0.01em;
}
.vpn {
    color: #ffe600;
    background: #352d10;
    padding: 9px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: inline-block;
    font-size: 1.04em;
    font-weight: bold;
}

/* ---- ADMIN TÁBLA STÍLUS ---- */
.admintable {
    width: 94%;
    margin: 32px auto 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #22201d;
    box-shadow: 0 2px 18px #0005;
    border-radius: 14px;
    overflow: hidden;
}
.admintable th, .admintable td {
    border-bottom: 1.2px solid #ff9300;
    padding: 13px 18px;
    text-align: left;
    font-size: 1.07em;
}
.admintable th {
    background: #2b2420;
    color: #ffe6a0;
    font-size: 1.15em;
    font-weight: bold;
    border-top: 1.5px solid #ff9300;
}
.admintable tr:last-child td {
    border-bottom: none;
}
.admintable td {
    color: #e6e2cf;
    background: #22201d;
}
.admintable tr:nth-child(even) td {
    background: #23201b;
}
.admintable select {
    background: #181818;
    color: #ff9300;
    border: 1.7px solid #ff9300;
    border-radius: 7px;
    padding: 7px 16px;
    font-size: 1em;
    margin-right: 10px;
    font-weight: bold;
}
.admintable select:focus {
    outline: 2px solid #aa88ff;
}
.admintable button, .admintable input[type="submit"] {
    background: #ff9300;
    color: #23201b;
    border: none;
    border-radius: 8px;
    padding: 8px 26px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 6px #0007;
    transition: 0.16s;
}
.admintable button:hover, .admintable input[type="submit"]:hover {
    background: #ffe6a0;
    color: #23201b;
}
.admintable form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Mobilbarát elrendezés */
@media (max-width: 700px) {
    header, main, footer {
        max-width: 99vw;
        padding: 10px;
    }
    .gallery {
        flex-direction: column;
        gap: 20px;
    }
    .gallery > div {
        width: 97vw;
        min-width: unset;
        padding: 4vw;
    }
    form {
        max-width: 97vw;
        padding: 10vw 3vw;
    }
    nav {
        font-size: 1em;
        flex-direction: column;
    }
    .admintable, .admintable th, .admintable td {
        font-size: 0.99em;
        padding: 8px 7px;
    }
    .admintable {
        width: 99vw;
    }
}

/* GALÉRIA ÚJSÁG-SZERŰ DESIGN */
.gallery-news {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin-top: 34px;
    justify-content: flex-start;
}
.news-card {
    background: #201b16;
    box-shadow: 0 2px 18px #0006;
    border-radius: 14px;
    overflow: hidden;
    max-width: 390px;
    min-width: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.news-img-wrap {
    width: 100%;
    height: 210px;
    background: #151210;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid #ff9300;
}
.news-content {
    padding: 19px 16px 13px 16px;
    word-break: break-word;
}
.news-card .desc {
    font-size: 1.08em;
    color: #ffe6a0;
    margin-bottom: 10px;
    line-height: 1.4;
    white-space: pre-line;
}
.news-card .author {
    color: #aa88ff;
    font-size: 0.98em;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 0.01em;
}
.del-btn {
    background: #9e221e;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 5px 18px;
    font-size: 1em;
    margin-top: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.14s;
}
.del-btn:hover {
    background: #ff3636;
    color: #fff;
}
@media (max-width: 700px) {
    .gallery-news {
        flex-direction: column;
        gap: 20px;
    }
    .news-card {
        min-width: unset;
        max-width: 99vw;
    }
    .news-img-wrap {
        height: 40vw;
        min-height: 150px;
    }
}
