/* ============================================
   Sheffield Judo Club – Stylesheet
   ============================================ */

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.6em 1.2em;
  font-weight: bold;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Focus styles --- */
:focus-visible {
  outline: 3px solid #006fcc;
  outline-offset: 2px;
}

/* --- Screen-reader only utility --- */
.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;
}

/* --- Reset & Box Model --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
}

/* --- Base --- */
body {
  font-family: "Trebuchet MS", sans-serif;
  background-color: #cccccc;
  color: #222;
  line-height: 1.6;
}

/* --- Page Wrapper --- */
#page {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1;
}

/* --- Header --- */
#header {
  background-color: #3b3b3b;
  background-image: url("/images/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3em 1.5em 1.5em;
  text-align: center;
}

#site-name a {
  color: #fff;
  text-decoration: none;
  font-size: 2em;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

#site-name a:visited {
  color: #fff;
}

#site-slogan {
  color: #fff;
  text-shadow: 1px 1px #000;
  font-size: 1.1em;
  margin-top: 0.3em;
}

/* --- Navigation --- */
#navigation {
  background-color: #006fcc;
}

#main-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-menu ul li {
  flex: 1;
  text-align: center;
}

#main-menu ul li:hover,
#main-menu ul li.active {
  background-color: #008aff;
}

#main-menu ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  padding: 0.5em 0.25em;
}

/* --- Two-column layout: content + sidebar --- */
#content-wrapper {
  display: flex;
  align-items: flex-start;
}

#content {
  flex: 1;
  padding: 1.5em;
  min-width: 0;
}

/* --- Sidebar --- */
.sidebars {
  width: 220px;
  min-width: 220px;
  padding: 0.5em;
}

.sidebar-block {
  border: 2px solid #dddddd;
  margin: 0.5em 0;
  padding: 0.75em;
}

.sidebar-block h2 {
  font-size: 1em;
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #ddd;
}

/* News links */
.news-links {
  list-style: none;
  padding: 0;
}

.news-links li {
  margin: 0.25em 0;
}

.news-links a {
  color: #006fcc;
  text-decoration: none;
}

.news-links a:hover {
  text-decoration: underline;
}

/* Social media icons */
.social-links {
  list-style: none;
  display: flex;
  gap: 0.5em;
  padding: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #e8e8e8;
  transition: background-color 0.2s;
}

.social-links svg {
  display: block;
  color: #444;
  transition: color 0.2s;
}

.social-links li.facebook a:hover {
  background-color: #1877F2;
}

.social-links li.facebook a:hover svg {
  color: #fff;
}

.social-links li.x a:hover {
  background-color: #000;
}

.social-links li.x a:hover svg {
  color: #fff;
}

.social-links li.email a:hover {
  background-color: #006fcc;
}

.social-links li.email a:hover svg {
  color: #fff;
}

/* --- Footer --- */
#footer {
  background-color: #131c3d;
  color: #dddddd;
  padding: 1.5em;
  text-align: center;
}

#footer p {
  margin: 0.3em 0;
  font-size: 0.9em;
}

#footer .footer-credit {
  font-size: 0.75em;
  margin-top: 0.75em;
  opacity: 0.7;
}

/* --- Page content typography --- */
.page-title {
  font-size: 1.8em;
  color: #222;
  margin-bottom: 0.75em;
}

.page-content h3 {
  font-size: 1.1em;
  margin: 1em 0 0.4em;
}

.page-content ul {
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

.page-content p {
  margin-bottom: 0.75em;
}

.page-content hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.75em 0;
}

.page-content a {
  color: #006fcc;
}


/* --- Article meta (date/author) --- */
.article-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 1em;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

/* --- Map embed --- */
.google-map {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
}

.google-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Links page (Facebook embed) --- */
.links-content .fb-page {
  max-width: 100%;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  #main-menu ul {
    flex-direction: column;
  }

  #content-wrapper {
    flex-direction: column;
  }

  .sidebars {
    width: 100%;
    min-width: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
