/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Update URI:   false
 Text Domain:  bricks
*/

/* Ported from GeneratePress child (content-level rules only) */
div.interju > p:nth-child(odd) {
  margin-bottom: 5px;
}

div.interju > p:nth-child(even) {
  border-left: 2px solid grey;
  padding-left: 10px;
}

.page-id-3 td,
.page-id-3 th {
  border: 1px solid #ffffff;
}

.toggle_button_div,
.toggle_button_div:active,
.toggle_button_div:focus,
.toggle_button_div:visited {
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  color: #ffffff;
  font-family: Open Sans;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  background-color: #dd3333;
  border: solid #000000 1px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}

.toggle_button_div:hover {
  background: rgba(221, 51, 51, 0.7);
  color: #ffffff;
  border: solid #000000 1px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  text-decoration: none;
}

.super {
  border: 0px solid #fff;
  border-radius: 5px;
  padding: 15px 5px;
  margin: 15px 0px;
  -webkit-box-shadow: 0px 0px 2px 1px #fff;
  -moz-box-shadow: 0px 0px 2px 1px #fff;
  box-shadow: 0px 0px 2px 1px #fff;
}

.super_page {
  border: 0px solid #fff;
  border-radius: 5px;
  padding: 15px 5px;
  -webkit-box-shadow: 0px 0px 2px 1px #fff;
  -moz-box-shadow: 0px 0px 2px 1px #fff;
  box-shadow: 0px 0px 2px 1px #fff;
}

.super_page h1,
.super_page h2,
.super_page h3,
.super_page h4 {
  margin: 0;
}

.kerdes {
  color: #090;
  font-weight: 700;
}

.valasz {
  border-left: 2px solid #ccc;
  margin: 0 0 25px 5px;
  padding-left: 10px;
}

.idezet {
  font-weight: 700;
  font-style: italic;
  color: #dd3333;
}

.toyotaro {
  border-bottom: 2px #077d00 dotted;
  padding-bottom: 15px;
}

.twitter-tweet {
  margin-bottom: 20px !important;
  margin: 0 auto;
}

.kanji img {
  background-color: #ffffff;
}

ul.question {
  margin-left: 1em;
}

.no-bottom-margin {
  margin-bottom: 0;
}

/* Page content blocks (converted from Elementor widgets) */
.dbhu-cols { display: flex; flex-wrap: nowrap; gap: 20px; margin: 20px 0; align-items: flex-start; }
.dbhu-col { flex: 1 1 0; min-width: 0; }
.dbhu-cols .dbhu-col:first-child:not(:last-child) { max-width: 33%; }
.dbhu-img { margin: 0 0 1em; text-align: center; }
.dbhu-img img { max-width: 100%; height: auto; }
.dbhu-iconlist { list-style: none; margin: 0 auto 1em; padding: 0; width: fit-content; max-width: 100%; }
.dbhu-iconlist li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dotted #666; }
.dbhu-iconlist li::before { content: "\203A"; flex: 0 0 1.1em; height: 1.1em; line-height: 1.05em; text-align: center; border-radius: 50%; background: #999; color: #111; font-weight: 700; }
.dbhu-toggle { margin: 10px 0; }
.dbhu-toggle summary { background: #dd3333; color: #fff; padding: 10px 15px; cursor: pointer; font-weight: 700; }
.dbhu-cta { position: relative; display: flex; align-items: stretch; border: 1px solid #fff; margin: 0 0 20px; }
.dbhu-cta-img { flex: 0 0 50%; background: #111; display: flex; align-items: center; justify-content: center; padding: 5px; }
.dbhu-cta-img img { max-width: 100%; height: auto; display: block; }
.dbhu-cta-body { flex: 1 1 auto; background: #f9fafa; color: #333; padding: 25px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.dbhu-cta-body h2 { margin: 0 0 .5em; color: #333; font-family: Roboto, sans-serif; font-size: 20px; font-weight: 400; }
.dbhu-cta-body p { margin: 0 0 .8em; font-size: 14px; }
.dbhu-btn, .dbhu-btn:visited { display: inline-block; background: transparent; color: #333 !important; border: 1px solid #555; padding: 6px 16px; font-size: 13px; text-decoration: none; }
.dbhu-btn:hover { background: #333; color: #fff !important; }
.dbhu-ribbon { position: absolute; top: 10px; right: 10px; background: #dd3333; color: #fff; padding: 2px 10px; font-size: 11px; text-transform: uppercase; }
.has-text-align-center { text-align: center; }
@media (max-width: 767px) {
  .dbhu-cols { flex-wrap: wrap; }
  .dbhu-cols .dbhu-col, .dbhu-cols .dbhu-col:first-child:not(:last-child) { flex: 1 1 100%; max-width: 100%; }
  .dbhu-cta { flex-direction: column; }
  .dbhu-cta-img { flex-basis: auto; }
}

/* ---- fidelity fixes vs. the Elementor version ---- */
/* lists inside page/post content keep their bullets */
.brxe-post-content ul:not(.dbhu-iconlist) { list-style: disc outside; padding-left: 1.6em; margin: 0 0 1em; }
.brxe-post-content ol { list-style: decimal outside; padding-left: 1.6em; margin: 0 0 1em; }
/* headings of converted pages: bold Roboto like the Elementor heading widget */
body.page .brxe-post-content > :is(h2, h3, h4), body.page .dbhu-col > :is(h2, h3, h4), body.page .dbhu-mid :is(h2, h3, h4) { font-family: Roboto, sans-serif; font-weight: 700; font-size: 24px; margin: .6em 0 .4em; }
.dbhu-cols.dbhu-mid { align-items: center; }
.dbhu-cols.super_page { padding: 15px 10px; }
/* call-to-action cards: fixed image height, logo contained */
.dbhu-cta-img { height: 230px; }
.dbhu-cta-img { overflow: hidden; box-sizing: border-box; }
/* EWWW wraps the image in <picture>, which must pass the box height down to the img */
.dbhu-cta-img picture { display: block; width: 100%; height: 100%; }
.dbhu-cta-img img { width: 100%; height: 100%; object-fit: contain; }
/* list-item date with a clock icon */
.dbhu-date::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .4em; vertical-align: -.14em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a11 11 0 100 22 11 11 0 000-22zm-1 5h2v6l4.5 2.7-1 1.7L11 13z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a11 11 0 100 22 11 11 0 000-22zm-1 5h2v6l4.5 2.7-1 1.7L11 13z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* main menu: separators and highlighted current item */
#brx-header .brxe-nav-menu .bricks-nav-menu { gap: 0; }
#brx-header .brxe-nav-menu .bricks-nav-menu > li { margin: 0; }
#brx-header .brxe-nav-menu .bricks-nav-menu > li > a { padding-left: 20px; padding-right: 20px; }
#brx-header .brxe-nav-menu .bricks-nav-menu > li:not(:first-child) > a { position: relative; }
#brx-header .brxe-nav-menu .bricks-nav-menu > li:not(:first-child) > a::before { content: "|"; color: #fff; position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); font-weight: 400; }
@media (max-width: 991px) { #brx-header .brxe-nav-menu .bricks-nav-menu > li:not(:first-child) > a::before { display: none; } }
@media (min-width: 992px) and (max-width: 1200px) { #brx-header .brxe-nav-menu .bricks-nav-menu > li > a { padding-left: 12px; padding-right: 12px; font-size: 15px; } #brx-header .brxe-search { width: 200px; } #brx-header .brxe-image { margin-right: 0; } }
/* fullscreen search overlay (mobile header): dark background, visible close button and input */
.bricks-search-overlay { background-color: #111; }
.bricks-search-overlay:after { display: none; }
.bricks-search-overlay .close { color: #fff !important; font-size: 56px !important; line-height: 1 !important; width: 56px; height: 56px; padding: 0 !important; right: 12px; top: 10px; }
.bricks-search-overlay .bricks-search-form { width: 90%; max-width: 600px; display: flex; }
.bricks-search-overlay .bricks-search-form input[type=search] { background: #f0f0f0; color: #333; font-size: 18px; line-height: 50px; text-align: left; padding: 0 14px; border: 0; flex: 1 1 auto; min-width: 0; }
.bricks-search-overlay .bricks-search-form button[type=submit] { background: #dd3333; color: #fff; padding: 0 16px; }

/* --- UX/a11y pass ---------------------------------------------------- */
/* links: lighter red (6:1 on #111) and underlined, so they are not told apart by colour alone */
.brxe-post-content a:not(.dbhu-btn):not(.wp-element-button):not(.wp-block-button__link),
#brx-footer .brxe-text-basic a { color: #ff6060; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.brxe-post-content a:not(.dbhu-btn):not(.wp-element-button):not(.wp-block-button__link):hover,
#brx-footer .brxe-text-basic a:hover { color: #ff9a9a; }
.dbhu-iconlist li a, #brx-footer .brxe-text-basic a { display: inline-block; padding: 3px 2px; }
.brxe-post-meta a { display: inline-block; padding: 4px 2px; }
.dbhu-cta .dbhu-btn, .dbhu-ribbon { text-decoration: none; }
.dbhu-ribbon { background: #c82828; }
#brx-footer .brxe-text-basic { color: #aaa; }
#brx-footer > section:last-child .brxe-text-basic { color: #aaa; }

/* main menu: current/hovered item = white text on a darker pill (black on red was 4.2:1) */
#brx-header .brxe-nav-menu .bricks-nav-menu > li.current-menu-item > a,
#brx-header .brxe-nav-menu .bricks-nav-menu > li:hover > a { color: #fff; background: rgba(0, 0, 0, .28); border-radius: 4px; }

/* sticky header */
#brx-header { position: sticky; top: 0; z-index: 999; }
body.admin-bar #brx-header { top: 32px; }

/* pagination as buttons */
.bricks-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bricks-pagination .page-numbers li { margin: 0; }
.bricks-pagination a.page-numbers, .bricks-pagination span.page-numbers:not(.dots) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #444; border-radius: 6px; background: #1e1e1e; color: #fff; font-size: 16px; text-decoration: none; transition: background-color .15s; }
.bricks-pagination a.page-numbers:hover { background: #333; border-color: #888; }
.bricks-pagination span.page-numbers.current { background: #c82828; border-color: #c82828; font-weight: 700; }
.bricks-pagination span.page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; display: inline-flex; align-items: center; height: 44px; color: #aaa; }
.bricks-pagination a.page-numbers.prev, .bricks-pagination a.page-numbers.next { font-size: 0; }
.bricks-pagination a.page-numbers.prev::after { content: "\2039  Előző"; font-size: 16px; white-space: pre; }
.bricks-pagination a.page-numbers.next::after { content: "Következő  \203A"; font-size: 16px; white-space: pre; }
@media (max-width: 767px) { .bricks-pagination a.page-numbers.prev::after { content: "\2039"; } .bricks-pagination a.page-numbers.next::after { content: "\203A"; } }

/* --- tablet + mobile pass ------------------------------------------------ */
/* side gutters wherever the content column (1040px) would touch the screen edge; hero containers (.dbhu-bleed) stay full bleed */
@media (max-width: 1080px) { #brx-content .brxe-section > .brxe-container:not(.dbhu-bleed) { padding-left: 20px; padding-right: 20px; } }
/* min. 14px text (12px for the small uppercase badges) */
.dbhu-btn, .bricks-button.md { font-size: 14px !important; }
#brx-footer .brxe-text-basic { font-size: 14px !important; }
@media (max-width: 991px) { .brxe-post-meta { font-size: 14px !important; } .dbhu-ribbon { font-size: 12px; } }
/* readable line length: text column of the article/page body max. 720px, media and cards keep the full width */
.brxe-post-content > p, .brxe-post-content > ul, .brxe-post-content > ol, .brxe-post-content > h2, .brxe-post-content > h3, .brxe-post-content > h4, .brxe-post-content > h5, .brxe-post-content > h6,
.brxe-post-content > blockquote, .brxe-post-content > .wp-block-paragraph, .brxe-post-content > .wp-block-heading, .brxe-post-content > .wp-block-list, .brxe-post-content > .wp-block-quote { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) {
  #brx-content .brxe-section > .brxe-container:not(.dbhu-bleed) { padding-left: 16px; padding-right: 16px; }
  /* long URLs wrap instead of widening the page */
  .brxe-post-content { overflow-wrap: anywhere; }
  /* Complianz cookie list on the privacy page: single column instead of a 575px wide grid */
  .brxe-post-content .cookies-per-purpose { grid-template-columns: minmax(0, 1fr) !important; }
  .brxe-post-content .cookies-per-purpose > * { grid-column: 1 / -1 !important; min-width: 0; overflow-wrap: anywhere; }
}
/* hamburger: 44x44 touch target around the same 20px icon */
@media (max-width: 991px) {
  #brx-header .brxe-nav-menu .bricks-mobile-menu-toggle { width: 44px; height: 44px; }
  #brx-header .brxe-nav-menu:not(.show-mobile-menu) .bricks-mobile-menu-toggle span { right: 12px; }
  #brx-header .brxe-nav-menu:not(.show-mobile-menu) .bricks-mobile-menu-toggle .bar-top { top: 14px; }
  #brx-header .brxe-nav-menu:not(.show-mobile-menu) .bricks-mobile-menu-toggle .bar-center { top: 21px; }
  #brx-header .brxe-nav-menu:not(.show-mobile-menu) .bricks-mobile-menu-toggle .bar-bottom { top: 28px; }
  .show-mobile-menu .bricks-mobile-menu-toggle span { right: 12px; }
  /* mobile menu: same look as the desktop one (separators, current item = darker pill) */
  .brxe-nav-menu .bricks-mobile-menu > li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .brxe-nav-menu .bricks-mobile-menu > li.current-menu-item > a { background: rgba(0, 0, 0, .28); }
}
@media (max-width: 767px) {
  /* Bricks wraps flex blocks on mobile, keep the thumbnail beside the text */
  .brxe-block.dbhu-row { flex-wrap: nowrap; }
  .brxe-block.dbhu-row > .brxe-div { min-width: 0; }
  /* keep list items compact: excerpt max. 3 lines beside the thumbnail */
  .brxe-block.dbhu-row .brxe-text-basic:not(.dbhu-date) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* embedded videos in old posts carry fixed width/height attributes (560x315): keep 16:9 on narrow screens */
.brxe-post-content iframe { max-width: 100%; }
@media (max-width: 767px) {
  .brxe-post-content iframe[src*="youtube"], .brxe-post-content iframe[src*="youtu.be"], .brxe-post-content iframe[src*="indavideo"],
  .brxe-post-content iframe[src*="vimeo"], .brxe-post-content iframe[data-src*="youtube"], .brxe-post-content iframe[data-src*="indavideo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* --- landscape phones (short viewport) -------------------------------------- */
/* home featured strip: 4 in a row instead of the 2x2 tablet grid (2x2 is taller than the whole screen here) */
@media (orientation: landscape) and (max-height: 600px) { .dbhu-hero-item { width: 25% !important; } }
/* manga volumes / cards keep cover and text side by side instead of stacking full-width images */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 600px) {
  .dbhu-cols { flex-wrap: nowrap; }
  .dbhu-cols .dbhu-col:first-child:not(:last-child) { flex: 0 0 33% !important; max-width: 33% !important; }
  .dbhu-cols .dbhu-col:not(:first-child) { flex: 1 1 0 !important; min-width: 0; }
  .dbhu-cta { flex-direction: row; }
  .dbhu-cta-img { flex: 0 0 45%; }
}

/* --- news features: share, support box, breadcrumbs, post nav, search, load more, back to top ---------------------- */
/* messenger/viber deep links only make sense on touch devices; the native share sheet only where the browser has one */
.dbhu-touch-only { display: none !important; }
@media (pointer: coarse), (max-width: 991px) { .dbhu-touch-only { display: inline-flex !important; } }
.dbhu-native-share { display: none !important; }
.dbhu-native-share.is-ready { display: inline-flex !important; }
.dbhu-share .bricks-button:hover { filter: brightness(1.15); }

/* support box under the article */
.dbhu-support h3 { margin: 0; }
.dbhu-support .dbhu-support-btn { transition: background-color .15s, transform .15s; }
.dbhu-support .dbhu-support-btn:hover { background-color: #a51f1f !important; transform: translateY(-1px); }

/* breadcrumbs */
.dbhu-crumbs { background: #0d0d0d; border-bottom: 1px solid #222; }
.dbhu-crumbs .brxe-breadcrumbs { font-size: 14px; color: #aaa; }
.dbhu-crumbs .brxe-breadcrumbs a { color: #ddd; }
.dbhu-crumbs .brxe-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.dbhu-crumbs .brxe-breadcrumbs .item.current, .dbhu-crumbs .brxe-breadcrumbs [aria-current] { color: #fff; }

/* previous / next article */
.brxe-post-navigation { display: flex; gap: 16px; width: 100%; }
.brxe-post-navigation > * { flex: 1 1 0; min-width: 0; border: 1px solid #333; border-radius: 6px; background: #1a1a1a; padding: 14px 16px; text-decoration: none; transition: border-color .15s; }
.brxe-post-navigation > *:hover { border-color: #c82828; }
.brxe-post-navigation h4 { margin: 4px 0 0; font-size: 16px; font-weight: 400; color: #fff; }
.brxe-post-navigation .label { color: #ff6060; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 767px) { .brxe-post-navigation { flex-direction: column; } }

/* back to top */
.brxe-back-to-top { width: 48px; height: 48px; border-radius: 50%; background: #c82828; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.brxe-back-to-top:hover { background: #a51f1f; }

/* search: category chips, no-results help */
.dbhu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.dbhu-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid #444; border-radius: 18px; background: #1e1e1e; color: #fff; font-size: 14px; text-decoration: none; }
.dbhu-chips a span { color: #aaa; font-size: 12px; }
.dbhu-chips a:hover { background: #333; border-color: #888; }
.dbhu-chips a.is-active { background: #c82828; border-color: #c82828; }
.dbhu-chips a.is-active span { color: #fff; }
.dbhu-noresults { text-align: center; }
.dbhu-noresults h2 { font-size: 20px; margin: 24px 0 8px; }
.dbhu-noresults .dbhu-chips { justify-content: center; }
.dbhu-tips { list-style: none; padding: 0; color: #aaa; }
.dbhu-latest { list-style: none; padding: 0; }
.dbhu-latest li { padding: 6px 0; border-bottom: 1px solid #222; }
.dbhu-latest time { color: #888; font-size: 13px; margin-left: 8px; }

/* live search dropdown */
.dbhu-live { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; margin: 4px 0 0; padding: 4px 0; list-style: none; background: #1a1a1a; border: 1px solid #444; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); text-align: left; max-height: 70vh; overflow: auto; }
.dbhu-live[hidden] { display: none; }
.dbhu-live li a { display: block; padding: 10px 14px; color: #fff; font-size: 15px; line-height: 1.35; text-decoration: none; }
.dbhu-live li:hover a, .dbhu-live li.is-active a { background: #333; }
.dbhu-live-empty { padding: 10px 14px; color: #aaa; font-size: 14px; }
.dbhu-live .dbhu-live-all a { color: #ff6060; border-top: 1px solid #333; }
@media (min-width: 992px) { #brx-header .brxe-search .dbhu-live { left: auto; width: 360px; right: 0; } }

/* load more + archive picker */
.dbhu-more { display: block; margin: 8px auto 20px; min-height: 48px; padding: 0 28px; border: 1px solid #c82828; border-radius: 6px; background: transparent; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.dbhu-more:hover:not(:disabled) { background: #c82828; }
.dbhu-more:disabled { opacity: .6; cursor: progress; }
.dbhu-archpick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.dbhu-archpick label { color: #aaa; font-size: 14px; }
.dbhu-archpick select { min-height: 44px; padding: 0 12px; background: #1e1e1e; color: #fff; border: 1px solid #444; border-radius: 6px; font-size: 15px; }

.dbhu-latest a, .dbhu-noresults .dbhu-tips a { color: #ff6060; text-decoration: underline; text-underline-offset: 2px; }

/* back-to-top arrow (the Bricks element renders an empty button when used outside the builder) */
.brxe-back-to-top::before { content: ""; width: 20px; height: 20px; background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l8 8-1.9 1.9-4.8-4.8V20h-2.6V9.1l-4.8 4.8L4 12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l8 8-1.9 1.9-4.8-4.8V20h-2.6V9.1l-4.8 4.8L4 12z'/%3E%3C/svg%3E") center / contain no-repeat; }
