/*
Theme Name: Club
Theme URI: https://example.com/club
Author: Antigravity
Author URI: https://example.com
Description: A high-contrast, strictly Black and White modern Club & Organization Management theme for Lions Clubs International and social service organizations (Light Monochrome Edition).
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: club
Tags: black-and-white, monochrome, lions-club, organization, portal, member-management
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #000000;
  --border-muted: #cbd5e1;
  --border-dark: #000000;
  
  --text-primary: #09090b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-invert: #ffffff;
  
  --accent-white: #ffffff;
  --accent-black: #000000;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base & Resets (Pure Light Background with Crisp Black Accents)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(110%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

img:hover {
  filter: grayscale(80%) contrast(115%);
}

.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid #000000;
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  border: 2px solid #000000;
}

.brand-info h1.site-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
  color: #000000;
}

.brand-info .site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #000000;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #000000;
  transition: width 0.2s ease;
}

nav.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Buttons & Badges (High Contrast B&W)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #000000;
  line-height: 1;
  text-align: center;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #27272a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border-color: #000000;
}

.btn-outline:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.badge-mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  color: #000000;
  border: 1px solid var(--border-light);
  text-transform: uppercase;
}

.badge-solid {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 70px 0;
  border-bottom: 2px solid #000000;
  background: #fafafa;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h2.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 18px 0 20px 0;
  color: #000000;
}

.hero-content p.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.hero-media-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Stats Counter Row
   ========================================================================== */
.stats-strip {
  padding: 44px 0;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  padding: 16px 20px;
  border-left: 2px solid #000000;
}

.stat-item:first-child {
  border-left: none;
}

.stat-item .num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #000000;
}

.stat-item .lbl {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================================================
   Section Layouts & Grids
   ========================================================================== */
.section-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.section-header .title-area h3 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-top: 8px;
  color: #000000;
}

.section-header .title-area p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ==========================================================================
   Cards (Projects, Events, Members, Leadership, Causes)
   ========================================================================== */
.card-mono {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

.card-mono:hover {
  transform: translateY(-4px);
  border-color: #000000;
  box-shadow: var(--shadow-hover);
}

.card-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h4.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #000000;
}

.card-body p.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-row span.val {
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   Photo Gallery Grid (Multiple Uploads for Events/Projects)
   ========================================================================== */
.photo-gallery-section {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 2px solid #000000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: pointer;
  background: var(--bg-elevated);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(30%) contrast(110%);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery-item {
  cursor: zoom-in;
}

/* ==========================================================================
   Gallery Lightbox Slideshow Modal
   ========================================================================== */
.club-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  user-select: none;
}

.club-lightbox-modal.active {
  display: flex;
}

.club-lightbox-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  z-index: 10;
}

.club-lightbox-counter {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  background: #18181b;
  border: 1px solid #3f3f46;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #ffffff;
}

.club-lightbox-close {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.club-lightbox-close:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.club-lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.club-lightbox-img-wrap {
  max-width: 88%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.club-lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.club-lightbox-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.1);
}

.club-lightbox-prev {
  left: 0;
}

.club-lightbox-next {
  right: 0;
}

.club-lightbox-footer {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  color: #ffffff;
  padding-top: 10px;
}

.club-lightbox-caption {
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #3f3f46;
  color: #ffffff;
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */
.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0 8px 0;
  border: 1px solid var(--border-light);
}

.progress-bar-fill {
  height: 100%;
  background: #000000;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ==========================================================================
   Digital Member ID Card (High-Contrast Monochrome)
   ========================================================================== */
.id-card-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.id-card-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #ffffff;
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333333;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.id-card-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.id-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  border: 2px solid #ffffff;
  object-fit: cover;
}

.id-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.id-info p {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.id-qr {
  margin-top: 18px;
  border-top: 1px dashed #444444;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Member Single Profile Page
   ========================================================================== */
.member-profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

.member-sidebar-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.member-sidebar-card img.member-large-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  margin: 0 auto 20px auto;
  object-fit: cover;
  border: 3px solid #000000;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #000000;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: #000000;
  border-bottom-color: #000000;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #000000;
  color: #a1a1aa;
  border-top: 3px solid #000000;
  padding: 70px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: #a1a1aa;
  font-size: 0.875rem;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .member-profile-grid {
    grid-template-columns: 1fr;
  }
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h2.hero-title {
    font-size: 2.4rem;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid .stat-item {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .stats-grid .stat-item:nth-child(1),
  .stats-grid .stat-item:nth-child(2) {
    border-top: none;
  }
  nav.main-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
