/*
 Theme Name:   Blocksy Child - Harlem Bitcoin
 Theme URI:    https://harlembitcoin.com
 Description:  Child theme for the Blocksy theme - Harlem Bitcoin community site
 Author:       Harlem Bitcoin
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* ========================================
   Variables
   ======================================== */
:root {
  --hb-bg: #1f1f1f;
  --hb-bg-card: #282626;
  --hb-orange: #f78f20;
  --hb-orange-dark: #dd871f;
  --hb-text: #e4e1e0;
  --hb-heading: #e1e8ed;
  --hb-muted: #a09d9c;
  --hb-container: 1100px;
}

/* ========================================
   Header overrides
   ======================================== */
.site-branding .site-title {
  display: none !important;
}

.site-logo img,
.custom-logo {
  max-height: 45px !important;
  width: auto !important;
}

.site-title-container {
  display: none !important;
}

.header-menu-1 .menu-item.current-menu-item a {
  color: var(--hb-orange) !important;
}

/* ========================================
   Footer overrides
   ======================================== */
.ct-footer {
  background-color: #1a1a1a !important;
}

.ct-footer-copyright {
  color: var(--hb-muted) !important;
}

/* ========================================
   Base
   ======================================== */
.hb-home {
  background: var(--hb-bg);
  color: var(--hb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.hb-container {
  max-width: var(--hb-container);
  margin: 0 auto;
  padding: 0 24px;
}

.hb-section {
  padding: 80px 0;
}

.hb-section__title {
  color: var(--hb-orange);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.hb-section__text {
  color: var(--hb-text);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

/* ========================================
   Buttons
   ======================================== */
.hb-btn {
  display: inline-block;
  background: var(--hb-orange);
  color: #1f1f1f;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.hb-btn:hover {
  background: var(--hb-orange-dark);
  color: #1f1f1f;
}

.hb-btn--outline {
  background: transparent;
  color: var(--hb-orange);
  border: 2px solid var(--hb-orange);
}

.hb-btn--outline:hover {
  background: var(--hb-orange);
  color: #1f1f1f;
}

/* ========================================
   Hero
   ======================================== */
.hb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/harlem_125_viaduct.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hb-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hb-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.hb-hero__lockup {
  width: 100%;
  max-width: 975px;
  height: auto;
  margin-bottom: 24px;
}

.hb-hero__subtitle {
  color: var(--hb-text);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin: 0 0 32px;
  font-weight: 400;
}

/* ========================================
   Meetups / Calendar
   ======================================== */
.hb-meetups {
  background: var(--hb-bg-card);
  text-align: center;
}

.hb-calendar {
  margin: 0 auto 32px;
  max-width: 700px;
}

.hb-calendar iframe {
  width: 100%;
  min-height: 300px;
}

/* ========================================
   Three Pillars
   ======================================== */
.hb-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hb-card {
  background: var(--hb-bg-card);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

.hb-card:hover {
  transform: translateY(-4px);
}

.hb-card__img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.hb-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-card__title {
  color: var(--hb-orange);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 20px 20px 8px;
  margin: 0;
}

.hb-card__text {
  color: var(--hb-text);
  font-size: 0.95rem;
  padding: 0 20px 24px;
  margin: 0;
  line-height: 1.65;
}

/* ========================================
   Featured / News
   ======================================== */
.hb-featured {
  background: var(--hb-bg-card);
}

.hb-featured__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 32px auto 0;
}

.hb-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.hb-video-wrap iframe,
.hb-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hb-film-poster__laurels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hb-laurel {
  color: var(--hb-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.hb-featured__title {
  color: var(--hb-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.hb-featured__text {
  color: var(--hb-text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* ========================================
   Photos Grid
   ======================================== */
.hb-photos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hb-photos__grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.hb-photos__grid img:hover {
  opacity: 0.8;
}

/* ========================================
   Bitcoin 101 CTA
   ======================================== */
.hb-cta {
  background: var(--hb-bg);
}

/* ========================================
   How to Find Us
   ======================================== */
.hb-findus {
  background: var(--hb-bg-card);
}

.hb-findus__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.hb-findus__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hb-orange);
  transition: opacity 0.2s;
  width: 100px;
}

.hb-findus__item:hover {
  opacity: 0.75;
  color: var(--hb-orange);
}

.hb-findus__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 143, 32, 0.1);
}

.hb-findus__icon svg {
  display: block;
}

.hb-findus__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hb-text);
  text-align: center;
}

/* ========================================
   Fedi Modal
   ======================================== */
#hb-fedi-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#hb-fedi-modal.is-open {
  display: flex;
}

.hb-fedi-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.hb-fedi-dialog {
  position: relative;
  background: #1f1f1f;
  color: #e4e1e0;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hb-fedi-dialog h3 {
  color: var(--hb-orange, #f78f20);
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.hb-fedi-dialog p {
  font-size: 0.95rem;
  margin: 0 0 20px;
  color: #a09d9c;
}

.hb-fedi-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #a09d9c;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.hb-fedi-close:hover {
  color: #fff;
}

.hb-fedi-qr {
  margin-bottom: 20px;
}

.hb-fedi-qr img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.hb-fedi-copy-row {
  display: flex;
  gap: 8px;
}

.hb-fedi-input {
  flex: 1;
  background: #282626;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e4e1e0;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-fedi-copy-btn {
  background: var(--hb-orange, #f78f20);
  color: #1f1f1f;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.hb-fedi-copy-btn:hover {
  background: #dd871f;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .hb-pillars__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .hb-featured__item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .hb-section {
    padding: 60px 0;
  }
}

@media (max-width: 600px) {
  .hb-hero {
    min-height: 60vh;
  }

  .hb-findus__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
    justify-items: center;
  }

  .hb-hero__badge {
    width: 80px;
    height: 80px;
  }

  .hb-section {
    padding: 48px 0;
  }

  .hb-photos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .hb-photos__grid img {
    height: 150px;
  }
}
