/* =====================================================================
   hunul.net - modern stylesheet (sárkányrepülés / autogyro téma)
   ===================================================================== */

:root {
    /* Színpaletta - égbolt, naplemente, fém */
    --sky-900: #0b1d2e;
    --sky-800: #102a43;
    --sky-700: #1a3a5c;
    --sky-600: #2a5a8a;
    --sky-500: #3b82c4;
    --sky-400: #6fb0e0;
    --sky-100: #e8f2fb;
    --sky-50:  #f5fafd;

    --sunset-500: #f59f4d;
    --sunset-600: #e6863a;
    --sunset-700: #c46b25;

    --accent: #ffb84d;
    --accent-dark: #e89a1f;

    --ink: #1a2530;
    --ink-soft: #4a5868;
    --muted: #8595a6;

    --bg: #f7fafd;
    --surface: #ffffff;
    --surface-2: #f0f5fa;
    --border: #d7e2ed;
    --border-strong: #b8c8d8;

    --danger: #d04545;
    --success: #2f9e62;
    --warning: #d49325;
    --info: #3b82c4;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(15, 30, 50, .07), 0 1px 1px rgba(15, 30, 50, .04);
    --shadow:    0 4px 12px rgba(15, 30, 50, .09), 0 1px 3px rgba(15, 30, 50, .05);
    --shadow-lg: 0 12px 32px rgba(15, 30, 50, .15);

    --font-base: "Inter", "Segoe UI", Tahoma, Verdana, sans-serif;
    --font-display: "Inter", "Segoe UI", Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sky-600); text-decoration: none; }
a:hover { color: var(--sunset-600); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ========== Layout ========== */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== Header / Hero ========== */
.site-header {
    background: linear-gradient(135deg, var(--sky-900) 0%, var(--sky-700) 60%, var(--sky-600) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 320px at 80% 20%, rgba(245, 159, 77, .25), transparent 60%),
        radial-gradient(600px 280px at 12% 80%, rgba(111, 176, 224, .25), transparent 60%);
    pointer-events: none;
}

.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--sunset-600));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    font-weight: 800;
    font-size: 22px;
    color: var(--sky-900);
}

.brand-text { line-height: 1.15; }
.brand-text .title {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .2px;
}
.brand-text .subtitle {
    font-size: 12px;
    opacity: .8;
}

.ticker {
    flex: 1;
    text-align: right;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 600px;
}

/* Nav */
.nav-wrap {
    background: rgba(255, 255, 255, .06);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    z-index: 1;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 0;
}

.nav a {
    color: rgba(255, 255, 255, .82);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.nav a.active { background: var(--accent); color: var(--sky-900); }

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

/* Hero kép - megtartjuk az index_01.jpg-t */
.hero {
    position: relative;
    height: 232px;
    background: var(--sky-800) url('../images/index_01.jpg') center/cover no-repeat;
    margin-top: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(11, 29, 46, .55), rgba(11, 29, 46, 0) 40%),
        linear-gradient(90deg, rgba(11, 29, 46, .35), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 16px 22px;
    max-width: 1180px;
    margin: 0 auto;
}
.hero-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .3px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    margin: 0;
}
.hero-subtitle {
    color: rgba(255, 255, 255, .88);
    margin-top: 4px;
    font-size: 14px;
}

/* ========== Main grid ========== */
.main {
    flex: 1;
    padding: 32px 0 56px;
}
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.sidebar { min-width: 0; }
.content { min-width: 0; }

/* ========== Card ========== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--sky-50), #fff);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--sky-800);
    letter-spacing: .2px;
}

.card-body { padding: 16px 18px; }

.card .item {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}
.card .item:first-child { border-top: 0; }
.card .item:hover { background: var(--surface-2); }

/* ========== List / Egyesületek ========== */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
    padding: 9px 12px;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.list li:last-child { border-bottom: 0; }
.list li a { display: block; }

/* ========== News block ========== */
.news-row {
    display: grid;
    grid-template-columns: 110px 1fr 100px;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    align-items: center;
}
.news-row:first-child { border-top: 0; }
.news-row:hover { background: var(--surface-2); }
.news-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.news-title { font-size: 14px; line-height: 1.45; }
.news-actions { text-align: right; font-size: 13px; }

/* News detail */
.article {
    padding: 4px 4px 0;
}
.article h2 {
    color: var(--sky-800);
    font-size: 22px;
    margin: 4px 0 2px;
}
.article .meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}
.article .body img { border-radius: var(--radius-sm); }

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    background: var(--sky-600);
    color: #fff;
}
.btn:hover { background: var(--sky-700); text-decoration: none; color: #fff; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--sky-900); }
.btn-accent:hover { background: var(--accent-dark); color: var(--sky-900); }
.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b73838; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ========== Forms ========== */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 9px 11px;
    font: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 196, .18);
}
.form-row textarea { min-height: 90px; resize: vertical; }

.form-row .hint {
    color: var(--muted);
    font-size: 12px;
}

/* Flash / alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    border-left: 4px solid;
    background: #fff;
}
.alert-success { border-color: var(--success); background: #effaf3; color: #186a3b; }
.alert-error   { border-color: var(--danger);  background: #fdecec; color: #8b1f1f; }
.alert-info    { border-color: var(--info);    background: #ecf3fb; color: #1b4b7a; }
.alert-warning { border-color: var(--warning); background: #fdf6e7; color: #875b15; }

/* ========== Galéria ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 14px 18px;
}
.gallery-tile {
    background: var(--surface-2);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-tile .label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(8, 14, 22, .94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 24px;
    display: grid;
    place-items: center;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; border: 0; cursor: pointer; font-size: 22px;
}
.lightbox .lb-counter {
    position: absolute;
    bottom: 22px;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,.8);
    font-size: 14px;
}

/* ========== Tables ========== */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: top;
}
.table th {
    background: var(--surface-2);
    font-weight: 700;
    color: var(--sky-800);
    border-bottom: 2px solid var(--border);
}
.table tr:hover td { background: var(--surface-2); }

/* ========== Footer ========== */
.site-footer {
    background: var(--sky-900);
    color: rgba(255, 255, 255, .75);
    padding: 24px 0;
    font-size: 13px;
}
.site-footer a { color: var(--accent); }
.site-footer .foot-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Documents / Linkek ========== */
.doc-list { padding: 8px 0; }
.doc-list .doc-group {
    padding: 12px 18px;
}
.doc-list .doc-group h4 {
    margin: 0 0 8px 0;
    color: var(--sky-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.doc-list .doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.doc-list .doc-item:last-child { border-bottom: 0; }
.doc-list .doc-icon {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--sky-700);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .ticker { display: none; }
    .hero { height: 180px; }
    .hero-title { font-size: 22px; }
    .news-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .news-actions { text-align: left; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-flex; }
    .nav { display: none; flex-direction: column; align-items: stretch; padding: 12px 0; }
    .nav.open { display: flex; }
    .nav a { width: 100%; }
    .header-bar { flex-wrap: wrap; }
    .hero { height: 150px; }
    .hero-title { font-size: 18px; }
}
