/*
Theme Name: Mt Lebanon Youth Wrestling Association
Theme URI: https://lebowrestling.org
Author: Craig Grella
Author URI: https://lebowrestling.org
Description: A simple, lightweight theme for the Mt. Lebanon Blue Devils Wrestling community site. Provides the basic framework needed to run the WordPress site at community.lebowrestling.org.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blue-devils
Tags: youth-wrestling, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Mt Lebanon Youth Wrestling Association — Blue Devils Theme
   ============================================================ */

:root {
  --bd-blue:       #1a3a8f;
  --bd-blue-dark:  #0f2260;
  --bd-gold:       #f5c000;
  --bd-dark:       #0a0f1e;
  --bd-text:       #1c2230;
  --bd-muted:      #5a6273;
  --bd-border:     #e3e6ec;
  --bd-bg:         #f6f7f9;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: 70px; /* offset for the fixed header */
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bd-text);
  background: var(--bd-bg);
}

a { color: var(--bd-blue); }
a:hover { color: var(--bd-blue-dark); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
  line-height: 1.15;
  color: var(--bd-blue-dark);
  margin: 1.4em 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p, ul, ol { margin: 0 0 1.1em; }

/* ---- Layout ---- */
.bd-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.bd-site-content {
  display: flex;
  gap: 40px;
  padding: 40px 0 60px;
  align-items: flex-start;
}

.bd-main { flex: 1 1 auto; min-width: 0; }
.bd-sidebar { flex: 0 0 280px; }

@media (max-width: 820px) {
  .bd-site-content { flex-direction: column; }
  .bd-sidebar { flex: 1 1 auto; width: 100%; }
}

/* ============================================================
   HEADER — pixel-matched to the Blue Devils app navigation.
   !important is used so plugin CSS (FluentCommunity, etc.)
   cannot override the branded header.
   ============================================================ */
.bd-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important;
  height: 70px !important;
  background: rgba(10, 15, 30, 0.97) !important;
  border-bottom: 2px solid var(--bd-gold) !important;
  box-sizing: border-box !important;
}
.bd-header * { box-sizing: border-box; }
.bd-header-inner {
  width: 100% !important;
  margin: 0 auto !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 2rem !important;
  gap: 1rem !important;
}

/* Brand */
.bd-header .bd-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}
.bd-header .bd-brand-badge {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 2px solid var(--bd-gold) !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
.bd-header .bd-brand-badge img {
  width: 82% !important;
  height: 82% !important;
  object-fit: contain !important;
  display: block !important;
}
.bd-header .bd-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1 !important;
}
.bd-header .bd-brand-name {
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-size: 1.3rem !important;
  letter-spacing: 0.05em !important;
  color: var(--bd-gold) !important;
}
.bd-header .bd-brand-tagline {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-top: 4px !important;
}

/* Nav + actions */
.bd-header .bd-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}
.bd-header .bd-nav-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
}
.bd-header .bd-nav-links li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.bd-header .bd-nav-links a {
  display: block !important;
  padding: 0.4rem 0.75rem !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
}
.bd-header .bd-nav-links a:hover,
.bd-header .bd-nav-links .current-menu-item > a,
.bd-header .bd-nav-links .bd-nav-current {
  background: var(--bd-blue) !important;
  color: var(--bd-gold) !important;
}

.bd-header .bd-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}
.bd-header .bd-cart {
  display: flex !important;
  align-items: center !important;
  color: #fff !important;
  padding: 0.35rem !important;
  text-decoration: none !important;
}
.bd-header .bd-cart:hover { color: var(--bd-gold) !important; }

.bd-header .bd-btn-outline,
.bd-header .bd-btn-solid {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}
.bd-header .bd-btn-outline {
  color: var(--bd-gold) !important;
  border: 1px solid rgba(245, 192, 0, 0.4) !important;
  padding: 0.4rem 0.75rem !important;
}
.bd-header .bd-btn-outline:hover { border-color: var(--bd-gold) !important; }
.bd-header .bd-btn-solid {
  background: var(--bd-gold) !important;
  color: var(--bd-blue-dark) !important;
  border: 1px solid var(--bd-gold) !important;
  padding: 0.45rem 1.2rem !important;
}
.bd-header .bd-btn-solid:hover { background: #d9aa00 !important; }

/* Mobile hamburger */
.bd-nav-burger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 9px;
  background: none !important;
  border: 0 !important;
}
.bd-nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .bd-nav-burger { display: flex !important; }
  .bd-header .bd-nav {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: rgba(10, 15, 30, 0.99) !important;
    border-bottom: 2px solid var(--bd-gold) !important;
    padding: 1rem 2rem !important;
    gap: 0.25rem !important;
    display: none !important;
  }
  .bd-header.bd-nav-open .bd-nav { display: flex !important; }
  .bd-header .bd-nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .bd-header .bd-nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important; }
  .bd-header .bd-nav-links a { padding: 0.85rem 0 !important; font-size: 1.05rem !important; }
  .bd-header .bd-nav-actions {
    margin-top: 0.75rem !important;
    flex-wrap: wrap !important;
  }
}

/* ---- Content cards ---- */
.bd-article {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 10px;
  padding: 32px 36px;
  margin-bottom: 28px;
}
.bd-entry-title { margin-top: 0; }
.bd-entry-title a { color: var(--bd-blue-dark); text-decoration: none; }
.bd-entry-title a:hover { color: var(--bd-blue); }

.bd-entry-meta {
  font-size: 0.82rem;
  color: var(--bd-muted);
  margin-bottom: 16px;
}
.bd-featured-image { margin: 0 0 20px; border-radius: 8px; overflow: hidden; }

.bd-read-more {
  display: inline-block;
  margin-top: 8px;
  background: var(--bd-gold);
  color: var(--bd-blue-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
}
.bd-read-more:hover { background: #d9aa00; color: var(--bd-blue-dark); }

/* ---- Sidebar widgets ---- */
.bd-widget {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.bd-widget .widget-title,
.bd-widget h2, .bd-widget h3 {
  margin-top: 0;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--bd-gold);
  padding-bottom: 8px;
}
.bd-widget ul { list-style: none; margin: 0; padding: 0; }
.bd-widget li { padding: 6px 0; border-bottom: 1px solid var(--bd-border); }
.bd-widget li:last-child { border-bottom: 0; }

/* ---- Pagination ---- */
.bd-pagination {
  margin: 10px 0 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bd-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}
.bd-pagination .page-numbers.current {
  background: var(--bd-blue);
  color: var(--bd-gold);
  border-color: var(--bd-blue);
}

/* ---- Comments ---- */
.bd-comments { background: #fff; border: 1px solid var(--bd-border); border-radius: 10px; padding: 28px 36px; }
.bd-comments ol { list-style: none; padding: 0; }
.bd-comments .children { list-style: none; padding-left: 28px; }
.bd-comment { border-top: 1px solid var(--bd-border); padding: 16px 0; }
.bd-comment .comment-author { font-weight: 700; }
.bd-comment .comment-meta { font-size: 0.78rem; color: var(--bd-muted); }

/* ---- Forms ---- */
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], textarea, select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bd-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
input[type="submit"], button, .bd-button {
  background: var(--bd-blue);
  color: #fff;
  border: 0;
  padding: 11px 22px;
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.85rem;
}
input[type="submit"]:hover, button:hover, .bd-button:hover { background: var(--bd-blue-dark); }

/* ============================================================
   FOOTER — pixel-matched to the Blue Devils app footer.
   ============================================================ */
.bd-footer {
  background: #060a14 !important;
  border-top: 2px solid var(--bd-gold) !important;
  padding: 3rem 2rem 2rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  box-sizing: border-box !important;
}
.bd-footer * { box-sizing: border-box; }
.bd-footer-inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
}
@media (max-width: 768px) {
  .bd-footer-inner { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
  .bd-footer-brand { grid-column: 1 / -1 !important; }
}

/* Brand column */
.bd-footer .bd-footer-badge {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  border: 2px solid var(--bd-gold) !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
}
.bd-footer .bd-footer-badge img {
  width: 82% !important;
  height: 82% !important;
  object-fit: contain !important;
  display: block !important;
}
.bd-footer .bd-footer-name {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.4 !important;
  max-width: 260px !important;
  margin: 0 0 0.25rem !important;
}
.bd-footer .bd-footer-tagline {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin: 0 !important;
}

/* Link columns */
.bd-footer .bd-footer-col-title {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--bd-gold) !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
}
.bd-footer .bd-footer-col ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.bd-footer .bd-footer-col li { border: 0 !important; padding: 0 0 0.5rem !important; margin: 0 !important; }
.bd-footer .bd-footer-col a {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
}
.bd-footer .bd-footer-col a:hover { color: var(--bd-gold) !important; }

.bd-footer-bottom {
  max-width: 1100px !important;
  margin: 2rem auto 0 !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Accessibility ---- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.bd-skip-link {
  position: absolute; left: -9999px;
}
.bd-skip-link:focus {
  left: 10px; top: 10px; z-index: 1000;
  background: var(--bd-gold); color: var(--bd-blue-dark);
  padding: 10px 16px; border-radius: 4px;
}

/* ---- WP core alignment classes ---- */
.alignleft  { float: left;  margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--bd-muted); }
.sticky, .gallery-caption, .bypostauthor { display: block; }
