/* WordPress-specific additions for the Bright Spark theme */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* Menus */
.nav__list,
.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
  color: var(--text);
}

.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -2px;
  height: 2px;
  background: var(--violet);
}

.mobile-nav__list a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
}

.mobile-nav > .btn {
  margin-top: 1.25rem;
}

.badge.is-empty {
  display: none;
}

.footer-bottom nav a + a {
  margin-left: 0;
}

.footer-bottom .menu-item {
  list-style: none;
}

/* Layout pieces */
.about__photo,
.entry-hero {
  margin: 0;
}

.page-body {
  padding: 3rem 0 6rem;
}

.shop-body {
  padding-bottom: 6rem;
}

.page-head .lead p {
  margin: 0;
}

.entry-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found {
  max-width: 42rem;
}

.not-found .lead {
  margin: 1.25rem 0 2rem;
}

/* Page / post content */
.entry-content {
  max-width: 46rem;
  font-size: 1.04rem;
  color: #d9d3e3;
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 0;
  color: var(--text);
  line-height: 1.2;
}

.entry-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 112%;
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 0;
}

.entry-content a:not(.btn):not(.wp-block-button__link) {
  color: var(--violet-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:not(.btn):hover {
  color: #fff;
}

.entry-content img,
.entry-content figure {
  border-radius: var(--radius);
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.entry-content blockquote {
  margin-inline: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--violet);
  color: var(--text);
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-content .wp-block-button__link,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius);
  background: var(--violet);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.alignwide {
  max-width: none;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.aligncenter {
  margin-inline: auto;
}

.alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}

.wp-caption-text,
.gallery-caption {
  font-size: 0.85rem;
  color: var(--muted);
}

.sticky,
.bypostauthor {
  display: block;
}

/* Blog grid */
.post-grid {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 700px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
}

.post-card__placeholder {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card:hover .card__title {
  color: var(--violet-soft);
}

.post-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Pagination & post navigation */
.pagination,
.post-navigation {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--muted);
}

.page-numbers:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.page-numbers.current {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.post-navigation .nav-links {
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}

.post-navigation a span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--violet);
}

label {
  font-size: 0.9rem;
  font-weight: 500;
}

button[type="submit"],
input[type="submit"] {
  min-height: 46px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--violet);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--violet-hover);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

/* Password-gated tutorials */
.page-body--tutorial {
  padding-top: 0;
  padding-bottom: 4rem;
}

.page-head--tutorial .eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
}

.bs-tutorial-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 980px) {
  .bs-tutorial-layout.has-aside {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
    gap: 3rem;
    align-items: start;
  }
}

.bs-tutorial.is-locked {
  max-width: 36rem;
}

.bs-tutorial.entry-content {
  max-width: none;
}

.bs-tutorial-layout:not(.has-aside) .bs-tutorial.entry-content,
.bs-tutorial-layout:not(.has-aside) .bs-owner-tutorial {
  max-width: 48rem;
}

/* New releases sidebar */
.bs-tutorial-aside {
  position: relative;
}

@media (min-width: 980px) {
  .bs-tutorial-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

.bs-tutorial-aside__inner {
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(155, 69, 255, 0.14), transparent 55%),
    var(--surface);
}

.bs-tutorial-aside__title {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.1;
}

.bs-tutorial-aside__lede {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.bs-tutorial-aside__list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.bs-release {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  transition: opacity 0.2s;
}

.bs-release:hover {
  opacity: 0.88;
}

.bs-release__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.bs-release__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-release__media--empty {
  display: grid;
  place-items: center;
  padding: 0.6rem;
}

.bs-release__media--empty img {
  width: 60%;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
}

.bs-release__badge {
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bs-release__badge.is-muted {
  background: rgba(10, 9, 13, 0.78);
  color: var(--muted);
}

.bs-release__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.bs-release__cat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.bs-release__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.bs-release__price {
  font-size: 0.85rem;
  color: var(--violet-soft);
}

.bs-release__price del {
  color: var(--subtle);
  margin-right: 0.35rem;
}

@media (max-width: 979px) {
  .bs-tutorial-aside__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bs-release {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.bs-tutorial.entry-content iframe,
.bs-tutorial.entry-content video,
.bs-tutorial.entry-content .wp-block-embed,
.bs-tutorial.entry-content .wpb_video_widget {
  display: block;
  width: 100%;
  max-width: 100%;
}

.bs-tutorial.entry-content iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 240px;
  border: 0;
  border-radius: var(--radius);
}

/* Owner tutorial shortcode */
.bs-owner-tutorial {
  max-width: 44rem;
}

.bs-owner-tutorial__intro {
  margin-bottom: 2.25rem;
}

.bs-owner-tutorial__title {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.bs-owner-tutorial__intro .lead {
  margin: 0;
}

.bs-owner-tutorial__section {
  margin: 0 0 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.bs-owner-tutorial__heading {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.bs-owner-tutorial__donts ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #d9d3e3;
}

.bs-owner-tutorial__donts li + li {
  margin-top: 0.75rem;
}

.bs-owner-tutorial__warning {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--text);
}

.bs-owner-tutorial__video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0b0614;
  aspect-ratio: 16 / 9;
}

.bs-owner-tutorial__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bs-owner-tutorial__faq.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.bs-owner-tutorial__faq.accordion details {
  border-bottom: 1px solid var(--line);
}

.bs-owner-tutorial__faq.accordion details:last-child {
  border-bottom: 0;
}

.bs-owner-tutorial__faq.accordion summary {
  padding: 1rem 1.15rem;
  font-weight: 650;
}

.bs-owner-tutorial__faq .accordion__body {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.bs-owner-tutorial__faq .accordion__body p {
  margin: 0;
}

.bs-password-gate {
  margin: 0.5rem 0 2rem;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bs-password-gate__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.bs-password-gate .lead {
  margin: 0 0 1.5rem;
}

.bs-password-gate__form {
  display: grid;
  gap: 1rem;
  max-width: 22rem;
}

.bs-password-gate__field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.bs-password-gate__field label {
  color: var(--muted);
}

.bs-password-gate__field input[type="password"] {
  width: 100%;
  min-height: 46px;
}

.bs-password-gate__help {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bs-password-gate__help a {
  color: var(--violet-soft);
}

/* Fallback if a default WP password form still appears */
.post-password-form:not(.bs-password-gate__form) {
  display: grid;
  gap: 1rem;
  max-width: 24rem;
  margin: 1rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-password-form:not(.bs-password-gate__form) label {
  display: grid;
  gap: 0.45rem;
}

.post-password-form:not(.bs-password-gate__form) input[type="password"] {
  width: 100%;
}

/* Comments */
.comments-area {
  max-width: 46rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .comment {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.comment-form p {
  display: grid;
  gap: 0.4rem;
}

.comment-form textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]) {
  width: 100%;
}

/* Contact page */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card--accent {
  border-color: rgba(155, 69, 255, 0.4);
}

.contact-card__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.contact-card a,
.contact-card p {
  display: block;
  margin: 0.15rem 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--violet-soft);
}

.contact-card__muted,
.contact-card p.contact-card__muted {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card .text-link {
  margin-top: 0.75rem;
}

.contact-form-wrap {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-form__title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
}

.contact-form__field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.contact-form__field textarea {
  resize: vertical;
}

.form-notice {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.form-notice--ok {
  border-color: rgba(61, 255, 224, 0.35);
}

.form-notice--error {
  border-color: rgba(255, 107, 129, 0.45);
}

/* Fix light leftover The7 wrappers on generic pages */
.wf-container,
.wf-container-main,
.vc_row,
.wpb_row {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: transparent !important;
}

.page-body .entry-content .vc_column-inner,
.page-body .entry-content .wpb_column {
  padding: 0 !important;
}
