/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Blocksy Child Theme - 8 Ball Pool Tables Premium
 Author:       Tinqor Tech
 Template:     blocksy
 Version:      2.0.0
*/

/* === 8 Ball Pool Tables — Black & White Premium === */

/* Glassmorphism Cards */
.stk-hover-parent {
  background: rgba(17, 17, 17, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stk-hover-parent:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Button Glow — clean white */
.stk-button {
  transition: all 0.3s ease !important;
  position: relative;
}
.stk-button:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.05) !important;
}

/* Scroll Fade-In */
.gpt-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.gpt-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Header Glass Effect */
header[data-id="type-1"].ct-header {
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
header[data-id="type-1"].ct-header.header-glass {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Custom Scrollbar — monochrome */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555555; }
html { scrollbar-color: #333333 #000000; }

/* Image Hover Zoom */
.stk-img-wrapper {
  overflow: hidden;
}
.stk-img-wrapper img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.stk-img-wrapper:hover img {
  transform: scale(1.05);
}

/* Noise Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Accent Dividers — subtle white */
.stk-block-background + .stk-block-background {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Selection Color — inverted */
::selection {
  background: #ffffff;
  color: #000000;
}

/* Smooth Link Transitions */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Video Background Smooth */
.stk-video-background {
  transition: opacity 1s ease;
}

/* Mobile Responsive Tweaks */
@media (max-width: 767px) {
  .stk-hover-parent:hover {
    transform: none;
  }
}

/* ===== FAQ Accordion Styling — B&W ===== */
.stk-block-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0 !important;
}
.stk-block-accordion summary {
  padding: 20px 10px !important;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.stk-block-accordion summary:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.stk-block-accordion[open] summary {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stk-block-accordion .stk-block-accordion__content {
  padding: 0 10px 20px 10px;
}
/* +/- indicator — white */
.stk-block-accordion summary .stk-block-heading__text::after {
  content: '+';
  float: right;
  color: #ffffff;
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.stk-block-accordion[open] summary .stk-block-heading__text::after {
  content: '−';
}

/* ===== Typography refinement ===== */
.stk-block-heading__text {
  letter-spacing: -0.02em;
}
h1 .stk-block-heading__text,
.stk-block-heading--v2[data-text-tag="h1"] .stk-block-heading__text {
  letter-spacing: -0.03em;
}

/* ===== Subtle section separators ===== */
.stk-block-columns.stk-block-background {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== Clean card borders ===== */
.stk-block-card,
.stk-column {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ===== Sticky Header — CSS Fallback ===== */
.ct-sticky-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
}
header.ct-header {
  position: relative;
  z-index: 10000;
}
/* When Blocksy JS adds stuck state */
[data-sticky].ct-sticky-container,
.ct-sticky-container [data-sticky] {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
}
/* Ensure no transform on ancestors (breaks position:fixed/sticky) */
#main-container,
.ct-drawer-canvas,
body,
html {
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
}

/* ===== FOOTER FIX ===== */
footer.ct-footer,
footer.ct-footer [data-row],
footer.ct-footer .ct-container,
.site-footer,
[data-row="bottom"],
[data-row="middle"] {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ===== FOOTER BRANDING ===== */
.ct-footer-copyright p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  line-height: 1.8;
}
.ct-footer-copyright a {
  color: #ffffff !important;
  text-decoration: none !important;
}
.ct-footer-copyright a:hover {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== STICKY HEADER FIX ===== */
#main-container { overflow: visible !important; }
header#header {
  position: sticky !important;
  position: -webkit-sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
}

/* ===== INNER PAGE HERO — Push content below sticky header ===== */
.page:not(.home) .stk-block-columns.stk-block-background:first-child {
  margin-top: -90px;
  padding-top: 200px !important;
}
@media (max-width: 699px) {
  .page:not(.home) .stk-block-columns.stk-block-background:first-child {
    padding-top: 180px !important;
  }
}


/* ===== HOMEPAGE HERO — Full viewport on desktop/tablet ===== */
.stk-8b-hero-vid {
  min-height: 100vh !important;
}
@media (max-width: 699px) {
  .stk-8b-hero-vid {
    min-height: auto !important;
  }
}

/* ===== HOMEPAGE HERO VIDEO — Force full coverage on desktop/tablet ===== */
@media (min-width: 700px) {
  .stk-8b-hero-vid .stk-video-background {
    width: 150vw !important;
    height: 150vh !important;
    min-width: 150vw !important;
    min-height: 150vh !important;
    transform: translateX(-50%) translateY(-50%) !important;
    object-fit: cover !important;
  }
}

