/*
Theme Name: Monkey Gym Theme
Theme URI: https://example.com/
Author: iliraga
Author URI: https://www.iliraga.ch
Description: A custom block theme for Monkey Gym.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monkeygym
Tags: block-patterns, full-site-editing
*/



/* Table Styling - Gutenberg Tables */
.wp-block-table {
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 800px;
}
@media (max-width: 940px) {
  .wp-block-table {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }
  
    .wp-block-table table {
      min-width: 1000px;
    }
  
  .wp-block-table thead th,
  .wp-block-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
  }
  
  .wp-block-table thead th:first-child,
  .wp-block-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--wp--preset--color--surface-container);
    z-index: 10;
  }
  
  .wp-block-table tbody td:first-child {
    background: var(--wp--preset--color--surface);
  }
}
.wp-block-table thead {
  background: var(--wp--preset--color--surface-container);
  border-bottom: 1px solid rgba(72, 72, 71, 0.2);
}
.wp-block-table thead th {
  padding: 1.5rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: var(--wp--preset--color--primary);
  border: none;
}
.wp-block-table thead th:first-child {
  border-right: 1px solid rgba(72, 72, 71, 0.1);
}
.wp-block-table tbody tr {
  border-bottom: 1px solid rgba(72, 72, 71, 0.1);
  transition: background-color 0.2s ease;
}
.wp-block-table tbody tr:hover {
  background: var(--wp--preset--color--surface-container);
}
.wp-block-table tbody td {
  padding: 1.5rem;
  font-family: 'Work Sans', sans-serif;
  color: var(--wp--preset--color--on-surface);
  border: none;
  vertical-align: top;
}
.wp-block-table tbody td:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--wp--preset--color--on-surface-variant);
  border-right: 1px solid rgba(72, 72, 71, 0.1);
}
/* Special styling for highlighted time slots */
.wp-block-table tbody tr.is-style-stripes td:first-child {
  color: var(--wp--preset--color--primary);
}
/* Table cell content with accent (for class entries) */
.wp-block-table strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.wp-block-table em {
  display: block;
  font-size: 0.625rem;
  color: var(--wp--preset--color--on-surface-variant);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}
/* Paragraph styling in tables */
.wp-block-table p {
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 179, 0, 0.1);
  border-left: 2px solid var(--wp--preset--color--primary);
  border-radius: 0.125rem;
}
/* Editor preview variants (scoped to the editor wrapper) */
.editor-styles-wrapper .wp-block-table {
  background: #131313;
  border-radius: 0.125rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.editor-styles-wrapper .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 800px;
}
@media (max-width: 940px) {
  .editor-styles-wrapper .wp-block-table {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

  .editor-styles-wrapper .wp-block-table table {
    min-width: 1000px;
  }

  .editor-styles-wrapper .wp-block-table thead th,
  .editor-styles-wrapper .wp-block-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .editor-styles-wrapper .wp-block-table thead th:first-child,
  .editor-styles-wrapper .wp-block-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: #262626;
    z-index: 10;
  }

  .editor-styles-wrapper .wp-block-table tbody td:first-child {
    background: #131313;
  }
}
.editor-styles-wrapper .wp-block-table thead {
  background: #262626;
  border-bottom: 1px solid rgba(72, 72, 71, 0.2);
}
.editor-styles-wrapper .wp-block-table thead th {
  padding: 1.5rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: #FFB300;
  border: none;
}
.editor-styles-wrapper .wp-block-table thead th:first-child {
  border-right: 1px solid rgba(72, 72, 71, 0.1);
}
.editor-styles-wrapper .wp-block-table tbody tr {
  border-bottom: 1px solid rgba(72, 72, 71, 0.1);
  transition: background-color 0.2s ease;
}
.editor-styles-wrapper .wp-block-table tbody tr:hover {
  background: #262626;
}
.editor-styles-wrapper .wp-block-table tbody td {
  padding: 1.5rem;
  font-family: 'Work Sans', sans-serif;
  color: #ffffff;
  border: none;
  vertical-align: top;
}
.editor-styles-wrapper .wp-block-table tbody td:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #adaaaa;
  border-right: 1px solid rgba(72, 72, 71, 0.1);
}
/* Special styling for highlighted time slots */
.editor-styles-wrapper .wp-block-table tbody tr.is-style-stripes td:first-child {
  color: #FFB300;
}
/* Table cell content with accent (for class entries) */
.editor-styles-wrapper .wp-block-table strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #FFB300;
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.editor-styles-wrapper .wp-block-table em {
  display: block;
  font-size: 0.625rem;
  color: #adaaaa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}
/* Paragraph styling in tables (editor) */
.editor-styles-wrapper .wp-block-table p {
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 179, 0, 0.1);
  border-left: 2px solid #FFB300;
  border-radius: 0.125rem;
}
/* Mobile gutter partial — imported into src/styles/tailwind.css
   Only targets elements that don't receive gutters from block markup.
   Page template, section parts, and footer carry left/right padding in
   their own block markup (same pattern as hero / community / gym-insights). */
@media (max-width: 940px) {
  /* Header inner flex row — no block markup equivalent for per-viewport padding */
  .header-nav-wrapper .header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
/* Custom styles for special effects from your HTML */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
/* Navigation Styles */
@media (max-width: 940px) {
  /* Small-phone tweaks (moved from the 600px override) */
  .wp-block-cover h1 mark {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    word-break: break-word;
  }
}
.header-nav-wrapper,
.wp-block-group.header-nav-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}
.header-nav-wrapper::before,
.wp-block-group.header-nav-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--wp--preset--color--background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}
/* Broader sticky-target to catch header template parts and site header wrappers
   This helps if the header is rendered inside a different wrapper element that
   prevented the `.header-nav-wrapper` from becoming sticky. Minimal, safe fix. */
.wp-block-template-part[data-area="header"],
header,
.site-header,
.wp-block-template-part[data-slug="header"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  left: 0;
  right: 0;
  width: 100%;
}
/* Respect the admin bar offset when logged in */
.admin-bar .wp-block-template-part[data-area="header"],
.admin-bar header,
.admin-bar .site-header,
.admin-bar .wp-block-template-part[data-slug="header"] {
  top: 32px;
}
@media screen and (max-width: 940px) {
  .admin-bar .wp-block-template-part[data-area="header"],
  .admin-bar header,
  .admin-bar .site-header,
  .admin-bar .wp-block-template-part[data-slug="header"] {
    top: 46px;
  }
}
/* Header branding color moved to block attributes (use site-title `textColor` in header.html) */
/* Account for WordPress admin bar when logged in */
.admin-bar .header-nav-wrapper,
.admin-bar .wp-block-group.header-nav-wrapper {
  top: 32px;
}
@media screen and (max-width: 940px) {
  .admin-bar .header-nav-wrapper,
  .admin-bar .wp-block-group.header-nav-wrapper {
    top: 46px;
  }
}
body {
  padding-top: 0;
}
@media screen and (max-width: 940px) {
  .admin-bar body {
    padding-top: 46px;
  }
}
/* Hero heading margin */
.wp-block-cover .wp-block-heading {
  margin-bottom: 2rem;
}
/* Navigation Typography */
.header-nav-wrapper .wp-block-navigation .wp-block-navigation-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-size: 0.875rem;
}
/* Footer layout is handled in `parts/footer.html` via block markup and inline styles. */
.wp-block-template-part[data-slug="footer"] .wp-block-navigation__responsive-container-open,
footer .wp-block-navigation__responsive-container-open {
  display: none;
}
.wp-block-template-part[data-slug="footer"] .wp-block-navigation__container,
footer .wp-block-navigation__container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}
/* Footer-specific visual overrides */
/* footer site title color is set by block attributes; keep minimal here */
footer.wp-block-template-part .footer-inner .wp-block-navigation__container {
  gap: 2rem;
}
footer.wp-block-template-part .footer-inner .wp-block-navigation__container .wp-block-navigation-item__label {
  text-transform: lowercase;
  font-weight: 300;
  color: var(--wp--preset--color--on-surface-variant);
}
/* Small helper for the right-side footer column (keeps content aligned) */
.footer-right {
  flex: 0 0 auto;
  min-width: 160px;
  text-align: right;
}
@media (max-width: 940px) {
  .footer-right {
    min-width: auto;
    text-align: center;
  }
}
/* ensure footer content aligns with main navigation/content */
footer.wp-block-template-part .footer-inner {
  padding-left: 0;
  padding-right: 0;
}
.wp-block-template-part[data-slug="footer"] .wp-block-navigation__responsive-container:not(.has-modal-open),
footer .wp-block-navigation__responsive-container:not(.has-modal-open) {
  display: block;
  visibility: visible;
}
/* Desktop Navigation */
@media (min-width: 941px) {
  .header-nav-wrapper .wp-block-navigation__container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }
}
/* Navigation Links - Default State */
.wp-block-navigation-item__content,
.wp-block-pages-list__item__link {
  color: var(--wp--preset--color--on-surface-variant);
  transition: all 0.2s ease;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
}
/* Navigation Links - Hover State */
.wp-block-navigation-item:hover .wp-block-navigation-item__content,
.wp-block-navigation-item:hover .wp-block-pages-list__item__link,
.wp-block-navigation-item__content:hover,
.wp-block-pages-list__item__link:hover {
  color: var(--wp--preset--color--on-background);
}
/* Navigation Links - Active/Current State */
.wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.wp-block-navigation-item.current-menu-item .wp-block-pages-list__item__link,
.current-menu-item .wp-block-navigation-item__content,
.current-menu-item .wp-block-pages-list__item__link {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}
/* Home page specific styling */
.home .wp-block-navigation-item:first-of-type .wp-block-navigation-item__content,
.home .wp-block-navigation-item:first-of-type .wp-block-pages-list__item__link {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
}
/* Mobile overlay — styling only; mechanics handled by overlayMenu:mobile */
@media (max-width: 940px) {
  .wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--primary);
  }

  .wp-block-navigation__responsive-container-open svg {
    fill: var(--wp--preset--color--primary);
    width: 24px;
    height: 24px;
  }

  .wp-block-navigation__responsive-container-close svg {
    fill: var(--wp--preset--color--primary);
    width: 32px;
    height: 32px;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item,
  .wp-block-navigation__responsive-container .wp-block-pages-list__item {
    width: 100%;
    padding: 1.5rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--outline) 20%, transparent);
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item a,
  .wp-block-navigation__responsive-container .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container .wp-block-pages-list__item__link {
    display: block;
    color: var(--wp--preset--color--on-background);
    font-size: 2rem;
    letter-spacing: -0.025em;
    border-bottom: none;
  }

  .wp-block-navigation__responsive-container .wp-block-navigation-item a:hover,
  .wp-block-navigation__responsive-container .wp-block-navigation-item__content:hover,
  .wp-block-navigation__responsive-container .wp-block-pages-list__item__link:hover {
    color: var(--wp--preset--color--primary);
  }
}
/* Site Title / Logo: styling moved to block attributes in templates */
/* Button Hover States */
.wp-block-button .wp-block-button__link {
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.1);
}
.wp-block-button .wp-block-button__link:hover {
  /* Only animate, do not change background or text color */
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.2);
}
.wp-block-button .wp-block-button__link:active {
  transform: scale(0.95);
}
/* Ensure hero/header button is primary color, not transparent */
.wp-block-button__link.has-primary-glow-gradient-background {
  background: var(--wp--preset--gradient--primary-glow);
  color: var(--wp--preset--color--on-primary);
}
/* Hero section spacing fix */
.wp-block-cover h1 mark {
  display: inline-block;
  margin-top: 1rem;
}
/* Page Content Styling */
.wp-block-post-title {
  position: relative;
  padding-bottom: 1.5rem;
}
.wp-block-post-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8rem;
  height: 4px;
  background: var(--wp--preset--color--primary);
}
/* Table styles moved to src/styles/partials/tables.css */
/* Call-to-action boxes: styling removed from global CSS.
   CTA presentation is controlled by block attributes and theme tokens.
   (Previously `.wp-block-group.is-style-cta-box`.) */
/* Image styling */
.wp-block-image img {
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}
.wp-block-image:hover img {
  filter: grayscale(0%);
}
.wp-block-cover.alignfull:first-of-type {
  margin-top: 0 !important;
}
/* Content gutters up to 940px (phones + tablets) */
@media (max-width: 940px) {
  /* Header: breathing room for logo and CTA button */
  /* header group padding removed; prefer block markup / theme.json for gutters */

  /* Content: side gutters for headings, paragraphs and cover inner content */
  .wp-block-heading,
  .wp-block-paragraph,
  .wp-block-group > p,
  .wp-block-column > p,
  .wp-block-cover__inner-container,
  .wp-block-post-title,
  .wp-block-post-content .wp-block-heading,
  .wp-block-post-content p,
  .wp-block-post-content ul,
  .wp-block-post-content ol {
    /* mobile gutters removed here; control spacing via block markup or theme.json */
  }

  /* Reduce heading sizes ~30% on mobile */
  .wp-block-post-title {
    font-size: 2.8rem !important;
  }

  .wp-block-post-title::after {
    left: 0;
  }

  .has-display-lg-font-size {
    font-size: 2.45rem !important;
  }

  .has-headline-md-font-size {
    font-size: 1.75rem !important;
  }
}
