/*
Theme Name: Jövőnk Magazin
Theme URI: https://example.com/jovonk
Author: Jövőnk Studio
Description: Reszponzív, magazin jellegű WordPress téma a "Jövőnk" márkához.
Version: 1.0.0
Text Domain: jovonk
*/

:root {
    --deepBlue: #1f2412;
    --cardBlue: #2c331a;
    --neonCyan: #f5c84c;
    --neonMagenta: #6b7a36;
    --oliveLine: #4c5630;
    --sidebarBoxBg: #252c16;
}

body {
    background-color: var(--deepBlue);
    color: #f7f3e8;
    font-family: 'Source Sans 3', sans-serif;
}

p {
    color: #ffffff;
}

body,
button,
input,
select,
textarea {
    font-family: 'Source Sans 3', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title-link {
    font-family: 'Playfair Display', serif;
}

.custom-logo-link img {
    max-height: 48px;
    width: auto;
    border-radius: 0;
}

.footer .custom-logo-link img {
    max-height: 56px;
}

.footer {
    background-color: #171b0f;
    color: #ffffff;
}
.footer p,
.footer a,
.footer li,
.footer span {
    color: #ffffff;
}
.footer a:hover,
.footer a:focus {
    color: #ffffff;
}

.footer .footer-social a {
    color: var(--neonCyan);
}
.footer .footer-social a:hover,
.footer .footer-social a:focus {
    color: #ffd84a;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Bevezetők színe (főoldal + kategória oldalak) */
.home p.text-gray-300,
.home p.text-gray-400,
.archive p.text-gray-300,
.archive p.text-gray-400 {
    color: #ffffff !important;
}

/* Vízszintes elválasztók kikapcsolása */
hr {
    display: none;
}
.border-t,
.border-b {
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}

/* Nagyobb lekerekítés képeken és dobozokon */
img {
    border-radius: 1.1rem;
}
.img-zoom-container,
.hero-card,
.article-card,
.rounded,
.rounded-lg,
.rounded-xl,
.rounded-2xl {
    border-radius: 1.1rem !important;
}

/* Arculathoz igazított keretek/vonalak */
.border-gray-800 {
    border-color: var(--oliveLine) !important;
}

/* Kategória badge egységes lekerekítés */
.category-badge {
    border-radius: 999px;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.site-branding .custom-logo-link img {
    transition: none;
    filter: none;
}

/* Sidebar dobozok háttérszíne */
.sidebar-box {
    background-color: var(--sidebarBoxBg);
}

/* Hero időjárás */
.weather-widget {
    backdrop-filter: blur(8px);
}

/* Egyedi görgetősáv */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--deepBlue);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neonCyan), var(--neonMagenta));
    border-radius: 4px;
}

/* Üveg hatás a navigációnak */
.glass-nav {
    background: rgba(31, 36, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 200, 76, 0.15);
}

/* Gradiens szöveg */
.text-gradient {
    background: linear-gradient(to right, var(--neonCyan), var(--neonMagenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Friss info csík */
.fresh-ticker {
    background: linear-gradient(90deg, #f5c84c, #ffd84a 55%, #f5c84c);
    border-bottom: 1px solid rgba(31, 36, 18, 0.2);
}
.fresh-ticker .ticker-label {
    background: #f5c84c;
    color: #1f2412;
}
.fresh-ticker .ticker-text {
    color: #1f2412;
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 1;
}
.fresh-ticker .ticker-divider {
    color: rgba(245, 200, 76, 0.55);
}

/* Hover effektek a képekhez */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom-container img {
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: saturate(0.9) contrast(0.95);
}
.article-card:hover .img-zoom-container img {
    transform: translateY(-6px) scale(1.02);
    filter: saturate(1.15) contrast(1.05);
}

/* Neon ragyogás gombokon */
.btn-neon {
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--neonCyan);
    color: var(--neonCyan);
    background-color: transparent;
}
.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--neonCyan), #f9dd7a 45%, var(--neonMagenta));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.btn-neon:hover::before {
    opacity: 1;
}
.btn-neon:hover,
.btn-neon:focus {
    color: var(--deepBlue);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(245, 200, 76, 0.2);
}

/* Mozaik Grid */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .mosaic-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
    }
    .mosaic-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .mosaic-item-wide {
        grid-column: span 2;
    }
}

/* Pagináció aktív eleme */
.pagination-active {
    background-color: var(--neonCyan);
    color: var(--deepBlue);
    border-color: var(--neonCyan);
    box-shadow: 0 0 12px rgba(245, 200, 76, 0.4);
}

/* Marquee animáció */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.animate-marquee {
    animation: marquee 25s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .animate-marquee {
        animation: none;
    }
}

/* Line clamp támogatás (Tailwind CDN nélkül is) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Maszkos háttér a hero képre */
.mask-image-gradient {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* Cikk törzs */
.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}
.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.article-body blockquote {
    border-left: 4px solid var(--neonMagenta);
    background: rgba(107, 122, 54, 0.1);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    border-radius: 0 8px 8px 0;
}
.article-body a {
    color: var(--neonCyan);
    text-decoration: none;
    background-image: linear-gradient(transparent 70%, rgba(245, 200, 76, 0.35) 0);
    background-size: 100% 100%;
    transition: color 0.2s ease, background-size 0.2s ease;
}
.article-body a:hover {
    color: var(--neonMagenta);
    background-size: 100% 30%;
}

/* Főmenü hover effekt (asztali) */
@media (min-width: 768px) {
    .nav-link {
        position: relative;
        display: inline-block;
        z-index: 1;
    }
    .nav-link::before {
        content: '';
        position: absolute;
        inset: -4px -10px;
        background: rgba(245, 200, 76, 0.14);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.2s ease;
        border-radius: 999px;
        z-index: -1;
    }
    .nav-link:hover::before,
    .nav-link:focus::before {
        transform: scaleX(1);
    }
}

/* Hero képek olvashatóság */
.hero-card {
    position: relative;
}
.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 36, 18, 0.2) 0%, rgba(31, 36, 18, 0.7) 70%, rgba(31, 36, 18, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-image {
    position: relative;
    z-index: 0;
}
.hero-content {
    position: absolute;
    z-index: 2;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 60;
}
.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neonCyan), var(--neonMagenta));
    box-shadow: 0 0 12px rgba(245, 200, 76, 0.35);
    transition: width 0.1s ease;
}
.drop-cap::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 900;
    padding-right: 1rem;
    padding-top: 0.2rem;
    color: var(--neonCyan);
    font-family: 'Playfair Display', serif;
}

/* Lapozó stílus */
.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-numbers a,
.page-numbers span {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: #9ca3af;
    transition: all 0.2s ease;
}
.page-numbers a:hover {
    border-color: var(--neonCyan);
    color: #fff6db;
}
.page-numbers .current {
    background-color: var(--neonCyan);
    color: var(--deepBlue);
    border-color: var(--neonCyan);
    box-shadow: 0 0 12px rgba(245, 200, 76, 0.35);
}

/* Keresőmező arculat */
.search-form input[type="search"] {
    background-color: var(--deepBlue);
    color: #f7f3e8;
    border-color: #4c5630;
}
.search-form input[type="search"]::placeholder {
    color: #b7b19f;
}
.search-form input[type="search"]:focus {
    border-color: var(--neonCyan);
    box-shadow: 0 0 0 1px rgba(245, 200, 76, 0.35);
}

#header-search .search-form input[type="search"] {
    background-color: #1f2412;
}
