/*
Theme Name: mknot2026-congressline
Theme URI: https://congressline.hu/
Author: Riba Zoltán
Author URI: https://www.congressline.hu
Description: Leírás
Version: 1.0
Text Domain: mknot2026-congressline
*/

@font-face {
    font-family: 'Scope One';
    src: url('assets/fonts/ScopeOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bordo: #881002;
    --piros: #E20613;
    --bezs: #FFF6C7;
    --feher: #FFFFFF;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", serif;
    background: #e8e5db;
    color: #222;
}

.has-text-align-justify {
    text-align: justify;
    display: block;
}

.is-layout-flex {
    display: flex;
}

.has-text-align-center {
    text-align: center;
}

.wp-block-heading {
    color: var(--piros);
    font-weight: 400;
}

/* --- Konténer --- */

.site-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* --- Fejléc + kép --- */

.site-header {
    width: 100%;
    overflow: hidden;
}

.site-header img {
    width: 100%;
    height: auto;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Menü ikon */

.menu-toggle {
    position: absolute;
    display: none;
    background: rgba(0,0,0,0.6);
    border: none;
    padding: 8px;
    cursor: pointer;
    right: 15px;
    top: 25px;
    border-radius: 10px;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #ffffff;
    
}

/* --- Layout: Sidebar + Tartalom (desktop) --- */

.site-main {
    display: flex;
    flex: 1 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Sidebar */

.sidebar {
    width: 340px;
    padding: 20px;
    box-sizing: border-box;
    font-size: 15px;
}

.sidebar .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .menu > li {
    margin-bottom: 8px;
}

.sidebar .menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #a0a277;
    border-radius: 3px;
    font-size: 18px;
}

.sidebar .menu a:hover,
.sidebar .menu .current-menu-item > a {
    color: var(--piros);
    text-decoration: none;
}

/* Kétszintű menü: alapból rejtett második szint */
.sidebar .menu .sub-menu {
    display: none;
    margin: 4px 0 0 0;
    padding-left: 14px;
}

/* Nyitott állapot – ilyenkor látszik a sub-menu */
.sidebar .menu li.submenu-open > .sub-menu {
    display: block;
}

/* Szülő menüpont: kis nyíl ikon a jobb oldalán */
.sidebar .menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 26px;
}

.sidebar .menu li.menu-item-has-children > a::after {
    content: "▾";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Nyitott állapotban fordított nyíl */
.sidebar .menu li.submenu-open > a::after {
    content: "▴";
}

/* Tartalom */

.content-area {
    flex: 1;
    padding-left: 30px;
    box-sizing: border-box;
    background: #ffffff;
}

/* Cikkek */

.entry-title {
    margin-top: 0;
    color: var(--piros);
    text-transform: uppercase;
    font-family: "Scope One";
    font-weight: bold;
    font-size: 28px;
}

.entry-content {
    line-height: 1.6;
    padding-right: 30px;
}

/* --- Lábléc: alul, középre igazítva, egy sorban --- */

.site-footer {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* --- Scroll-top gomb (oldal aljához rögzítve) --- */

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    border-radius: 999px;
    background: #333;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    z-index: 1100;
}

.scroll-top-btn:hover {
    opacity: 1;
}

/* Mobil / desktop képek váltása */
.header-mobile {
    display: none;
}

.email-hivatkozas, .web-hivatkozas {
    color: #f7a600;
    text-decoration: none;
}

.wp-block-table thead {
  border-bottom: none;
}

.wp-block-table thead th {
  background-color: var(--piros);
  color: var(--feher);
  border: none;
}


/* --- Mobil / kisebb nézet 960px alatt --- */

@media (max-width: 960px) {

    .entry-content {
        padding-right: unset;
    }

    .site-wrapper {
        max-width: 100%;
        box-shadow: none;
    }

    .site-main {
        display: block; /* egymás alatt */
    }

    .top-bar {
        display: flex;
    }

    /* Sidebar: overlay-ként jelenik meg */

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        max-width: 80%;
        height: 100vh;
        background: #fff;
        border-right: 1px solid #ddd;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    }

    body.menu-open .sidebar {
        transform: translateX(0); /* balról becsúszik */
    }

    /* Tartalom */

    .content-area {
        padding: 15px;
    }

    /* Sötét háttér, amikor menü nyitva van */

    .menu-overlay {
        display: none;
    }

    body.menu-open .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 900;
    }

    /* Scroll-top gomb kicsit beljebb, hogy ne lógjon le */
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
    }

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
        width: 100%;
        height: auto;
    }

    .menu-toggle {
        display: block;
    }
}
