/**
 * Orestiada Homepage Design - Header Widget Styles
 */

.orestiada-header {
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.25rem 0;
  font-family: var(--orestiada-font-family);
  transition: background-color 0.3s ease, background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* 1. Homepage: Transparent Overlay Header */
.orestiada-header.is-transparent,
body.home .orestiada-header.header-mode-smart_auto {
  position: absolute;
  background: linear-gradient(180deg, rgba(5, 18, 28, 0.68) 0%, rgba(5, 18, 28, 0) 100%);
  border-bottom: none;
  box-shadow: none;
}

/* 2. Inner / Sub-Pages: Solid Side-Menu Dark Gradient Background */
.orestiada-header.is-solid,
body:not(.home) .orestiada-header.header-mode-smart_auto {
  position: relative;
  background: linear-gradient(180deg, var(--orestiada-dark-drawer, #082330) 0%, var(--orestiada-dark-drawer-bottom, #051620) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.orestiada-header.is-solid.position-sticky,
.orestiada-header.is-solid.position-fixed,
body:not(.home) .orestiada-header.header-mode-smart_auto.position-sticky,
body:not(.home) .orestiada-header.header-mode-smart_auto.position-fixed {
  position: sticky;
  top: 0;
}

/* Sticky scroll state for any page */
.orestiada-header.is-sticky {
  position: fixed !important;
  top: 0;
  background: rgba(7, 24, 36, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 0;
}

.orestiada-header-inner {
  width: min(100% - 3rem, 1360px);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Logo Styling
   -------------------------------------------------------------------------- */
.orestiada-brand-logo {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.orestiada-brand-logo:hover,
.orestiada-brand-logo:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.orestiada-brand-logo img {
  width: clamp(108px, 10vw, 152px);
  height: auto;
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Header Actions (Language Toggle + Menu Button)
   -------------------------------------------------------------------------- */
.orestiada-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Language Toggle Button */
.orestiada-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 22, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  padding: 0.38rem 0.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.orestiada-lang-toggle:hover,
.orestiada-lang-toggle:focus-visible {
  background: rgba(8, 22, 34, 0.85);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.orestiada-flag-icon {
  display: block;
  border-radius: 2px;
  overflow: hidden;
}

.orestiada-lang-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
}

/* Hamburger Menu Toggle Button */
.orestiada-menu-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 22, 34, 0.38);
  border: 1.8px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.orestiada-menu-btn:hover,
.orestiada-menu-btn:focus-visible {
  background: var(--orestiada-teal-primary);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.orestiada-menu-bars {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orestiada-menu-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Slide-out Navigation Drawer
   -------------------------------------------------------------------------- */
.orestiada-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, var(--orestiada-dark-drawer) 0%, var(--orestiada-dark-drawer-bottom) 100%);
  color: #ffffff;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
  z-index: 99999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
  display: flex;
  flex-direction: column;
}

.orestiada-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer Backdrop Overlay */
.orestiada-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 12, 19, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.orestiada-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.orestiada-nav-drawer-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.65rem;
  overflow-y: auto;
}

.orestiada-nav-drawer-top {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Close Button (X) - Pinkish button with crisp, highly visible white X */
.orestiada-nav-close-btn {
  position: relative;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--orestiada-magenta-accent, #eb2477) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 6px;
  color: #ffffff !important;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(235, 36, 119, 0.4);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.orestiada-nav-close-btn:hover,
.orestiada-nav-close-btn:focus-visible {
  background-color: var(--orestiada-magenta-hover, #f23886) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(235, 36, 119, 0.6);
}

/* Bulletproof CSS Cross (immune to theme/Elementor SVG stroke resets) */
.orestiada-close-x {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.orestiada-close-x::before,
.orestiada-close-x::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 18px !important;
  height: 2.8px !important;
  background-color: #ffffff !important;
  border-radius: 2px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.orestiada-close-x::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.orestiada-close-x::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.orestiada-close-x svg {
  display: none !important;
}

/* --------------------------------------------------------------------------
   WordPress Menu & Fallback Link Styles
   -------------------------------------------------------------------------- */
.orestiada-nav-drawer-links,
.orestiada-nav-drawer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.orestiada-nav-drawer-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.orestiada-nav-drawer-links ul.sub-menu {
  margin-top: 0.35rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.orestiada-drawer-link,
.orestiada-nav-drawer-links a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.orestiada-drawer-link:hover,
.orestiada-drawer-link:focus-visible,
.orestiada-nav-drawer-links a:hover,
.orestiada-nav-drawer-links a:focus-visible {
  background: rgba(17, 172, 195, 0.25) !important;
  border-color: rgba(17, 172, 195, 0.6) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

.orestiada-nav-drawer-links .current-menu-item > a,
.orestiada-nav-drawer-links .current-menu-parent > a {
  border-color: var(--orestiada-teal-primary);
  background: rgba(0, 155, 179, 0.18);
  color: var(--orestiada-cyan-strong);
}

/* Lock body scroll when drawer open */
body.orestiada-drawer-locked {
  overflow: hidden !important;
}
