/**
 * @file
 * Minimal overrides for Olivero theme to match ShadCN UI aesthetic
 */
/* Core structural elements */
body, 
.page-wrapper,
.layout-content {
  background-color: var(--background);
  color: var(--foreground);
}
/* === TYPOGRAPHY: HEADINGS & BODY using custom vars === */
p {
  margin: 1em auto;
}
/* === TYPOGRAPHY: HEADINGS & BODY using custom vars === */

h1 {
  font-size: 2.25rem;       /* | text-4xl        */
  line-height: 2.5rem;      /* | leading-tight   */
  font-weight: 700;         /* | font-bold       */
  margin-bottom: 1rem;      /* | mb-4            */
  color: var(--foreground);
}

h2 {
  font-size: 1.875rem;      /* | text-3xl        */
  line-height: 2.25rem;
  font-weight: 600;         /* | font-semibold   */
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

h3 {
  font-size: 1.5rem;        /* | text-2xl        */
  line-height: 2rem;
  font-weight: 500;         /* | font-medium     */
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

h4 {
  font-size: 1.25rem;       /* | text-xl         */
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

h5 {
  font-size: 1.125rem;      /* | text-lg         */
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--muted-foreground);
}

h6 {
  font-size: 1rem;          /* | text-base       */
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--muted-foreground);
}



.text-content h1:first-child,
.text-content h2:first-child,
.text-content h3:first-child,
.text-content h4:first-child,
.text-content h5:first-child,
.text-content h6:first-child {
  margin-top: 0;
}



ul {
  list-style-type: disc;
  padding-left: 1.5rem;     /* | pl-6 */
  margin-bottom: 1rem;
}

ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* View Header */
.view-header {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Header styling */
.site-header__inner__container {
  position: relative;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-header__fixable, 
.site-header__inner, 
.header-nav {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.header-nav-overlay {
  opacity: 0.95 !important;
  backdrop-filter: blur(32px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.8) !important;
  background: var(--background) !important;
}
@media (min-width: 75rem) {
  .site-header__fixable.is-expanded .site-header__inner {
      box-shadow: none !important;
  }
}
/* Mobile menu styles - only apply on mobile */
@media (max-width: 75rem) {  /* Adjust breakpoint to match your theme's mobile breakpoint */
  .header-nav {
    /* Reset some default styles that might cause issues */
    top: 0 !important;
  }

  .header-nav.is-active {
    /* Only apply full height when menu is active */
    height: 100vh !important;
    max-height: none !important;
    overflow-y: auto !important;
    background-color: var(--background) !important;
    /* Ensure it stays below the header */
    z-index: 498 !important;
  }

  /* Ensure header stays above the mobile menu */
  .site-header {
    position: relative;
    z-index: 500 !important;
  }
  

  /* Prevent body scrolling when menu is open */
  body.js-overlay-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Reset header-nav for desktop */
@media (min-width: 75.0625rem) {
  .header-nav {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
    background-color: transparent !important;
  }
  
  /* Ensure desktop menu items are visible */
  .primary-nav__menu-item {
    display: block !important;
  }
}
.site-branding__logo img {
  width: auto;
  max-width: 100%;
  max-height: var(--sp2) !important;
}

@media (min-width: 31.25rem) {
  .site-branding__logo img {
    max-height: var(--sp2) !important;
  }
}

@media (min-width: 43.75rem) {
  .site-branding__logo img {
    max-height: var(--sp2) !important;
  }
}
.site-header__initial {
  background-color: transparent !important;
}
.site-branding__text a {
  color: var(--foreground) !important;
}

.primary-nav__menu-link {
  color: var(--foreground) !important;
  font-weight: 400 !important;
}
.primary-nav__menu-link:hover {
  text-decoration: none !important;
}

.secondary-nav__menu-link {
  color: var(--muted-foreground) !important;
  font-weight: 400 !important;
}

.secondary-nav__menu-link:hover {
  text-decoration: none !important;
}

.block-search-wide__wrapper {
  border-inline-start: solid var(--content-left) var(--background) !important;
  background: var(--muted) !important;
}

.button .block-search-wide__wrapper .search-form__submit {
  background-color: transparent !important;
}
.block-search-wide__button[aria-expanded="true"] {
  background: var(--muted) !important;
}
.block-search-wide__wrapper .search-form__submit .icon--search {
  position: static !important;
}
/* Footer styling */
.site-footer {
  background-color: var(--background);
  color: var(--foreground);
  border-top: 1px solid var(--border);
  border-color: var(--border);
}
@media (min-width: 75rem) {
  body:not(.is-always-mobile-nav) .site-footer {
    border-inline-start: solid var(--content-left) var(--background) !important;
  }
}



/* Form Controls */
input, select, textarea {
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: transparent;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

textarea {
  height: auto;
  min-height: 5rem;
  padding: 0.5rem 0.75rem;
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0 0.5rem;
  height: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Tabs */
.tabs-list {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tabs-trigger {
  display: inline-flex;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
}

.tabs-trigger[data-state="active"] {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

.tabs-content {
  padding: 1rem 0;
}







/* Form required star icon */
.form-item__label.form-required::after,
.fieldset__label.form-required::after,
.required-mark::after {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline: 0.3em;
  content: "";
  vertical-align: text-top;
  background-image: url("data:image/svg+xml,%3Csvg height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m0 7.562 1.114-3.438c2.565.906 4.43 1.688 5.59 2.35-.306-2.921-.467-4.93-.484-6.027h3.511c-.05 1.597-.234 3.6-.558 6.003 1.664-.838 3.566-1.613 5.714-2.325l1.113 3.437c-2.05.678-4.06 1.131-6.028 1.356.984.856 2.372 2.381 4.166 4.575l-2.906 2.059c-.935-1.274-2.041-3.009-3.316-5.206-1.194 2.275-2.244 4.013-3.147 5.206l-2.856-2.059c1.872-2.307 3.211-3.832 4.017-4.575-2.081-.402-4.058-.856-5.93-1.356' fill='currentColor'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: 0.5rem 0.5rem;
  color: var(--primary);
}

/* Dark mode support */
.dark .form-item__label.form-required::after,
.dark .fieldset__label.form-required::after,
.dark .required-mark::after {
  color: var(--primary);
}


.site-branding {
  background-image: none !important;
  z-index: 499;
}
.site-branding__text {
  color: var(--primary) !important;
}



@media (min-width: 75rem) {
  .site-header {
      min-height: var(--site-header-height-wide);
      border-block-end: solid 1px var(--border);
  }
}

/* Fix elements with hardcoded color references */
.page-wrapper {
    background: var(--background) !important;
}
  
.site-header__fixable, .site-header__inner, .header-nav {
    background-color: transparent !important;
}
  
.site-footer {
    position: relative;
    color: var(--muted-foreground);
    background: transparent !important;
}

@media (min-width: 75rem) {
  .site-header {
      min-height: var(--site-header-height-wide);
      border-block-end: solid 1px var(--border);
  }
}



/* Glass blur effect for header */
.site-header__inner__container {
    position: relative;
    z-index: 50;
    backdrop-filter: blur(12px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.8) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.tabs__link {
  border-radius: var(--radius) !important;
  border: none !important;
}
.tabs-wrapper {
  border-radius: var(--radius) !important;
  background-color: var(--muted) !important;
}

@media (min-width: 75rem) {
  .social-bar {
    background-color: var(--muted) !important;
  }
}



/**
 * Library view styling (ShadCN-inspired)
 * Based on the ShadCN UI Music example
 */

/* Override grid layout in the template */
/* Voxread 2026-10-22: one rule for the homepage and library grids. Columns follow the
 * width of the content area (not the window, which has a sidebar offset at some sizes),
 * so they only ever increase as the window widens: about 2 on phones, 3 to 4 on tablets,
 * 5 to 6 on large screens. */
.view-library .view-content .grid,
.view-content .grid,
.view-library .view-content .views-view-grid-responsive,
.view-content .views-view-grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  column-gap: 1rem;
  row-gap: 2rem;
}

/* Fix main container padding */
.view-library .view-content {
  padding: 0;
}

/* Group spacing */
.view-library .group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

/* Main image container */
.view-library .media--type-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
}

/* Image styling */
.view-library .media--type-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1; /* Perfect square like ShadCN Music example */
  transition: transform 0.15s ease-in-out;
}

/* Only scale image on hover, not entire card */
.view-library .group:hover .media--type-image img {
  transform: scale(1.05);
}

.view-library .views-view-responsive-grid__item:hover .media--type-image img {
  transform: scale(1.05);
}

.view-library .views-field-title h2 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 0;
  margin-top: 1em;
}

/* Author styling to match ShadCN example */
.view-library span:not(.views-field-title) {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-sm {
  margin-top: 0.25rem;
}

/* Clean up field styling */
.view-library .field,
.view-library .field__item,
.view-library .field--name-field-media-image {
  margin: 0;
  padding: 0;
}

/* Hide contextual links */
.view-library .contextual {
  display: none;
}

.field--name-field-cta-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color--white);
  background-color: var(--color--black);
  border-radius: var(--radius);
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.field--name-field-cta-link a:hover {
  background-color: var(--color--primary-80);
  color: var(--color--white);
}

.gradient {background-image: linear-gradient(to bottom, var(--background),
color-mix(in oklch, var(--muted) 40%, transparent)); }

.palette-5 {
  /* Base Colors */
  --playlist-background: var(--card); /* fallback to card background */
  --playlist-shadow: rgba(0, 0, 0, 0.4);
  --playlist-border-light: var(--border);
  --playlist-border-medium: var(--muted-foreground);

  /* Text Colors */
  --playlist-text-primary: var(--foreground);
  --playlist-text-secondary: var(--muted-foreground);
  --playlist-text-tertiary: var(--muted-foreground);
  --playlist-text-time: var(--muted-foreground);

  /* Accent Colors */
  --playlist-accent-color: var(--primary);

  /* Progress & Volume Bar Colors */
  --playlist-progress-bar-background: var(--input);
  --playlist-buffer-bar-color: var(--border);

  /* Playlist Item Styling */
  --playlist-item-border: var(--border);
  --playlist-item-hover: var(--muted); /* subtle hover background */
  --playlist-active-background: var(--primary);

  /* Play/Pause Button Styling */
  --playlist-play-pause-button-bg: color-mix(in srgb, var(--primary) 20%, transparent);
  --playlist-play-pause-button-hover-bg: var(--primary);
  --playlist-play-pause-button-hover-color: var(--primary-foreground);

  /* Scrollbar Styling */
  --playlist-scrollbar-track: var(--card);
  --playlist-scrollbar-thumb: var(--muted-foreground);
  --playlist-scrollbar-thumb-hover: var(--foreground);
}

.audio-player-container.skin-two-playlist {
  background-image: linear-gradient(to bottom, var(--background),
color-mix(in oklch, var(--muted) 40%, transparent));
  border-radius: var(--radius);

}
.audio-player-container.skin-two-playlist .audio-player-playlist {
  border-left: none;
  padding-left: 0px;
}

.audio-player-container.skin-two-playlist .audio-player-main-playback-buttons .audio-player-play-icon, .audio-player-container.skin-two-playlist .audio-player-main-playback-buttons .audio-player-pause-icon{
  width: 5em;
  height: 5em;
  padding: 1.2em;
}
.audio-player-container.skin-two-playlist .audio-player-main-playback-buttons svg {
  width: 2em;
  height: 2em;
}
.audio-player-container.skin-two-playlist .audio-player-equalizer-canvas {
  display: none;
}

.audio-player-container.skin-two-playlist .audio-player-top-row {
  display: none;
}
.audio-player-container.skin-two-playlist .audio-player-playlist h3 {
  display: none;
}

.audio-player-content-wrapper:not(.audio-player-full-width) .audio-player-main-player-section:not(.playing) {
  background-image: none;
}

.audio-player-container.skin-two-playlist .audio-player-playlist-item-icon {
  display: none;
}
.audio-player-container.skin-two-playlist .audio-player-control-row-2 {
  display: none;
}
.audio-player-container.skin-two-playlist .audio-player-playlist-content li.audio-player-active-song span {
  background-color: var(--playlist-active-background);
  color: var(--color-white);
  font-weight: 500;
  border-radius: var(--radius);
}
.audio-player-container.skin-two-playlist .audio-player-controls {
  padding: 2em 0;
}
.audio-player-container.skin-two-playlist .audio-player-control-row-1 {
  gap: 3em;
}
.audio-player-time{
  font-size: small;
  color: var(--muted-foreground);
}
.audio-player-container.skin-two-playlist .audio-player-playlist-content li {
  padding: 1em;
}
.audio-player-container.skin-two-playlist .audio-player-main-playback-buttons {
  gap: 3em;
}
.audio-player-container.skin-two-playlist {
  background-color: var(--playlist-background);
  border-radius: var(--radius);
  box-shadow: none; 
  width: 100%;
  max-width: 100%;
  padding: 0px;
  display: block;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.audio-player-content-wrapper{
  display: block;
}
.audio-player, .audio-player-container {
   margin: 0px;
}
.audio-player-container.skin-two-playlist .audio-player-playlist-content li.audio-player-active-song {
  border-radius: var(--radius);
}
.btn-lg-primary, .btn-icon, .btn-icon-primary, .btn-sm-icon, .btn-sm-icon-primary, .btn-lg-icon, .btn-lg-icon-primary {
  position: relative;
  overflow: hidden;

  /* Border shimmer via layered backgrounds */
  border: 2px solid transparent;                   /* border thickness */
  background-origin: border-box;                   /* needed for border-clip trick */
  background-clip: padding-box, border-box;        /* first layer = inner fill, second = border */

  /* Layer 1: inner fill (unchanged)
     Layer 2: border sheen that animates across the border box */
  background-image:
    linear-gradient(225deg, #DC2627, var(--primary)),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
  background-size: auto, 200% 100%;
  /* Start sheen off-canvas to the right to avoid initial flash */
  background-position: 0 0, 200% 0%;
  background-repeat: no-repeat;

  animation: vr-border-shimmer 2.5s linear infinite both; /* moves sheen */

  transition: filter .3s ease;
}

/* Hover sweep: move the glow across */
.btn-lg-primary:hover, .btn-icon:hover, .btn-icon-primary:hover, .btn-sm-icon:hover, .btn-sm-icon-primary:hover, .btn-lg-icon:hover, .btn-lg-icon-primary:hover {
  filter: brightness(1.03);
}

@keyframes vr-border-shimmer {
  0%   { background-position: 0 0, 200% 0%; }
  100% { background-position: 0 0, -200% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-lg-primary, .btn-icon, .btn-icon-primary, .btn-sm-icon, .btn-sm-icon-primary, .btn-lg-icon, .btn-lg-icon-primary {
    animation: none;
  }
}
.gradient {
  background-image: linear-gradient(to bottom, var(--background),
color-mix(in oklch, var(--muted) 40%, transparent))
}

/* Light & dark backgrounds for original and modern cards */
.gradient-red {
  background-image: linear-gradient(
    to bottom,
    var(--background),
    color-mix(in oklch, #fee2e2 60%, transparent)
  );
}

.gradient-green {
  background-image: linear-gradient(
    to bottom,
    var(--background),
    color-mix(in oklch, #d1fae5 60%, transparent)
  );
}

.dark .gradient-red {
  background-image: linear-gradient(
    to bottom,
    var(--background),
    color-mix(in oklch, #7f1d1d 60%, transparent)
  );
}

.dark .gradient-green {
  background-image: linear-gradient(
    to bottom,
    var(--background),
    color-mix(in oklch, #064e3b 60%, transparent)
  );
}
.bg-quote-original {
  background-color: #fee2e2; /* red-100 */
  color: #7f1d1d; /* red-900 */
}

.dark .bg-quote-original {
  background-color: #8b2c2c; /* red-900 */
  color: #fee2e2; /* red-100 */
}

.bg-quote-modern {
  background-color: #d1fae5; /* emerald-100 */
  color: #064e3b; /* emerald-900 */
}

.dark .bg-quote-modern {
  background-color: #065f46; /* emerald-900 */
  color: #d1fae5; /* emerald-100 */
}

/* Label badge styles */
.badge-red {
  background-color: #dc2626; /* red-600 */
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}

.badge-emerald {
  background-color: #059669; /* emerald-600 */
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}
.layout-builder {
  padding: 0.5em 0.5em 0.5em;
  border: 1px solid var(--primary);
  background-color: var(--background);
}

.layout-builder-block {
  padding: 0.5em;
  cursor: move;
  background-color: var(--background);
}

.layout-builder__link--add:hover, .layout-builder__link--add:active {
  color: var(--primary);
  border-bottom-style: none;
}

.layout-builder__add-block {
  padding: 1.5em 0;
  text-align: center;
  background-color: var(--background);
}

.layout-builder__add-section {
  background-color: var(--background);
}
@media (max-width: 380px) {
  .audio-player-container.skin-two-playlist .audio-player-playlist-content li {
    font-size: inherit;
  }
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

::-moz-selection {
  background-color: var(--primary);
  color: #fff;
}

#block-vr1-hero {
  height: 100vh;
  /* background-image: linear-gradient(to bottom, var(--background),
  color-mix(in oklch, var(--primary) 10%, transparent)); */
}

.hero_video {
  object-fit: cover;
  position: absolute;
  top: 0%;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  overflow-x: clip;
  opacity: .8;
}
/* Voxread 2026-10-22 (mobile): the closed off-canvas nav sits at left:100% and
 * widened every page (scrollWidth 2x viewport). Remove it from layout while closed;
 * Olivero adds .is-active to open it (no transition on transform, so nothing is lost). */
@media (max-width: 75rem) {
  .header-nav:not(.is-active) { display: none !important; }
}

/* 2026-10-22 space: one top gap site-wide. Olivero's .main-content__container padding (48px / 80px) stacked with
 * page-level margins (book card my-16) and left 140px+ under the header. Now 24px phones, 32px from 700px. */
html body .main-content__container{padding-block-start:24px}
@media (min-width:43.75rem){html body .main-content__container{padding-block-start:32px}}
