/*
Theme Name: A Fülke
Theme URI: https://new.afulke.hu
Author: A Fülke Egyesület
Description: A Fülke fejlécének reszponzív WordPress-alapja.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #071019;
  --blue: #064dff;
  --line: #17202a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #fff; color: var(--ink); font-family: "Space Grotesk", Arial, Helvetica, sans-serif; }
a { color: inherit; }

.site-header {
  width: min(100% - 16px, 1120px);
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  align-items: center;
  border-bottom: 2px solid var(--line);
  position: relative;
  z-index: 30;
}

.brand { height: 100%; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-logo { width: 210px; height: 64px; display: block; background: url("header-logo.png") center / contain no-repeat; }

.primary-nav { height: 100%; display: flex; justify-content: center; align-items: stretch; white-space: nowrap; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; padding: 0 5px; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.primary-nav a.is-active { color: var(--blue); }
.primary-nav a.is-active::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 0; height: 3px; background: var(--blue); }
.primary-nav a:hover { color: var(--blue); }

.header-actions { position: relative; width: 210px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.search-button { position: relative; width: 22px; height: 22px; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; }
.search-button::before { content: ""; position: absolute; top: 2px; left: 1px; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; }
.search-button::after { content: ""; position: absolute; top: 14px; left: 14px; width: 8px; height: 2px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; }
.search-panel { position: fixed; top: 72px; left: 0; right: 0; z-index: 25; padding: 20px 24px 24px; background: rgba(255,255,255,.98); border-bottom: 2px solid var(--line); box-shadow: 0 14px 28px rgba(7,16,25,.12); transform: perspective(900px) rotateX(-88deg); transform-origin: top center; opacity: 0; visibility: hidden; pointer-events: none; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s linear .5s; }
body.search-open .search-panel { transform: perspective(900px) rotateX(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.search-form { width: min(100%,760px); margin: 0 auto; display: flex; align-items: center; border-bottom: 3px solid var(--blue); }
.search-form input { min-width: 0; flex: 1; padding: 7px 0 9px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 26px/1.1 "Space Grotesk", Arial, sans-serif; }
.search-form input::placeholder { color: #8a949e; }
.search-submit { padding: 0 2px 3px 18px; border: 0; background: transparent; color: var(--blue); font: 600 30px/1 "Space Grotesk", Arial, sans-serif; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.primary-nav .search-button { flex: 0 0 22px; align-self: center; margin-left: 12px; }
.support-button { min-width: 210px; height: 54px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--blue); color: #fff; font-size: 18px; line-height: 1.08; font-weight: 700; text-decoration: none; white-space: nowrap; }
.support-button .support-arrow { font-size: 23px; line-height: 1; }
.support-label { display: block; text-align: left; }
.support-arrow { margin-left: auto; }
.mobile-search-form { display: none; }
.menu-button { display: none; }

@media (max-width: 800px) {
  .site-header { width: 100%; height: 58px; padding: 0 16px; grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 9px; }
  .brand-logo { width: 110px; height: 47px; background-size: contain; }
  .search-panel { top: 58px; padding: 16px; }
  .search-form input { font-size: 20px; }
  .primary-nav .search-button { display: none; }

  .primary-nav {
    position: fixed;
    top: 58px;
    left: 16px;
    right: 16px;
    z-index: 20;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 0 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: 12px 14px 0 rgba(7, 16, 25, .12);
    transform: perspective(900px) rotateY(-88deg) rotateZ(-1deg);
    transform-origin: left top;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: transform .62s cubic-bezier(.2, .8, .2, 1), opacity .18s ease, visibility 0s linear .62s;
  }
  .primary-nav::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 16, 25, .12), transparent 12%, transparent 82%, rgba(6, 77, 255, .08)); }
  body.menu-open::after { content: ""; position: fixed; inset: 58px 0 0; z-index: 10; background: rgba(7, 16, 25, .12); animation: newspaper-backdrop .62s ease both; }
  body.menu-open .primary-nav { transform: perspective(900px) rotateY(0) rotateZ(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .62s cubic-bezier(.2, .8, .2, 1), opacity .18s ease; }
  .primary-nav a { min-height: 44px; padding: 0 22px; border-bottom: 1px solid #dbe0e5; font-size: 17px; justify-content: flex-start; transform: translateX(-18px); opacity: 0; transition: transform .35s ease, opacity .25s ease; }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a.is-active::after { left: 22px; right: auto; width: 82px; }
  body.menu-open .primary-nav a { transform: translateX(0); opacity: 1; }
  body.menu-open .primary-nav a:nth-child(1) { transition-delay: .13s; }
  body.menu-open .primary-nav a:nth-child(2) { transition-delay: .18s; }
  body.menu-open .primary-nav a:nth-child(3) { transition-delay: .23s; }
  body.menu-open .primary-nav a:nth-child(4) { transition-delay: .28s; }
  body.menu-open .primary-nav a:nth-child(5) { transition-delay: .33s; }
  body.menu-open .primary-nav a:nth-child(6) { transition-delay: .38s; }
  .mobile-search-form { display: flex; width: auto; margin: 12px 22px 2px; border-bottom: 3px solid var(--blue); }
  .mobile-search-form input { padding: 8px 0 9px; font-size: 17px; }
  .header-actions { display: contents; }
  .support-button { min-width: 160px; height: 48px; padding: 0 12px; gap: 10px; font-size: 16px; line-height: 1.05; justify-self: center; }
  .menu-button { position: relative; width: 28px; height: 28px; padding: 0; display: block; border: 0; background: transparent; }
  .menu-button::before, .menu-button::after, .menu-button span { content: ""; position: absolute; left: 0; width: 28px; height: 2px; background: var(--ink); }
  .menu-button::before { top: 4px; }
  .menu-button span { top: 13px; }
  .menu-button::after { top: 22px; }
  .menu-button::before, .menu-button::after, .menu-button span { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
  body.menu-open .menu-button::before { transform: translateY(9px) rotate(45deg); }
  body.menu-open .menu-button span { opacity: 0; }
  body.menu-open .menu-button::after { transform: translateY(-9px) rotate(-45deg); }
}

@keyframes newspaper-backdrop { from { opacity: 0; } to { opacity: 1; } }
