/*
Theme Name: Casino Affiliate Template
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Affiliate-style WordPress theme with author pages and built-in schema markup.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-affiliate
*/

:root {
  --bg: #0f1116;
  --panel: #171a22;
  --text: #e8edf5;
  --muted: #a8b0c0;
  --accent: #5dd6ff;
  --accent-2: #63ffbe;
  --border: #2a3040;
  --max: 1160px;
  --reading-max: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.vsa-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at top right, #1b2030 0%, #0f1116 45%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffd447;
  outline-offset: 2px;
}

.vsa-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.vsa-wrap--bar {
  width: calc(100% - 1rem);
  max-width: none;
  padding-inline: 0.25rem;
}

.vsa-masthead {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(15, 17, 22, 0.92);
}

.vsa-masthead.vsa-is-pinned {
  position: sticky;
  top: 0;
  z-index: 99;
}

.vsa-masthead.vsa-is-plain {
  position: relative;
  top: auto;
  z-index: 10;
}

.vsa-masthead__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.vsa-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: #fff;
  letter-spacing: 0.2px;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
}

.vsa-brand__mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #1d2740;
  overflow: hidden;
  flex-shrink: 0;
}

.vsa-brand__mark-link {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.vsa-brand__mark-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.vsa-brand__fallback {
  color: #8fb7ff;
  font-size: 1.1rem;
  line-height: 1;
}

.vsa-brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.vsa-brand__title {
  font-weight: 800;
  color: #f3f6ff;
  font-size: 1.05rem;
}

.vsa-brand__title-link {
  color: inherit;
}

.vsa-brand__tagline {
  color: #b7c2dc;
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

.vsa-menu ul {
  display: flex;
  gap: 0.42rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.vsa-menu li {
  margin: 0;
}

.vsa-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #dfe8f7;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.vsa-menu a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.5rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.vsa-menu a:hover,
.vsa-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(93, 214, 255, 0.18);
}

.vsa-menu a:hover::after,
.vsa-menu a:focus-visible::after,
.vsa-menu .current-menu-item > a::after,
.vsa-menu .current_page_item > a::after,
.vsa-menu .current-menu-ancestor > a::after,
.vsa-menu .current_page_ancestor > a::after {
  transform: scaleX(1);
}

.vsa-menu .current-menu-item > a,
.vsa-menu .current_page_item > a,
.vsa-menu .current-menu-ancestor > a,
.vsa-menu .current_page_ancestor > a {
  color: #fff;
  background: linear-gradient(180deg, rgba(93, 214, 255, 0.14), rgba(93, 214, 255, 0.05));
  border-color: rgba(93, 214, 255, 0.28);
}

.vsa-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #1a1f2c;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.vsa-menu-button:hover,
.vsa-menu-button:focus-visible {
  border-color: rgba(93, 214, 255, 0.35);
  background: #202637;
}

.vsa-menu-button__line {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.vsa-hero {
  padding: 3.5rem 0 2.5rem;
}

.vsa-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
}

.vsa-hero p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
}

.vsa-feed {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}

.vsa-panel {
  background: linear-gradient(180deg, #1a1e29 0%, #151925 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
}

.vsa-panel h2,
.vsa-panel h3 {
  margin-top: 0;
}

.vsa-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.vsa-byline {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.4rem 0;
}

.vsa-byline img {
  border-radius: 50%;
}

.vsa-byline__avatar {
  display: inline-flex;
  border-radius: 50%;
}

.vsa-byline__name,
.vsa-byline__meta {
  margin: 0;
}

.vsa-byline__name {
  font-weight: 700;
}

.vsa-byline__meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.vsa-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #244f2f;
  background: #163323;
  color: #d9f8e3;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vsa-stamp__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27d657;
  box-shadow: 0 0 0 4px rgba(39, 214, 87, 0.16);
}

.vsa-stamp__dot.is-live {
  animation: live-dot-pulse 1.6s ease-out infinite;
}

@keyframes live-dot-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(39, 214, 87, 0.55);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 9px rgba(39, 214, 87, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(39, 214, 87, 0);
  }
}

.vsa-page-intro {
  max-width: var(--reading-max);
  margin: 1rem auto 1.2rem;
  padding: 0;
  text-align: center;
}

.vsa-page-intro p {
  margin: 0;
  color: #dce2ef;
}

.vsa-page-intro > *:first-child {
  margin-top: 0;
}

.vsa-page-intro > *:last-child {
  margin-bottom: 0;
}

.vsa-page-copy {
  margin-top: 0.4rem;
}

/* Center top section on desktop: H1 + author + intro */
.vsa-page-shell h1 {
  max-width: var(--reading-max);
  margin: 0.35rem auto 0.7rem;
  text-align: center;
}

.vsa-page-shell .vsa-byline {
  max-width: var(--reading-max);
  margin-left: auto;
  margin-right: auto;
}

/* Keep article body comfortably readable while wider than intro */
.vsa-page-shell .vsa-page-copy {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.vsa-page-intro__preview {
  margin-bottom: 0.7rem;
}

.vsa-page-intro__toggle {
  border: 0;
  background: transparent;
  color: #e9eef9;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.vsa-page-intro__toggle:hover {
  color: var(--accent-2);
}

.vsa-button {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  background: var(--accent);
  color: #071018;
  font-weight: 700;
}

.vsa-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
}

.vsa-footer,
.vsa-footer .vsa-wrap,
.vsa-payments,
.vsa-safeplay,
.vsa-footer__widgets,
.vsa-footer__nav,
.vsa-footer__meta {
  min-width: 0;
  max-width: 100%;
}

.vsa-payments {
  margin-bottom: 1.25rem;
}

.vsa-payments__title {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d7def2;
}

.vsa-payments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vsa-payments__list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #202636;
  color: #d7def2;
  padding: 0.35rem 0.55rem;
  font-size: 0.86rem;
}

.vsa-safeplay {
  margin-bottom: 1.25rem;
  border: 1px solid #3a4667;
  border-radius: 12px;
  background: #1a233a;
  padding: 0.95rem 1rem;
}

.vsa-safeplay h2 {
  margin: 0 0 0.35rem;
  color: #ffd447;
  font-size: 1rem;
}

.vsa-safeplay p {
  margin: 0;
  color: #d8deed;
}

.vsa-safeplay__links-wrap {
  margin-top: 1rem;
}

.vsa-safeplay__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.vsa-safeplay__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef5ff;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.vsa-safeplay__link:hover,
.vsa-safeplay__link:focus-visible {
  border-color: rgba(93, 214, 255, 0.38);
  color: #ffffff;
}

.vsa-safeplay__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: #dce9ff;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.vsa-safeplay__link-image {
  display: block;
  width: auto;
  height: 28px;
  max-width: 96px;
  object-fit: contain;
  flex-shrink: 0;
}

.vsa-safeplay__link--image {
  border-radius: 16px;
}

.vsa-safeplay__link-label {
  line-height: 1.2;
  min-width: 0;
}

.vsa-footer__widgets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.vsa-footer__widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.vsa-footer__widget h2,
.vsa-footer__widget h3 {
  margin-top: 0;
  font-size: 1rem;
}

.vsa-footer__meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.vsa-author {
  display: grid;
  gap: 1rem;
  grid-template-columns: 80px 1fr;
  align-items: center;
}

.vsa-author__avatar img {
  border-radius: 50%;
}

.vsa-data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}

.vsa-data-table th,
.vsa-data-table td {
  border: 1px solid var(--border);
  padding: 0.7rem;
  text-align: left;
}

.vsa-data-table th {
  background: #202637;
}

/* Core Table of Contents block */
.wp-block-table-of-contents {
  background: linear-gradient(180deg, #1a1e29 0%, #151925 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  box-shadow: none !important;
  padding: 0.9rem 1rem !important;
  margin: 1rem 0 1.1rem !important;
}

.wp-block-table-of-contents > h2 {
  color: #dce5fb !important;
  font-weight: 700 !important;
  margin: 0 0 0.55rem !important;
}

.wp-block-table-of-contents a {
  color: var(--accent) !important;
  opacity: 1 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.wp-block-table-of-contents a:hover {
  color: var(--accent-2) !important;
}

.wp-block-table-of-contents,
.wp-block-table-of-contents * {
  opacity: 1 !important;
}

.wp-block-table-of-contents ol,
.wp-block-table-of-contents ul {
  margin: 0 !important;
  padding-left: 1.1rem !important;
}

.wp-block-table-of-contents li {
  margin: 0.28rem 0 !important;
  line-height: 1.45 !important;
  color: #d7e0f6 !important;
}

.wp-block-table-of-contents li::marker {
  color: #9eb8ea !important;
  font-weight: 700;
}

@media (max-width: 760px) {
  .vsa-wrap--bar {
    width: calc(100% - 0.6rem);
    padding-inline: 0.1rem;
  }

  .vsa-masthead__inner {
    position: relative;
    gap: 0.5rem;
  }

  .vsa-menu-button {
    display: inline-flex;
  }

  .vsa-brand {
    gap: 0.5rem;
    padding-left: 0.2rem;
  }

  .vsa-brand__title {
    font-size: 0.98rem;
  }

  .vsa-brand__tagline {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.08rem;
  }

  .vsa-page-shell {
    margin-top: 1rem !important;
    padding: 1rem;
  }

  .vsa-page-shell h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.15;
    text-align: center;
    margin-top: 0.2rem;
    margin-bottom: 0.45rem;
  }

  .vsa-byline {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.25rem 0.2rem;
    margin-bottom: 0.45rem;
  }

  .vsa-byline__meta {
    justify-content: center;
    margin-top: 0;
  }

  .vsa-page-intro {
    margin-top: 0.2rem;
    padding: 0.8rem;
  }

  .vsa-page-intro__preview {
    margin-bottom: 0.45rem;
  }

  .vsa-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0.2rem;
    left: 0.2rem;
    width: auto;
    background: rgba(18, 23, 35, 0.96);
    border: 1px solid rgba(93, 214, 255, 0.16);
    border-radius: 18px;
    padding: 0.7rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
    z-index: 120;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .vsa-menu.vsa-is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .vsa-menu ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    font-size: 0.95rem;
  }

  .vsa-menu li a {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
  }

  .vsa-menu a::after {
    left: 0.9rem;
    right: auto;
    width: 28px;
    bottom: 0.48rem;
    transform-origin: left center;
  }

  .vsa-footer__widgets {
    grid-template-columns: 1fr;
  }

  .vsa-safeplay__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .vsa-safeplay__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .wp-block-table-of-contents {
    padding: 0.75rem 0.8rem !important;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
 .vsa-crumbs {
 	margin: 1rem 0 0.35rem;
 }

 .vsa-crumbs__list {
 	display: flex;
 	flex-wrap: wrap;
 	gap: 0.55rem;
 	align-items: center;
 	margin: 0;
 	padding: 0.9rem 1rem;
 	list-style: none;
 	border: 1px solid rgba(255, 255, 255, 0.08);
 	border-radius: 16px;
 	background:
 		radial-gradient(circle at top right, rgba(93, 214, 255, 0.12), transparent 42%),
 		linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
 	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
 }

 .vsa-crumbs__item {
 	display: inline-flex;
 	align-items: center;
 	gap: 0.55rem;
 	color: #d7e3ef;
 	font-size: 0.9rem;
 	line-height: 1.4;
 }

 .vsa-crumbs__item:not(:last-child)::after {
 	content: "/";
 	color: rgba(255, 255, 255, 0.36);
 	font-weight: 700;
 }

 .vsa-crumbs__item a {
 	color: #8ddfff;
 	text-decoration: none;
 	font-weight: 700;
 }

 .vsa-crumbs__item a:hover {
 	color: #ffffff;
 }

 .vsa-crumbs__item [aria-current="page"] {
 	color: #ffffff;
 	font-weight: 800;
 }

 @media (max-width: 480px) {
 	.vsa-crumbs {
 		margin-top: 0.75rem;
 	}

 	.vsa-crumbs__list {
 		padding: 0.75rem 0.8rem;
 		border-radius: 14px;
 	}

 	.vsa-crumbs__item {
 		font-size: 0.82rem;
 	}
 }
