/* =========================================================
   MOJE PIRENEJE — SINGLE ARTICLE REDESIGN
   For: Pico de Aneto – historia pierwszego wejścia
   Load after OceanWP and plugin stylesheets.
   ========================================================= */

:root {
  --mp-black: #000000;
  --mp-ink: #0d1419;
  --mp-panel: #10181e;
  --mp-blue: #0693e3;
  --mp-line: #1e73be;
  --mp-red: #dd3333;
  --mp-white: #ffffff;
  --mp-muted: #b8c1c8;
  --mp-radius: 18px;
  --mp-shadow: 0 24px 60px rgba(0, 0, 0, .48);
}

/* Page shell */
body.single-post {
  color: var(--mp-white);
  background:
    radial-gradient(circle at 8% 0%, rgba(6,147,227,.14), transparent 31rem),
    radial-gradient(circle at 92% 28%, rgba(221,51,51,.08), transparent 25rem),
    var(--mp-ink);
  font-family: Bitter, Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
}

body.single-post #outer-wrap { padding: 22px; }

body.single-post #wrap {
  width: min(1300px, 100%);
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(30,115,190,.7);
  border-radius: 22px;
  background: var(--mp-black);
  box-shadow: var(--mp-shadow);
}

body.single-post .container {
  width: min(1140px, calc(100% - 48px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

/* Header + menu */
body.single-post #site-header {
  position: relative;
  z-index: 100;
  min-height: 84px;
  border-bottom: 1px solid rgba(30,115,190,.58);
  background: rgba(0,0,0,.94);
}

body.single-post #site-header-inner {
  display: flex;
  min-height: 84px;
  padding: 0 !important;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body.single-post #site-logo { flex: 0 1 320px; }
body.single-post #site-logo #site-logo-inner { display: flex; height: auto !important; align-items: center; }
body.single-post #site-logo .custom-logo {
  display: block;
  width: min(290px, 100%);
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
}

body.single-post #site-navigation-wrap { display: block; margin-left: auto; }
body.single-post #menu-glowne,
body.single-post #menu-glowne .sub-menu { margin: 0; padding: 0; list-style: none; }
body.single-post #menu-glowne { display: flex; align-items: center; gap: 3px; }
body.single-post #menu-glowne > li { position: relative; display: block; margin: 0 !important; padding: 0 !important; }

body.single-post #site-navigation-wrap .dropdown-menu > li > a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 14px !important;
  align-items: center;
  color: var(--mp-white);
  background: transparent !important;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  transition: color .22s ease;
}

body.single-post #site-navigation-wrap .dropdown-menu > li > a .text-wrap { position: relative; }
body.single-post #site-navigation-wrap .dropdown-menu > li > a .text-wrap::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--mp-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
body.single-post #site-navigation-wrap .dropdown-menu > li:hover > a,
body.single-post #site-navigation-wrap .dropdown-menu > li:focus-within > a { color: var(--mp-red); }
body.single-post #site-navigation-wrap .dropdown-menu > li:hover > a .text-wrap::after,
body.single-post #site-navigation-wrap .dropdown-menu > li:focus-within > a .text-wrap::after { transform: scaleX(1); }
body.single-post #menu-glowne .nav-arrow { margin-left: 5px; font-size: 11px; }

/* Compact dropdown — prevents the oversized-list issue */
body.single-post #menu-glowne > li > .sub-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 1000;
  display: block !important;
  width: 245px;
  padding: 8px !important;
  border: 1px solid rgba(30,115,190,.75);
  border-radius: 12px;
  background: #05080a !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body.single-post #menu-glowne > li:hover > .sub-menu,
body.single-post #menu-glowne > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.single-post #menu-glowne .sub-menu li { display: block !important; margin: 0 !important; padding: 0 !important; }
body.single-post #menu-glowne .sub-menu li a.menu-link {
  display: block;
  min-height: 0;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 7px;
  color: var(--mp-white) !important;
  background: transparent !important;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}
body.single-post #menu-glowne .sub-menu li a.menu-link:hover { color: var(--mp-red) !important; background: rgba(6,147,227,.14) !important; }
body.single-post #menu-glowne .sub-menu .text-wrap::after { display: none; }
body.single-post .search-toggle-li a { color: var(--mp-blue) !important; }

/* Article layout */
body.single-post #main { padding: 76px 0 88px; background: transparent; }
body.single-post #content-wrap { padding: 0; }
body.single-post #primary,
body.single-post #content { width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.single-post #post-32 { max-width: 920px; margin: 0 auto; }

body.single-post .entry-header {
  margin: 0 0 44px;
  padding: 0 0 34px;
  border-bottom: 1px solid rgba(30,115,190,.64);
  text-align: center;
}
body.single-post .entry-header::before {
  display: block;
  margin-bottom: 16px;
  color: var(--mp-blue);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  content: "Pireneje / historia wypraw";
}
body.single-post .single-post-title.entry-title {
  max-width: 850px;
  margin: 0 auto;
  color: var(--mp-white) !important;
  font-family: Bitter, Georgia, serif !important;
  font-size: clamp(38px, 5.5vw, 68px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
}

/* Reading typography */
body.single-post .entry-content { color: #f3f4f4; }
body.single-post .entry-content > p,
body.single-post .entry-content > h2,
body.single-post .entry-content > figure,
body.single-post .entry-content > .wp-block-columns,
body.single-post .entry-content > .wp-block-uagb-blockquote { max-width: 780px; margin-right: auto; margin-left: auto; }

body.single-post .entry-content p {
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.8;
}
body.single-post .entry-content > h2 {
  margin-top: 2.8em;
  margin-bottom: 1.25em;
  padding: 25px 28px;
  border: 1px solid rgba(30,115,190,.68);
  border-left: 5px solid var(--mp-blue);
  border-radius: 0 var(--mp-radius) var(--mp-radius) 0;
  background: linear-gradient(125deg, rgba(6,147,227,.13), rgba(16,24,30,.88));
  color: var(--mp-white) !important;
  font-family: Bitter, Georgia, serif !important;
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 400;
  line-height: 1.38;
}
body.single-post .entry-content > h2 em { font-style: italic; }
body.single-post .entry-content a { border-bottom: 1px solid rgba(6,147,227,.7); color: var(--mp-blue); }
body.single-post .entry-content a:hover { border-color: var(--mp-red); color: var(--mp-red); }

/* Images, captions and columns */
body.single-post .entry-content figure.wp-block-image {
  margin-top: 2.3em;
  margin-bottom: 2.3em;
  overflow: hidden;
  border: 1px solid rgba(30,115,190,.58);
  border-radius: var(--mp-radius);
  background: var(--mp-panel);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
body.single-post .entry-content figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
body.single-post .entry-content figure.wp-block-image figcaption {
  margin: 0;
  padding: 13px 18px 15px;
  color: var(--mp-muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}
body.single-post .entry-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 2.3em;
  margin-bottom: 2.3em;
}
body.single-post .entry-content .wp-block-column { min-width: 0; }
body.single-post .entry-content .wp-block-columns figure.wp-block-image { margin: 0; }
body.single-post .entry-content .wp-block-columns p { margin: 0; }

/* Quotes */
body.single-post .uagb-blockquote__outer-wrap { margin-top: 2.25em !important; margin-bottom: 2.25em !important; }
body.single-post blockquote.uagb-blockquote,
body.single-post .wp-block-quote {
  margin: 0;
  padding: 30px 34px;
  border: 1px solid rgba(30,115,190,.7) !important;
  border-left: 5px solid var(--mp-blue) !important;
  border-radius: 0 var(--mp-radius) var(--mp-radius) 0;
  background: #0b1217;
  color: var(--mp-white);
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
}
body.single-post .uagb-blockquote__content {
  color: var(--mp-white);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
}
body.single-post .uagb-blockquote__author,
body.single-post blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--mp-blue) !important;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Share and post meta */
body.single-post .entry-share {
  display: flex;
  max-width: 780px;
  margin: 60px auto 0;
  padding: 20px 0;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(30,115,190,.58);
  border-bottom: 1px solid rgba(30,115,190,.58);
}
body.single-post .entry-share .social-share-title {
  margin: 0;
  color: var(--mp-muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.single-post .entry-share ul { display: flex; gap: 9px; margin: 0; padding: 0; list-style: none; }
body.single-post .entry-share li a {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(30,115,190,.7);
  border-radius: 50%;
  background: transparent;
}
body.single-post .entry-share li a:hover { border-color: var(--mp-red); background: var(--mp-red); }
body.single-post .entry-share svg { width: 17px; height: 17px; fill: var(--mp-white); }

body.single-post #post-32 > ul.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 19px;
  margin: 22px auto 0;
  padding: 0;
  color: var(--mp-muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  list-style: none;
}
body.single-post #post-32 > ul.meta li { margin: 0; padding: 0; }
body.single-post #post-32 > ul.meta i { margin-right: 5px; color: var(--mp-blue); }
body.single-post #post-32 > ul.meta a { color: var(--mp-muted); }
body.single-post #post-32 > ul.meta a:hover { color: var(--mp-red); }

/* Footer + scroll button */
body.single-post #footer-bottom {
  padding: 23px 0 !important;
  border-top: 1px solid rgba(30,115,190,.56);
  background: #000;
}
body.single-post #copyright {
  color: var(--mp-muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}
body.single-post #scroll-top {
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #000;
  background: var(--mp-blue);
  box-shadow: 0 12px 28px rgba(0,0,0,.34);
  line-height: 46px;
  text-align: center;
}
body.single-post #scroll-top:hover { background: var(--mp-red); }

/* Mobile */
@media (max-width: 767px) {
  body.single-post #outer-wrap { padding: 0; }
  body.single-post #wrap { border: 0; border-radius: 0; }
  body.single-post .container { width: min(100% - 36px, 1140px); }
  body.single-post #site-header,
  body.single-post #site-header-inner { min-height: 72px; }
  body.single-post #site-logo { max-width: 245px; }
  body.single-post #site-logo .custom-logo { max-height: 54px; }
  body.single-post #site-navigation-wrap { display: none; }
  body.single-post .oceanwp-mobile-menu-icon { display: block; margin-left: auto; }
  body.single-post .oceanwp-mobile-menu-icon a { color: var(--mp-white); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 14px; }
  body.single-post #main { padding: 58px 0 70px; }
  body.single-post .entry-header { margin-bottom: 33px; padding-bottom: 26px; }
  body.single-post .entry-content > h2 { padding: 21px 20px; }
  body.single-post .entry-content .wp-block-columns { grid-template-columns: 1fr; gap: 18px; }
  body.single-post blockquote.uagb-blockquote,
  body.single-post .wp-block-quote { padding: 24px 21px; }
  body.single-post .entry-share { align-items: flex-start; flex-direction: column; gap: 16px; }
  body.single-post #scroll-top { right: 15px; bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  body.single-post *, body.single-post *::before, body.single-post *::after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}