/*
Theme Name: Proreno
Theme URI: https://proreno.hu
Author: Proreno
Author URI: https://proreno.hu
Description: Proreno – modern, teljesen reszponzív szakmai magazin WordPress téma házfelújításhoz és barkácsoláshoz. Kiemelt UX/UI, mobil morzsamenü, ikonra nyíló keresőmező, automatikus kategória-alapú cikkajánlók és beépített, oldalmegosztó social gombok.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proreno
Tags: blog, news, magazine, two-columns, right-sidebar, custom-menu, featured-images, translation-ready, responsive
*/

/* =========================================================
   Proreno – egyedi stílusok
   A layout nagy részét a Tailwind Play CDN adja (lásd functions.php).
   Ez a fájl a Tailwindtől független, kritikus stílusokat és a
   design-*.html fájlokból átemelt egyedi részeket tartalmazza.
   ========================================================= */

:root {
    --pr-pink: #db2777;
    --pr-pink-500: #ec4899;
    --pr-slate-900: #0f172a;
    --pr-slate-800: #1e293b;
    --pr-slate-50: #f8fafc;
}

html { scroll-behavior: smooth; }

/* Alap betűtípusok az arculat szerint: törzs = Inter, címsorok = Outfit */
html { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }

body {
    background-color: #f8fafc;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* A tartalom (bejegyzés / oldal) törzsszövege mindig Inter */
.entry-content,
.prose-custom,
.entry-content p,
.entry-content li,
.entry-content blockquote,
.entry-content td,
.entry-content th {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Címsorok és a "font-serif" segédosztály mindig Outfit (mint az arculati fájlban) */
.font-serif,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
}

/* Hover képnagyítások */
.article-card:hover .article-image { transform: scale(1.05); }
.category-card:hover .category-image { transform: scale(1.1); }

/* Gradiens szöveg */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #f97316, #ec4899, #8b5cf6);
}
.group:hover .group-hover\:text-gradient {
    color: #db2777;
    background-image: none;
    -webkit-background-clip: border-box;
}

/* Line clamp segédosztályok (fallback, ha a Tailwind plugin nem tölt be) */
.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; }

/* Görgetősáv elrejtése a kategória / gyorslinkek sávnál */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   Rovatok sáv – oldalirányú görgetés vezérlők (nyilak + fade)
   ========================================================= */
.pr-rov-track { scroll-padding-inline: 2rem; }

.pr-rov-arrow,
.pr-rov-fade {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.pr-rov-arrow.is-visible,
.pr-rov-fade.is-visible {
	opacity: 1;
	visibility: visible;
}
.pr-rov-arrow { cursor: pointer; }
.pr-rov-arrow:active { transform: translateY(-50%) scale(0.92); }

/* Billentyűzet-fókusz jól látható legyen a görgethető sávon */
.pr-rov-track:focus-visible {
	outline: 2px solid #ec4899;
	outline-offset: 2px;
	border-radius: 0.5rem;
}

/* =========================================================
   Cikk szövegtörzs (WYSIWYG / .entry-content) formázása
   ========================================================= */
.prose-custom p,
.entry-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #334155; font-size: 1.125rem; font-weight: 300; }
.prose-custom h2,
.entry-content h2 { font-family: 'Outfit', sans-serif; font-size: 1.875rem; font-weight: 700; color: #0f172a; margin-top: 3rem; margin-bottom: 1rem; line-height: 1.3; }
.prose-custom h3,
.entry-content h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 600; color: #1e293b; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose-custom h4,
.entry-content h4 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 600; color: #1e293b; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose-custom ul,
.entry-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: #334155; font-size: 1.125rem; font-weight: 300; line-height: 1.8; }
.prose-custom ol,
.entry-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.5rem; color: #334155; font-size: 1.125rem; font-weight: 300; line-height: 1.8; }
.prose-custom li,
.entry-content li { margin-bottom: 0.5rem; }
.prose-custom strong,
.entry-content strong { font-weight: 600; color: #0f172a; }
/* Cikkbeli linkek: megkülönböztetett arculati (pink) szín */
.prose-custom a,
.entry-content a {
	color: #db2777 !important;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(219, 39, 119, 0.4);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prose-custom a:hover,
.entry-content a:hover {
	color: #9d174d !important;
	text-decoration-color: #db2777;
}
.prose-custom blockquote,
.entry-content blockquote { border-left: 4px solid #ec4899; font-style: italic; color: #475569; font-size: 1.25rem; margin: 2rem 0; background-color: #f1f5f9; padding: 1.5rem; border-radius: 0 0.5rem 0.5rem 0; }
.prose-custom img,
.entry-content img { border-radius: 0.75rem; height: auto; max-width: 100%; }
.entry-content figure { margin: 2.5rem 0; }
.entry-content figcaption { text-align: center; font-size: 0.75rem; color: #64748b; margin-top: 0.75rem; font-weight: 500; }
/* Táblázatok (világos fejléc – a sötét színt CTA elemekhez tartjuk fenn) */
/* Vízszintes csúszka konténer: széles (3+ oszlopos) táblázatoknál mobilon is olvasható marad */
.entry-content .wp-block-table,
.entry-content .pr-table-scroll {
	margin: 2rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 2rem 0;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
	font-size: 0.875rem;
	font-weight: 400;
	color: #334155;
	text-align: left;
}
/* A csúszka-konténerben a saját margót a konténer adja */
.entry-content .wp-block-table table,
.entry-content .pr-table-scroll table { margin: 0; }
/* Minimális oszlopszélesség: így 3+ oszlopnál a táblázat szélesebb lesz a kijelzőnél,
   a szöveg nem nyomódik össze, és a konténer vízszintes csúszkát mutat. */
.entry-content th,
.entry-content td { min-width: 7.5rem; }

/* Minden cellaszegély törlése (a belső – főleg függőleges – vonalak eltávolítása,
   pl. a klasszikus szerkesztő border="1" attribútuma miatt). Csak a szándékolt
   vízszintes szegélyeket adjuk vissza lentebb. */
.entry-content th,
.entry-content td {
	border: 0;
}
.entry-content thead th,
.entry-content thead td {
	background-color: #f1f5f9;
	color: #0f172a;
	font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	padding: 1rem 1.5rem;
	border-bottom: 2px solid #ec4899;
	text-align: left;
}
.entry-content tbody td,
.entry-content tbody th {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-weight: 400;
	font-size: 0.875rem;
	overflow-wrap: anywhere;
	word-break: break-word;
	vertical-align: top;
}
.entry-content tbody tr:nth-child(even) { background-color: #f8fafc; }
.entry-content tbody tr:hover { background-color: #f1f5f9; }
.entry-content tbody tr:last-child td,
.entry-content tbody tr:last-child th { border-bottom: 0; }
.entry-content tbody td:first-child,
.entry-content tbody th:first-child { font-weight: 600; color: #0f172a; }
.entry-content table figcaption,
.entry-content .wp-block-table figcaption { text-align: center; font-size: 0.75rem; color: #64748b; margin-top: 0.75rem; font-weight: 500; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 1.5rem; }
.entry-content code { font-family: ui-monospace, monospace; }

/* =========================================================
   Reszponzív segédosztályok / a11y
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important;
    clip-path: none;
    color: #0f172a;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 700;
}

/* =========================================================
   Mobil menü (off-canvas) – kiváló UX/UI morzsamenü
   ========================================================= */
#pr-mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
#pr-mobile-menu.is-open { transform: translateX(0); }

#pr-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#pr-menu-overlay.is-open { opacity: 1; visibility: visible; }

/* A hamburger -> X animáció */
.pr-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.pr-burger span + span { margin-top: 6px; }
.pr-burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pr-burger.is-active span:nth-child(2) { opacity: 0; }
.pr-burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobil menü tételek belépő animációja */
#pr-mobile-menu .pr-mm-item {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#pr-mobile-menu.is-open .pr-mm-item {
    opacity: 1;
    transform: translateX(0);
}
#pr-mobile-menu.is-open .pr-mm-item:nth-child(1) { transition-delay: 0.08s; }
#pr-mobile-menu.is-open .pr-mm-item:nth-child(2) { transition-delay: 0.14s; }
#pr-mobile-menu.is-open .pr-mm-item:nth-child(3) { transition-delay: 0.20s; }
#pr-mobile-menu.is-open .pr-mm-item:nth-child(4) { transition-delay: 0.26s; }
#pr-mobile-menu.is-open .pr-mm-item:nth-child(5) { transition-delay: 0.32s; }
#pr-mobile-menu.is-open .pr-mm-item:nth-child(6) { transition-delay: 0.38s; }

body.pr-no-scroll { overflow: hidden; }

/* =========================================================
   Keresőmező overlay – ikonra kattintásra jelenik meg
   ========================================================= */
#pr-search-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#pr-search-overlay.is-open { opacity: 1; visibility: visible; }
#pr-search-overlay .pr-search-panel {
    transform: translateY(-24px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
#pr-search-overlay.is-open .pr-search-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* WP alap igazítások / gutenberg */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor { display: block; }

/* Beágyazott menü (fallback) – ha nincs hozzárendelve menü */
.pr-menu ul { list-style: none; margin: 0; padding: 0; }

/* Kommentek */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; margin-left: 1.5rem; }

/* Lapozó (WP core pagination) illesztése */
.pr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pr-pagination .page-numbers:hover { border-color: #ec4899; color: #db2777; }
.pr-pagination .page-numbers.current {
    background-color: #db2777;
    border-color: #db2777;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(219, 39, 119, 0.3);
}
.pr-pagination .page-numbers.dots { border: 0; }
