/* Üllői úti katonai emlékhely - Egyedi stílusok */

/* ===== SZÍNEK ===== */
:root {
    --color-primary: #186227;
    --color-primary-dark: #0d3415;
    --color-gold: #DAA520;
    --color-bg-light: #F7F9F0;
    --color-bg-menu: #F2F5E7;
    --color-white: #FFFFFF;
    --color-text: #000000;
    --color-link-external: #0969B3;
}

/* ===== ALAPBEÁLLÍTÁSOK ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== FEJLÉC ===== */
.site-header {
    background-color: var(--color-primary);
    width: 100%;
    padding: 8px 15px;
    height: 80px;
    text-align: center;
    margin: 0 !important;
    position: relative;
    left: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0;
}

.site-title {
    font-family: 'Tahoma', sans-serif;
    font-size: 2rem;
    color: #FFFFFF;
    font-weight: bold;
    margin: 0;
}

.site-subtitle {
    font-family: 'Tahoma', sans-serif;
    font-size: 1.5rem;
    color: #FFFFFF;
    font-weight: bold;
    margin: 0;
    padding-bottom: 3px;
}

/* Hamburger menü ikon */
.menu-toggle {
    position: absolute;
    top: 25px;
    left: 5px;
}

/* Fő konténer */
.main-container {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

/* Oldalsó menü */
.sidebar-menu {
    position: fixed;
    top: 80px;
    bottom: 0;
    width: 220px;
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
    background-color: #F2F5E7;
    overflow-y: auto;
}

.menu-header {
    color: #DAA520;
}

.menu-icon {
    -webkit-filter: drop-shadow(1px 2px #DAA520);
    filter: drop-shadow(-1px 2px #DAA520);
    width: 120px;
    max-width: 75%;
}

.menu-line {
    font-family: 'Tahoma', sans-serif;
    font-size: 14px;
    margin: 10px 0;
}

.menu-line a {
    color: #186227;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
}

.menu-line a:hover {
    color: #0d3415;
    background-color: rgba(24, 98, 39, 0.15);
    transform: translateX(3px);
    box-shadow: -2px 0 0 0 var(--color-gold);
}

.menu-line a.active {
    color: var(--color-white) !important;
    background-color: var(--color-primary) !important;
    font-weight: 700;
    box-shadow: -3px 0 0 0 var(--color-gold);
    border-radius: 4px;
}

.menu-line a.active:hover {
    color: var(--color-white) !important;
    background-color: var(--color-primary-dark) !important;
    transform: none;
}

/* Tartalom terület */
.content-area {
    background-color: #F7F9F0;
    width: calc(100% - 224px);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-area.full-width {
    width: 100%;
}

.content-container {
    background-color: #F7F9F0;
    height: 100%;
    border: 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-y: auto;
}

/* Body alapbeállítások */
body {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Főoldal szöveg stílusok */
.page-title {
    font-family: 'Tahoma', sans-serif;
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    color: #000000;
}

.content-text {
    font-family: 'Tahoma', sans-serif;
    text-align: justify;
    line-height: 1.6;
    color: #000000;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.content-image {
    border: 1px solid #000;
}

.image-left {
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Link stílusok */
.link-primary {
    color: #186227;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-primary:hover {
    background-color: rgba(24, 98, 39, 0.1);
    color: #0d3415;
    transform: translateX(2px);
}

.link-external {
    color: var(--color-link-external);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    border-bottom: 2px solid rgba(9, 105, 179, 0.3);
    transition: all 0.3s ease;
}

.link-external:hover {
    color: #064a7a;
    border-bottom-color: #064a7a;
    background-color: rgba(9, 105, 179, 0.1);
}

/* Táblázat stílusok */
.organization-table {
    border: 0;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.organization-table td {
    padding: 10px;
}

.org-image-cell {
    text-align: center;
    width: 180px;
}

.org-link-cell {
    text-align: left;
}

.org-image {
    border: 1px solid #000;
    max-width: 100%;
    height: auto;
}

/* Iframe beágyazott tartalom */
.embedded-content {
    width: 100%;
    height: calc(100% - 6px);
    border: 0;
    background-color: #F7F9F0;
}

/* Reszponzív videó wrapper (16:9) */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1rem auto;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tartalom képek reszponzív méretezése */
.content-container img {
    max-width: 100%;
    height: auto;
}

/* Tartalom táblázatok reszponzív */
.content-container table {
    max-width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    html {
        overflow: auto;
        height: auto;
    }

    body {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }

    .main-container {
        flex: none;
        height: auto;
        overflow: visible;
    }

    .sidebar-menu {
        display: none;
        width: 100%;
        position: relative;
        height: auto;
        top: auto;
        bottom: auto;
        z-index: 100;
    }
    
    .content-area {
        width: 100% !important;
        position: relative;
        top: auto;
        bottom: auto;
        height: auto;
        overflow: visible;
    }

    .content-container {
        height: auto;
        overflow: visible;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 1.2rem;
    }
    
    .organization-table {
        width: 100%;
    }
    
    .image-left {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: auto;
        padding: 10px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
}

/* ===== TIPOGRÁFIA ===== */
.text-bold {
    font-weight: bold;
}

.line-height-150 {
    line-height: 150%;
}

.text-green {
    color: var(--color-primary);
}

/* ===== BETŰTÍPUSOK (hogy lecserélhessük a <font> tag-eket) ===== */
.font-tahoma {
    font-family: 'Tahoma', sans-serif;
}

.font-size-16 { font-size: 16px; }
.font-size-18 { font-size: 18px; }
.font-size-20 { font-size: 20px; }

/* ===== IGAZÍTÁS (align helyett) ===== */
.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.align-justify {
    text-align: justify;
}

/* ===== TÁBLÁZAT CELL STÍLUSOK ===== */
.table-border {
    border: 1px solid #000000;
}

/* ===== KÉP STÍLUSOK ===== */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* ===== MARGIN SEGÉDEK ===== */
.mt-10 { margin-top: 10px; }

/* ===== FOMANTIC UI CARD TOVÁBBFEJLESZTÉSEK ===== */

/* Univerzális card stílusok */
.ui.card.raised.link {
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(24, 98, 39, 0.08) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.ui.card.raised.link:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(24, 98, 39, 0.2) !important;
    border-color: var(--color-gold) !important;
}

.ui.card.raised.link .image {
    position: relative;
    overflow: hidden;
    background: rgba(24, 98, 39, 0.02);
}

.ui.card.raised.link .image img {
    transition: transform 0.4s ease, filter 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 140px;
}

.ui.card.raised.link:hover .image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.ui.card.raised.link .content {
    text-align: center;
    padding: 1em 0.8em !important;
    border-top: 2px solid rgba(24, 98, 39, 0.05) !important;
}

.ui.card.raised.link .content .header {
    font-size: 0.95em !important;
    font-weight: 600 !important;
    color: #186227 !important;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ui.card.raised.link:hover .content .header {
    color: #0d3415 !important;
}

/* Icon header styling */
.ui.icon.header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.ui.icon.header i.circular.icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(24, 98, 39, 0.2);
}

/* Card grid spacing */
.ui.cards {
    margin-top: 0 !important;
}

.ui.cards > .card {
    margin: 0.7em 0.4em !important;
}

/* Mobil optimalizáció */
@media (max-width: 768px) {
    .ui.container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 10px !important;
        overflow: visible !important;
    }
    
    .ui.card.raised.link .image img {
        height: 120px;
    }
    
    .ui.card.raised.link .content {
        padding: 0.8em 0.5em !important;
    }
    
    .ui.card.raised.link .content .header {
        font-size: 0.85em !important;
    }
    
    .ui.icon.header i.circular.icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .ui.cards > .card {
        margin: 0.5em 0.25em !important;
    }
}

/* ===== EGYÉB ===== */
.border-0 { border: 0; }

.text-style {
    height: 22px;
    font-size: 12pt;
    vertical-align: middle;
    padding: 1px;
}

/* ===== LÁBLÉC ===== */
.site-footer {
    text-align: center;
    padding: 15px 10px;
    margin-top: 30px;
    border-top: 1px solid rgba(24, 98, 39, 0.15);
    color: #777;
    font-size: 0.85rem;
    font-family: 'Tahoma', sans-serif;
}

/* ===== VISSZA A TETEJÉRE GOMB ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===== 404 HIBAOLDAL ===== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.error-404-icon {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* ===== NYOMTATÁSI STÍLUSOK ===== */
@media print {
    .site-header {
        position: static;
        height: auto;
        padding: 10px;
        background-color: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }

    .site-title,
    .site-subtitle {
        color: #000 !important;
    }

    .sidebar-menu,
    .menu-toggle,
    #menu-toggle-btn,
    .scroll-top-btn {
        display: none !important;
    }

    body {
        display: block;
        height: auto;
        overflow: visible;
    }

    .main-container {
        height: auto;
        overflow: visible;
    }

    .content-area {
        position: static;
        width: 100% !important;
        height: auto;
        overflow: visible;
    }

    .content-container {
        height: auto;
        overflow: visible;
        padding: 0;
    }

    a[href]::after {
        content: none;
    }

    .site-footer {
        margin-top: 20px;
        border-top: 1px solid #ccc;
    }
}
