/*
Theme Name: BHC Child
Theme URI: https://blackholecontemporary.com
Description: Child theme for Black Hole Contemporary
Author: Black Hole Contemporary
Template: generatepress
Version: 1.0
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Courier+Prime:wght@400;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg: #0a0a0a;
  --text: #e8e4dc;
  --text-dim: #c8c4bc;
  --text-muted: #555;
  --text-faint: #333;
  --border: #1a1a1a;
  --border-mid: #2a2a2a;
  --font-display: 'Cormorant Garamond', serif;
  --font-mono: 'Courier Prime', monospace;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-display);
  font-weight: 300;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

body * {
  color: var(--text) !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   HIDE GENERATEPRESS ELEMENTS
   ============================================ */
#masthead,
.site-branding,
.main-title,
#right-sidebar,
.widget-area,
.sidebar,
.menu-toggle,
.mobile-menu-control-wrapper,
.site-info,
.inside-site-info,
.copyright-bar,
.page-title,
.entry-header,
.entry-footer {
  display: none !important;
}

/* ============================================
   TRANSPARENT CONTAINERS
   ============================================ */
.site-content,
#content,
#primary,
#secondary,
.content-area,
.inside-article,
.entry-content,
.page-header,
.grid-container,
.site,
.inside-header,
.inside-navigation,
.inside-article,
.generate-columns-container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ============================================
   LAYOUT
   ============================================ */
.content-area {
  width: 100% !important;
  float: none !important;
}

.site-content,
#content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 48px 80px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#bhc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 28px 48px;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid #151515;
  backdrop-filter: blur(8px);
  width: 100% !important;
}

#bhc-nav .nav-links {
  display: flex;
  gap: 36px;
}

#bhc-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

#bhc-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text) !important;
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s;
}

#bhc-nav a:hover,
#bhc-nav a.current-page {
  opacity: 1 !important;
}

#bhc-nav .lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

#bhc-nav .lang-switcher span {
  color: var(--text-faint) !important;
  opacity: 1;
}

/* Theme toggle */
#theme-toggle {
  background: none;
  border: none;
  color: var(--text) !important;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
  transition: opacity 0.2s;
  line-height: 1;
}

#theme-toggle:hover {
  opacity: 1;
}

/* ============================================
   WORDMARK
   ============================================ */
.bhc-wordmark {
  margin-bottom: 48px;
  margin-top: 24px;
}

.bhc-wordmark h1 {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  font-size: clamp(24px, 3.5vw, 42px) !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  color: var(--text) !important;
}

/* ============================================
   AKTUELL GRID
   ============================================ */
.aktuell-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
/* ============================================
   FLYER
   ============================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.flyer-wrap {
  border: 1px solid var(--border-mid);
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
  background: #0d0d0d;
}

.flyer-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.flyer-meta {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flyer-meta .flyer-dl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  opacity: 1 !important;
}

.flyer-meta .flyer-dl:hover {
  color: var(--text) !important;
  border-color: var(--text-muted);
}

/* ============================================
   INFO ROWS
   ============================================ */
.info-block {
  margin-top: 28px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.info-row .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
}

.info-row .value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim) !important;
}

/* ============================================
   ARCHIVE LIST
   ============================================ */
.archive-block {
  margin-top: 56px;
}

.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #151515;
  cursor: pointer;
  transition: opacity 0.2s;
}

.archive-row:hover {
  opacity: 0.5;
}

.archive-row .arch-artist {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim) !important;
  margin-right: 12px;
}

.archive-row .arch-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted) !important;
}

.archive-row .arch-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint) !important;
  letter-spacing: 0.1em;
}

/* ============================================
   RAUM PAGE
   ============================================ */
.raum-content {
  max-width: 600px;
}

.raum-content h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  color: var(--text) !important;
}

.raum-content p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim) !important;
  margin-bottom: 24px;
}

.raum-specs {
  margin-top: 48px;
}

/* ============================================
   CUSTOM FOOTER
   ============================================ */
#bhc-footer {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 32px 48px;
  border-top: 1px solid #151515;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#bhc-footer span,
#bhc-footer a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  opacity: 1 !important;
}

/* ============================================
   WOOCOMMERCE
   ============================================ */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  list-style: none;
}

.woocommerce .product a img {
  border: 1px solid var(--border-mid);
  transition: border-color 0.3s;
}

.woocommerce .product a img:hover {
  border-color: var(--text-muted);
}

.woocommerce .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  color: var(--text-dim) !important;
  margin-top: 12px;
}

.woocommerce .price {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
}

.woocommerce .button,
.woocommerce button.button {
  background: transparent !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
}

/* ============================================
   LIGHT MODE
   ============================================ */
body.light-mode {
  --bg: #f5f5f0;
  --text: #0a0a0a;
  --text-dim: #2a2a2a;
  --text-muted: #777;
  --text-faint: #aaa;
  --border: #e0e0e0;
  --border-mid: #ccc;
  background: #f5f5f0 !important;
}

body.light-mode * {
  color: #0a0a0a !important;
}

body.light-mode #bhc-nav {
  background: rgba(245,245,240,0.95) !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

body.light-mode .info-row .label,
body.light-mode .section-label,
body.light-mode .arch-year {
  color: #777 !important;
}

body.light-mode .flyer-wrap {
  background: #ececec;
}

body.light-mode #bhc-footer {
  border-top-color: #e0e0e0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  #bhc-nav { padding: 20px 24px; }
  .site-content, #content { padding: 100px 24px 60px; }
  .aktuell-grid { grid-template-columns: 1fr; gap: 40px; }
  #bhc-footer { padding: 32px 24px; flex-direction: column; gap: 8px; }
}

/* Remove stripe under nav */
.site-header,
.inside-header,
#masthead {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Hide GeneratePress navigation bar */
#site-navigation,
.main-navigation {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Artist info */
.bhc-artist {
  margin-bottom: 48px;
}
.bhc-artist .artist-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--text-dim) !important;
  margin-bottom: 8px;
}
.bhc-artist .artist-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text) !important;
  line-height: 1.3;
}
/* ============================================
   EXPANDABLE TEXT BLOCKS
   ============================================ */

}
.bhc-text-toggle {
  width: 100%;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  opacity: 0.5;
  text-align: left !important;
  transition: opacity 0.2s !important;
}

.bhc-text-toggle:hover {
  opacity: 1;
}

.bhc-text-toggle span:first-child {
  text-align: left !important;
}
.toggle-icon {
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.3s;
  opacity: 1 !important;
}

.bhc-text-block.open .toggle-icon {
  transform: rotate(45deg);
}

.bhc-text-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.bhc-text-block.open .bhc-text-content {
  max-height: 2000px;
}

.bhc-text-content p {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim) !important;
  padding-bottom: 24px;
}
.bhc-text-block {
  background: transparent !important;
  border-bottom: 1px solid var(--border);
}

.bhc-texts {
  margin-top: 0 !important;
  border-top: none !important;
}

/* Force button styles */
button.bhc-text-toggle,
.bhc-text-toggle {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-top: none !important;
  border-bottom: 1px solid var(--border) !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  cursor: pointer !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  opacity: 0.5 !important;
  text-align: left !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

button.bhc-text-toggle:hover {
  opacity: 1 !important;
}

.bhc-text-block {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}
button.bhc-text-toggle,
.bhc-text-toggle {
  text-align: left !important;
  padding: 12px 0 !important;
}

.bhc-text-toggle span:first-child {
  text-align: left !important;
  flex: 1 !important;
}

.bhc-text-block {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.bhc-texts {
  margin-top: 0 !important;
  border-top: none !important;
}
#content button.bhc-text-toggle {
  text-align: left !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  opacity: 0.5 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 0 !important;
}
.bhc-text-toggle {
  padding: 8px 0 !important;
}

/* ============================================
   ADD TO END OF style.css
   ============================================ */

/* ============================================
   UPCOMING EXHIBITIONS
   ============================================ */
.bhc-upcoming {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.bhc-section-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 24px;
}

.upcoming-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.upcoming-row:hover {
  opacity: 0.5;
}

/* ============================================
   EXHIBITION PREV / NEXT NAV
   ============================================ */
.bhc-exhibition-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.ex-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  opacity: 0.6;
  transition: opacity 0.2s;
  text-decoration: none;
}

.ex-nav-link:hover {
  opacity: 1;
}

.ex-nav-arrow {
  font-size: 16px;
  font-family: var(--font-display);
}

.ex-nav-home {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-muted) !important;
  opacity: 0.4;
  transition: opacity 0.2s;
  text-decoration: none;
}

.ex-nav-home:hover {
  opacity: 1;
}

/* ============================================
   ARCHIVE PHOTO GRID
   ============================================ */
.bhc-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding-bottom: 24px;
}

.bhc-photo-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--border-mid);
  display: block;
}

.photo-caption {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.photo-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim) !important;
  line-height: 1.4;
}

.photo-year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 768px) {
  .bhc-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .upcoming-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .bhc-exhibition-nav {
    gap: 16px;
  }
}

.bhc-wordmark {
  margin-bottom: 48px;
  margin-top: 60px;
}
#content.site-content {
  display: block !important;
}