/*
Theme Name: London Pain 2026
Theme URI: https://r-logic.eu/themes/londonpain2026
Author: Reverse-Logic Ltd.
Description: Minimal, fast classic WordPress theme with a sticky sidebar menu on desktop and a hamburger-driven drawer on mobile. Container width is 1200px. Uses its own CSS and a tiny vanilla JS file for the mobile menu.
Version: 1.1.0
Text Domain: londonpain2026
Tags: minimal, two-columns, sticky-sidebar, responsive
*/

/* ---- CSS Reset (very light) ---- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0; padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
}

h1, h2, h3 {
  color: #302581;
}

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

/* ---- Layout ---- */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.site-container {
  padding: 0 16px;
}

.site-footer {
  margin-top: 24px;
  padding: 20px;
}

.site-title, .site-description {
  margin: 0;
  line-height: 1.2;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: unset;
}

.header-image {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 0;
}

.header-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hamburger {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.site-main {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}

.sidebar {
  position: sticky;
  top: 24px;
  flex: 0 0 30%;
  min-width: 220px;
}

.content-area {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar nav {
  display: block;
}

.sidebar .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.sidebar .menu li {
  font-size: 1.2rem;
}

.sidebar .menu li:last-child {
  border-bottom: none;
}

.sidebar .menu a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: #222;
}

.sidebar .menu a:hover,
.sidebar .menu .current-menu-item > a,
.sidebar .menu .current_page_item > a,
.site-footer a {
  text-decoration: none;
  color: #302581;
}

.sidebar-social {
  border-top: 1px solid grey;
  padding-top: 16px;
  margin-top: 24px;
  text-align: center;
}

.sidebar-social-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sidebar-social img {
  width: 32px;
  height: 32px;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%) brightness(0.6);
}

.sidebar-social a {
  display: inline-block;
}

.sidebar-social a + a {
  margin-left: 16px;
}

.sidebar-social a:hover img {
  filter: none;
  transform: scale(1.1);
}

/* Page content */
.entry-title {
  margin: 0 0 12px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.entry-content {
  line-height: 1.7;
}

.entry-content > * + * {
  margin-top: 1rem;
}

/* Footer */
.site-footer .credits {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 8px 0;
  padding: 8px 12px;
  background: #000;
  color: #fff;
}

/* ---- Mobile Drawer Styles ---- */
.mobile-overlay {
  display: none;
}

@media (max-width: 900px) {
  .site-main {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 80%;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 2001;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    padding: 16px;
    flex: 0 0 auto;
  }

  .sidebar-inner {
    position: static;
    top: auto;
  }

  .content-area {
    width: 100%;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .site-header {
    position: sticky;
    top: 0;
    background:#fff;
    z-index: 1002;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: block;
    pointer-events: none;
    z-index: 2000;
  }

  body.drawer-open .sidebar {
    transform: translateX(0%);
  }

  body.drawer-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.drawer-open .hamburger {
    display: none;
  }

  /* Menu list styling in drawer reuses defaults */
  .sidebar .menu {
    border-radius: 8px;
  }
}
