@import url('themes.css');
@import url('animations.css');

:root {
    --accent: #c9a227;
    --accent-light: #e8d48a;
    --gold: #c9a227;
    --gold-light: #e8d48a;
    --gold-bright: #f0d060;
    --gold-dark: #a8841a;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #2c3e50;
    --text-muted: #5a6c7d;
    --border: #dde3ea;
    --success: #2d7a4f;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: 120% 120%;
    animation: bg-drift 18s ease-in-out infinite alternate;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header-sticky-wrap.is-scrolled {
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
}

.logo-link:hover {
    color: var(--primary);
}

.logo-link img {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.logo-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.28);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    padding: 48px 0;
}

.hero h1 {
    font-size: 1.9rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 680px;
}

/* Main content */
main {
    flex: 1;
    padding: 36px 0 48px;
}

.page-title {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-left-color: var(--accent);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.18);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 14px;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Two column layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-box h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: none;
    position: relative;
}

.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
    animation: accent-flow 3s linear infinite;
    background-size: 200% 100%;
}

.contact-item {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hours-table {
    width: 100%;
    font-size: 0.88rem;
    border-collapse: collapse;
}

.hours-table td {
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* News */
.news-list {
    list-style: none;
}

.news-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.news-item h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.news-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-item p {
    font-size: 0.94rem;
    color: var(--text);
}

/* Alert banner */
.alert-banner {
    background: #fff8e6;
    border: 1px solid var(--accent-light);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 28px;
}

.alert-banner strong {
    color: var(--primary-dark);
}

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.info-table th,
.info-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    width: 200px;
}

.info-table tr:last-child td,
.info-table tr:last-child th {
    border-bottom: none;
}

/* FAQ */
.faq-section {
    margin-bottom: 28px;
}

.faq-section,
.faq-section .faq-item {
    opacity: 1;
    transform: none;
}

.faq-section h2 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

/* Content sections */
.content-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}

.content-section h2 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.content-section p,
.content-section li {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 10px;
}

.content-section ul {
    padding-left: 20px;
}

/* Letöltések / online megtekintés */
.download-section {
    margin-bottom: 24px;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    color: var(--text);
}

.download-item:last-child {
    border-bottom: none;
}

.download-item.has-file a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-item.has-file a:hover {
    color: var(--primary);
}

.download-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* Footer */
.site-footer {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 32px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 24px;
}

.footer-grid h4 {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-grid p,
.footer-grid a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-grid a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.admin-entry {
    display: inline-block;
    margin-left: 4px;
    color: inherit;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.footer-bottom:hover .admin-entry,
.admin-entry:hover,
.admin-entry:focus-visible {
    opacity: 0.45;
    color: var(--accent-light);
    outline: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 860px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 12px 20px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .site-header .container {
        position: relative;
    }

    .header-sticky-wrap {
        position: sticky;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
