/*
Theme Name:  Clean Black – The Strangers
Theme URI:   https://www.the-strangers.it
Description: Child theme of Clean Black – mobile-first modernisation for The Strangers Doors Tribute Band Milano. Preserves dark rock aesthetic, adds responsive hamburger nav, improved typography, SEO, OSM maps.
Template:    clean-black
Version:     2.0.0
Author:      Johannes Emmerling
License:     GNU General Public License v2.0
Tags:        right-sidebar, black, responsive-layout, custom-menu
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;700&family=Oswald:wght@400;600&display=swap');

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg:       #000000;
  --surface:  #0f0f0f;
  --border:   #1e1e1e;
  --text:     #ffffff;
  --muted:    #888888;
  --accent:   #ff4400;
  --accent-h: #ff6633;
  --max-w:    1200px;
  --ease:     .25s ease;
  --radius:   4px;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

/* =============================================
   BASE
   ============================================= */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

#wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   LINKS
   ============================================= */
a, a:link, a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover, a:focus, a:active { color: var(--accent-h); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Merriweather Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--text);
  clear: both;
}

#content h1 { font-size: clamp(22px, 4vw, 36px); margin-bottom: 8px; font-weight: 600; }
#content h2 { font-size: clamp(19px, 3vw, 28px); margin: 16px 0 6px; font-weight: 600; }
#content h3 { font-size: clamp(17px, 2.4vw, 23px); margin: 12px 0 4px; font-weight: 400; }
#content h4 { font-size: clamp(16px, 2vw, 20px); font-weight: 400; padding: 5px 0; }
#content h5, #content h6 { font-size: clamp(15px, 1.8vw, 18px); font-weight: 300; }

#content h1 a, #content h1 a:visited,
#content h2 a, #content h2 a:visited { color: var(--text); }
#content h1 a:hover, #content h2 a:hover { color: var(--text); }

/* Dark overlay – darkens any background image from parent theme */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: -1;
  pointer-events: none;
}

/* =============================================
   HEADER
   ============================================= */
#header {
  width: 100%;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  padding: 0;
}

#header a img {
  display: block;
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
}

/* Social icons – repositioned as flex row */
#header_image_sociable {
  position: absolute !important;
  right: 16px !important;
  top: 12px !important;
  display: flex !important;
  gap: 10px !important;
  align-items: center;
  z-index: 20;
}

#header_image_sociable a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  float: none !important;
}

#header_image_sociable a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
}

#header_image_sociable img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* =============================================
   NAVIGATION – container
   ============================================= */
#navbarfull {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 0;
  margin: 0 0 28px;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 100;
}

#navbarfull.nav-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.7);
}

#navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =============================================
   HAMBURGER BUTTON
   ============================================= */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

#nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

#nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   NAVIGATION – menu items
   ============================================= */
/* Override parent float-based layout */
#nav { margin: 0; padding: 0; width: 100%; }

/* ul#nav = the actual nav <ul> element (id="nav") – main horizontal menu */
ul#nav {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  float: none !important;
  flex: 1;
}

#nav li {
  float: none !important;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

#nav li a,
#nav li a:link,
#nav li a:visited {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
  margin: 0;
}

#nav li a:hover,
#nav li a:active,
#nav li a:focus {
  color: var(--text);
  background: rgba(255,68,0,.12);
  text-decoration: none;
}

/* Dropdowns */
#nav li ul {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  background: rgba(5,5,5,.97);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  z-index: 9999;
  flex-direction: column;
}

#nav li:hover > ul { display: flex !important; }

#nav li li a,
#nav li li a:link,
#nav li li a:visited {
  font-size: 14px;
  padding: 10px 16px;
  width: 100%;
  float: none;
  white-space: normal;
  color: var(--accent);
}

#nav li ul a:hover { color: var(--text); }

/* =============================================
   LAYOUT – main + sidebar
   ============================================= */
#homepage {
  float: left;
  width: 64%;
  margin: 0;
  padding: 0 28px 0 0;
  line-height: 1.65;
}

#sidebar {
  float: right;
  width: 31%;
  margin: 0;
  padding: 0 0 24px;
  clear: right;
  word-wrap: break-word;
  overflow: hidden;
}

/* Full-width pages */
#onebar-content { width: 100%; }
#onebar-postarea {
  width: 100%;
  margin: 0 auto;
  padding: 5px 0;
}
#onebar-postarea img,
#onebar-postarea a img { max-width: 100%; height: auto; }

/* =============================================
   POST GRID / LOOP
   ============================================= */
.grid {
  border-bottom: 1px solid var(--border);
  padding: 0 0 20px;
  margin: 0 0 28px;
  clear: both;
  float: none;
  width: 100%;
}

.entry-content {
  margin: 12px 0;
  word-wrap: break-word;
}

.postarea p { margin: 0; padding: 3px 0 16px; }
.postarea ul, .postarea ol { margin: 10px 0 0 28px; padding: 0; }
.postarea ul li { list-style-type: disc; padding: 0 0 4px; margin: 0 0 3px; }

/* =============================================
   EVENTS MANAGER
   ============================================= */
/* Event list items */
.em-event,
article.type-event,
.em-events-list li,
.em-events-list .s-ev,
.em-events-events-list .s-ev {
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 6px;
  transition: border-left-color var(--ease), background var(--ease);
  list-style: none;
}

.em-event:hover,
article.type-event:hover,
.em-events-list .s-ev:hover {
  border-left-color: var(--accent-h);
  background: rgba(255,68,0,.08);
}

/* Remove default ul margin/padding so old list format doesn't add gaps */
.em-events-list ul,
.em-events-events-list ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ---- Compact event list: text white, no empty-p gaps, tight spacing ---- */

/* All text inside events list → white */
.em-events-list p,
.em-events-list span,
.em-events-list strong,
.em-events-list small {
  color: #ffffff !important;
}

/* Links stay orange */
.em-events-list a,
.em-events-list a:visited { color: var(--accent) !important; }
.em-events-list a:hover   { color: var(--accent-h) !important; }

/* Kill empty / whitespace-only paragraphs */
.em-events-list p:empty  { display: none !important; margin: 0 !important; padding: 0 !important; }

/* Tight paragraph spacing */
.em-events-list p {
  margin:  2px 0 !important;
  padding: 0    !important;
  line-height: 1.4 !important;
}

/* Limit images in event list */
.em-events-list img,
.em-events-events-list img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
}

/* Event date badges */
.em-event-date,
.em-event-start-date,
.em-event-end-date,
[class*="em-date"] {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hide ALL booking/ticketing UI */
.em-booking-form,
#em-booking-form,
.em-booking-section,
.em-tickets-form,
.em-tickets,
.em-bookings-form,
div[class*="booking"],
#em-event-bookings,
.em-login-buttons,
.em-login-buttons-register { display: none !important; }

/* Single event venue block */
.em-event-location,
.em-location-address { margin: 12px 0; }

/* OSM Map container (injected via PHP) */
.event-osm-map {
  margin: 24px 0 16px;
  padding: 20px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
}

.event-osm-map h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

.event-osm-map .osm-address {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.event-osm-map iframe {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  display: block;
  width: 100%;
  min-height: 280px;
}

.event-osm-map .osm-link {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

.event-osm-map .osm-link a { color: var(--muted); }
.event-osm-map .osm-link a:hover { color: var(--accent); }

/* Compact Facebook follow bar (injected on homepage) */
.strangers-fb-bar {
  margin: 12px 0 4px;
  padding: 8px 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.strangers-fb-bar a {
  color: #4267B2;
  font-weight: 600;
  font-size: 13px;
}
.strangers-fb-bar a:hover { color: #5b7bd5; }
.strangers-fb-bar iframe {
  display: block;
  border: none !important;
  overflow: hidden;
  vertical-align: middle;
}

/* =============================================
   EM EVENT LIST – compact .s-ev block format
   ============================================= */
/* s-ev is the inner wrapper in each list item */
.s-ev { font-size: 14px; }
.s-ev strong { font-size: 15px; display: block; margin-bottom: 3px; }

/* Map shown inline in list view – shorter height */
.em-events-list .event-osm-map {
  margin: 8px 0 4px;
  padding: 12px 14px;
}
.em-events-list .event-osm-map iframe {
  min-height: 180px !important;
  height: 180px;
}

/* =============================================
   YOTUWP VIDEO GRID – compact titles
   ============================================= */
h3.yotu-video-title {
  font-size: 11px !important;
  line-height: 1.3 !important;
  margin: 4px 0 0 !important;
  font-weight: 400;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* All-venues map (concerts page footer) */
#strangers-venues-map-wrap {
  margin: 32px 0 16px;
  padding: 20px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
}
#strangers-venues-map-wrap h3 {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  margin: 0 0 14px;
}
#strangers-venues-map {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* EM single-event detail table / definition list */
.single-event dl dt,
.em-event dl dt,
article.type-event dl dt,
.em-event-details dt {
  color: var(--accent) !important;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}

.single-event dl dd,
.em-event dl dd,
article.type-event dl dd,
.em-event-details dd,
.single-event p,
.em-event p,
article.type-event p {
  color: var(--text) !important;
}

/* Hide the heavy Facebook page-plugin widget (loading spinner) */
/* .fb_iframe_widget NOT hidden here – the SDK share button uses that class */
.fb-page,
.fb-xfbml-parse-ignore { display: none !important; }

/* Also hide the sidebar FB page iframe embedded as a text widget */
iframe[src*="facebook.com/plugins/page"] { display: none !important; }
#text-2 { display: none !important; }

/* =============================================
   GALLERY
   ============================================= */
/* Folder Gallery plugin overrides */
.fg-gallery-container,
.foldergallery,
.folderslideshowgallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 6px !important;
  float: none !important;
  width: 100% !important;
}

.fg-gallery-container img,
.foldergallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
  transition: opacity var(--ease), transform var(--ease);
  display: block;
}

.fg-gallery-container img:hover,
.foldergallery img:hover {
  opacity: 0.82;
  transform: scale(1.03);
}

/* Native WP gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin: 12px 0 20px;
}
.gallery-item { margin: 0 !important; }
.gallery-item img { width: 100%; height: auto; border-radius: 3px; }

/* =============================================
   SIDEBAR
   ============================================= */
#sidebar {
  font-size: 14px;
  color: #dddddd;
  line-height: 1.5;
}

#sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  font-weight: 400;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.headingred {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  font-weight: 400;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

#sidebar a,
#sidebar a:visited {
  color: var(--accent);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

#sidebar a:hover { color: var(--accent-h); }

#sidebar ul { list-style: none; margin: 0; padding: 0; }
#sidebar ul li { margin: 0 0 6px; padding: 0; list-style: none; }
#sidebar ul li li {
  background: none;
  padding: 0 0 4px 14px;
  margin: 0;
  border-left: 2px solid var(--border);
}

.widgetarea { margin: 0 0 16px; padding: 0; width: 100%; }

/* =============================================
   SEARCH
   ============================================= */
input#s {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  color: #cccccc;
  font-size: 14px;
  font-weight: 300;
  padding: 8px 12px;
  width: 70%;
  transition: border-color var(--ease);
}
input#s:focus { border-color: var(--accent); outline: none; }

#searchsubmit {
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 400;
  padding: 8px 14px;
  transition: background var(--ease);
}
#searchsubmit:hover { background: var(--accent-h); }

/* =============================================
   MISC
   ============================================= */
.not-found {
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  margin: 10px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.descriptionbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
  padding: 16px;
}

.datetop { color: var(--muted); font-size: 13px; }

embed, iframe, object { max-width: 100%; }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0 20px 0;
  padding: 8px 0 8px 20px;
  background: none;
  font-size: 1em;
  font-style: italic;
  color: #cccccc;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 0;
  margin-top: 48px;
  clear: both;
  display: block;
  width: 100%;
  height: auto;
}

#footer a, #footer a:visited { color: var(--accent); }
#footer a:hover { color: var(--accent-h); }

/* =============================================
   SCROLLBAR
   ============================================= */
html { overflow-y: scroll; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =============================================
   GDPR CONSENT BANNER
   ============================================= */
#gdpr-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8,8,8,.97);
  border-top: 1px solid var(--border);
  padding: 10px 24px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
#gdpr-banner.gdpr-visible { display: flex; }
#gdpr-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  min-width: 200px;
}
#gdpr-banner a { color: var(--accent); font-size: 13px; }
.gdpr-btns { display: flex; gap: 8px; flex-shrink: 0; }
#gdpr-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 6px 18px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 400;
  transition: background var(--ease);
}
#gdpr-accept:hover { background: var(--accent-h); }
#gdpr-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: color var(--ease), border-color var(--ease);
}
#gdpr-decline:hover { color: var(--text); border-color: #555; }

/* =============================================
   MEDIA QUERIES
   ============================================= */

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  #homepage { width: 60%; padding-right: 20px; }
  #sidebar  { width: 36%; }
  #nav li a { font-size: 14px; padding: 12px 11px; }
}

/* ---- Mobile (≤ 700px) ---- */
@media (max-width: 700px) {
  #wrap { padding: 0 14px; }

  /* Show hamburger */
  #nav-toggle { display: flex; }

  /* Collapse main nav – absolute dropdown below navbar */
  ul#nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    flex-wrap: nowrap;
    background: rgba(0,0,0,.97);
    border-top: 1px solid var(--border);
    flex: none;
  }

  ul#nav.nav-open { display: flex !important; }

  #nav li { width: 100%; }

  #nav li a,
  #nav li a:link,
  #nav li a:visited {
    font-size: 17px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
  }

  /* Disable hover-based dropdowns on mobile */
  #nav li:hover > ul { display: none !important; }

  /* Dropdown */
  #nav li ul {
    position: static !important;
    width: 100% !important;
    border: none;
    border-top: none;
  }

  #nav li ul.sub-open { display: flex !important; flex-direction: column; }

  /* Stack layout */
  #homepage {
    float: none;
    width: 100%;
    padding: 0;
  }

  #sidebar {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0 0 20px;
    clear: both;
  }

  /* Social icons smaller on mobile */
  #header_image_sociable {
    right: 8px !important;
    top: 8px !important;
    gap: 6px !important;
  }

  #header_image_sociable a {
    width: 32px;
    height: 32px;
  }

  /* Galleries */
  .fg-gallery-container,
  .foldergallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  }

  .fg-gallery-container img,
  .foldergallery img { height: 120px; }

  .event-osm-map { padding: 14px; }
  .event-osm-map iframe { min-height: 220px; }
}

/* ---- Small mobile (≤ 420px) ---- */
@media (max-width: 420px) {
  #nav li a { font-size: 16px; padding: 14px 16px; }

  .fg-gallery-container,
  .foldergallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .fg-gallery-container img,
  .foldergallery img { height: 110px; }

  input#s { width: 65%; }
}
