﻿/*
 * Header - EME Könyvkiadó design
 * Design: frontpage mockup / brand identity
 */

/* =========================================
   Header Top Bar
   ========================================= */
.header-top {
  position: relative;
  width: 100%;
  margin: 0;
  background-color: var(--nav-bg);
  border-bottom: 1px solid rgba(145, 39, 48, 0.4);
  z-index: 20;
}
.header-top .container {
  background-color: transparent;
}
.header-top-container {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 38px;
  padding: 4px 0;
}
.region-header-top-left,
.region-header-top-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.header-top-block p:last-of-type {
  margin: 0;
}
.header-top p,
.header-top a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.header-top a:hover {
  color: #fff;
}
.header-top ul {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}
.header-top ul li a {
  padding: 2px 10px;
  border-right: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
}
.header-top ul li:first-child a {
  padding-left: 0;
}
.header-top-block .block-title {
  display: none;
}

/* =========================================
   Header Main — brand area
   ========================================= */
.header {
  position: relative;
  width: 100%;
  margin: 0;
  background-image: url("../images/header-bg.jpg");
  background-size: auto 60px;
  background-position: center top;
  background-repeat: repeat-x;
}
.header .container::before,
.header .container::after {
  content: "";
  display: inline-block;
  position: absolute;
  bottom: 0;
  height: 40px;
  width: 50%;
  background-color: #eee9dd;
}
.header .container::after {
  left: 100%;
  border-radius: 24px;
}
.header .container::before {
  right: 100px;
  width: 100%;
  border-radius: 24px;
  background-color: var(--primary);
}

.header .container {
  background-color: transparent;
  position: relative;
  z-index: 1;
  padding: 0;
}
/* Header main */
.header-main {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
.header-container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--header-height);
}

/* Site branding: logo + name */
.site-branding {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.site-logo {
  flex-shrink: 0;
  border-radius: 50% 50%;
  padding: 0 0 0 0;
  overflow: hidden;
  background-color: #FFF;
  position: relative;
}
header .site-logo {
  margin-bottom: -40px;
  margin-top: 40px;
  top: 12px;
  z-index: 1;
}
.site-logo img {
  display: block;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.site-logo {
  width: 33%;
}
.site-name-slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  max-width: none;
}
header .site-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 4.5em 0em 0em 0em;
}
.site-slogan {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}
.site-name-slogan a {
  color: #000;
  font-weight: 500;
  text-transform: uppercase;

}

/* Decorative rule below site name */
.site-name-slogan::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(to right, rgba(255,255,255,0.7), transparent);
}

/* Header right — icons area */
.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-content: flex-end;
  padding: 4px 0;
}

/* =========================================
   Navigation bar
   ========================================= */
.primary-menu-wrapper {
  background-color: var(--primary);
  flex: 1 1 auto;
  border-radius: 0 24px 24px 0;
  margin-left: 65px;
  position: absolute;
}

/* Menu drawer (mobile) */
.menu-wrap {
  position: fixed;
  background-color: var(--nav-bg);
  top: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  width: 66%;
  max-width: 480px;
  min-width:200px;
  box-shadow: none;
  z-index: 25;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-wrap .menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-wrap: wrap;
  margin: 0;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  z-index: 30;
  list-style: none;
  list-style-type: none;
}
.menu-wrap .menu li {
  position: relative;
  padding: 0;
}
.menu-wrap a {
  display: block;
  padding: 0.5rem 1rem;
  color: #FFF;
}
.menu-wrap a:hover {
  background-color: rgba(145, 39, 48, 0.25);
  color: #fff;
}
.menu-wrap .menu > li a::after {
  content: none;
}
.menu-wrap .submenu {
  position: relative;
  display: flex;
  flex-direction: column;
  font-weight: 400;
  margin: 0;
  padding: 0;
  z-index: 30;
  list-style: none;
  list-style-type: none;
  background-color: rgba(0,0,0,0.2);
}
.menu-wrap .submenu li a,
.menu-wrap .submenu li > span {
  display: flex;
  width: 100%;
  padding: 0.45rem 1rem;
}
.menu-wrap .menu-item a,
.menu-wrap .menu-item > span {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.menu-wrap .menu-item a:hover {
  border-bottom-color: rgba(255,255,255,0.1);
}
.menu-wrap .submenu li > a,
.menu-wrap .submenu li > span {
  padding-left: 2rem;
}
.menu-wrap .submenu .submenu .menu-item > a,
.menu-wrap .submenu .submenu .menu-item > span {
  padding-left: 3.5rem;
}

/* Mobile Menu hamburger */
.mobile-menu {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  overflow: hidden;
  cursor: pointer;
  margin-left: auto;
  justify-self: end;
}
.mobile-menu span {
  width: 100%;
  height: 2px;
  transform-origin: left;
  background-color: #000;
  transition: all 0.4s ease;
  border-radius: 1px;
}
.menu-icon-active span:first-child {
  transform: rotate(45deg);
}
.menu-icon-active span:last-child {
  transform: rotate(-45deg);
}
.menu-icon-active span:nth-child(2) {
  opacity: 0;
}
.close-mobile-menu {
  display: grid;
  place-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  z-index: 48;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s;
}
.close-mobile-menu:hover {
  background-color: var(--primary);
}
.active-menu .menu-wrap {
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}
.active-menu .menu {
  display: flex;
}

/* Slide-up animation */
@keyframes slideUp {
  0%  { transform: translateY(16px); opacity: 0; }
  100%{ transform: translateY(0);    opacity: 1; }
}

/* =========================================
   Search overlay
   ========================================= */
.full-page-search {
  position: relative;
  padding: 0;
  margin: 0 6px;
}
.search-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.search-icon:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}
.search-icon i {
  font-size: 24px;
}
.search-box {
  position: fixed;
  background-color: var(--lighter);
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transform: translate(0, -100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.search-box.open {
  transform: translate(0, 0);
}
.search-box-content {
  position: relative;
  padding: 2rem 0;
  text-align: center;
  z-index: 60;
}
.search-box-content form {
  margin: 0;
}
.header-search-close {
  position: absolute;
  top: 1rem;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
}
.header-search-close:hover {
  background-color: var(--primary);
  color: #fff;
}
.search-box-content .block {
  width: 100%;
  margin: 0;
}
.search-box-content .block-title,
.search-box-content form label {
  display: none;
  color: #000000;
}
.search-box-content input[type="search"] {
  width: 100%;
  margin: 1.5rem 0;
  padding: 0.5rem 2.5rem 0.5rem 0;
  font-size: 1.3rem;
  font-family: "BonaNova", "Georgia", serif;
  background: url("../images/icons/search.svg") center right no-repeat;
  background-size: 1.4rem;
  border: 0;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
  outline: 0;
  color: var(--color-heading);
}
.search-box-content input[type="submit"] {
  display: inline-block;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
}

/* =========================================
   Page Header / Breadcrumb area
   ========================================= */
.page-header {
  position: relative;
  width: 100%;
  margin: 0;
  background-color: var(--lighter);
  border-bottom: 1px solid var(--border-light);
}
.region-page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}
.breadcrumb {
  position: relative;
  width: 100%;
}
.breadcrumb-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}
.breadcrumb-item {
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.breadcrumb-item a {
  color: var(--color-muted);
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item span {
  font-size: 0.78rem;
  margin: 0 6px;
  color: var(--border);
}
