/* Alap stílusok – videktheme */

:root {
    --color-primary: #27669A;
    --color-black: #000;
    --color-white: #fff;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: var(--color-white);
    color: var(--color-black);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
}

@media (max-width: 768px) {
    main {
        width: 100%;
        padding: 0;
    }

    .single-featured-image img,
    .single-sidebar,
    .pinned-thumb img,
    .new-post-thumb img {
        border-radius: 0 !important;
    }
}
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 0 0 15px;
}

article { margin-bottom: 40px; }

/* HEADER */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, #27669A 0%, #1e4f75 100%);
    color: var(--color-white);
    padding: 20px 0;
}

.header-inner {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
}

.logo:hover,
.logo:visited,
.logo:active {
    color: var(--color-white);
    text-decoration: none;
}

.logo .smallcaps { font-variant: small-caps; }

.hamburger {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-white);
    cursor: pointer;
}

/* ROTÁTOR */
.header-rotator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    opacity: 0.95;
    pointer-events: none;
    white-space: nowrap;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    z-index: 1000;
}

/* ROTÁTOR ANIMÁCIÓK */
.fade-in-slide {
    animation: fadeSlideIn 0.45s ease forwards;
}

.fade-out-slide {
    animation: fadeSlideOut 0.45s ease forwards;
}

@keyframes fadeSlideIn {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideOut {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

.header-rotator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    opacity: 0.95;
    pointer-events: none;
    white-space: nowrap;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    z-index: 1000;
}

.rotate-item {
    display: none;
    animation: fadeRotator 0.6s ease;
    pointer-events: auto;
    color: var(--color-white);
    text-decoration: none;
}

@keyframes fadeRotator {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header-rotator { display: none; }
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px; /* teljesen a képernyőn kívül alapállapotban */
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #27669A 0%, #1d4a6a 100%);
    color: var(--color-white);
    padding: 60px 20px;
    transition: right 0.3s ease;
    box-shadow: none;
    z-index: 5000;
}

.side-menu.open {
    right: 0; /* nyitott állapotban pont a viewport szélén */
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li { margin-bottom: 20px; }

.side-menu ul li a {
    color: var(--color-white);
    font-size: 18px;
    text-decoration: none;
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4000;
}

.overlay.show {
    opacity: 1;
    background: rgba(0,0,0,0.5);
    pointer-events: auto;
}

/* PINNED BLOCK */
.pinned-block {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.pinned-item a { text-decoration: none; color: var(--color-black); }

.pinned-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pinned-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .pinned-block { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pinned-block { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pinned-block { grid-template-columns: repeat(1, 1fr); }
}

/* FRONT-PAGE GRID */
.layout-grid .content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .layout-grid .content-wrapper { grid-template-columns: 1fr; }
}

/* NEW POSTS */
.new-posts-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
}

.new-post-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.new-post-thumb img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
}

.new-post-content { display: flex; flex-direction: column; }

.new-post-title a {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
}

.new-post-title a:hover { text-decoration: underline; }

.new-post-meta {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

@media (max-width: 600px) {
    .new-post-item { flex-direction: column; }
    .new-post-thumb img {
        width: 100%;
        height: 180px;
    }
}

/* SINGLE PAGE */

/* --- META RÁHELYEZÉSE A KÉPRE --- */
.single-featured-image {
    position: relative;
}

.single-meta-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* FB GOMB – teljes szélesség */
.fb-share {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
    margin: 18px 0;
}

/* CÍM – kevesebb távolság */
.single-title {
    margin-top: 10px;
    margin-bottom: 14px;
}

/* EREDETI SINGLE PAGE */
.single-post-page .content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .single-post-page .content-wrapper {
        grid-template-columns: 1fr;
    }
}

.single-sidebar {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.single-main {
    background: #fff;
    padding: 20px 0;
}


.single-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* --- SINGLE META + FACEBOOK SHARE --- */
.single-meta {
    font-size: 14px;
    color: #666;
    margin: 10px 0 24px;
    font-weight: 500;
}

.fb-share {
    display: inline-block;
    max-width: 100%;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.fb-share:hover {
    background: #145bcc;
}

/* --- BLOCKQUOTE STYLING --- */
.single-content blockquote {
    background: #f5f7fb;
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 110%;
    font-style: italic;
    border-radius: 6px;
}

.single-content blockquote p { margin: 0; }

/* --- INLINE IMAGES & CAPTIONS --- */
.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 14px;
    color: #555;
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 0 0 6px 6px;
}

/* --- FEATURED IMAGE ASPECT RATIO --- */
.single-featured-image img {
    width: 100%;
    aspect-ratio: 1200 / 628;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- RESPONSIVE: SIDEBAR ALUL MOBILON --- */
@media (max-width: 900px) {
    .single-post-page .content-wrapper { display: block; }
    .single-main,
    .single-sidebar { width: 100%; }
}

/* --- SCROLL-X TILTÁS --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- SIDE MENU MOBILE FIX + TELJES ELTOLÁS --- */
@media (max-width: 600px) {
    .side-menu {
        width: 80%;
        right: -100%; /* a panel teljesen kint marad mobilon is */
    }
    .side-menu.open {
        right: 0;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

