/*
Theme Name: Streamer Theme
Theme URI: https://example.com/streamer-theme
Author: Streamer Toolbox
Author URI: https://example.com
Description: A hybrid WordPress theme for streamers and content creators with customizable colors, fonts, and layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streamer-theme
Tags: streaming, blog, portfolio, custom-colors, custom-logo, custom-menu, featured-images, full-site-editing, block-styles
*/

:root {
  --stb-primary: #5a67ff;
  --stb-secondary: #00c2a8;
  --stb-background: #0f1118;
  --stb-surface: #151a26;
  --stb-text: #f5f7ff;
  --stb-accent: #ffb347;
  --stb-heading-font: system-ui;
  --stb-body-font: system-ui;
  --stb-card-width: min(1200px, calc(100% - 12vw));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--stb-body-font), system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--stb-text);
  background: radial-gradient(circle at 10% 10%, rgba(90, 103, 255, 0.25), transparent 45%),
              radial-gradient(circle at 90% 15%, rgba(0, 194, 168, 0.2), transparent 40%),
              var(--stb-background);
  line-height: 1.6;
  font-size: calc(1rem * var(--stb-theme-font-scale));
  position: relative;
}

img, video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--stb-heading-font), "Segoe UI", sans-serif;
  margin-top: 0;
  color: var(--stb-text);
}

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

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

.stb-theme-site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stb-theme-site-title {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
}

.stb-theme-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stb-theme-branding-name {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--stb-text);
}

.stb-theme-branding-logo {
  max-height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.stb-theme-site-header .stb-theme-branding-logo {
  max-height: var(--stb-header-logo-size);
}

.stb-theme-main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 18px);
}

.stb-theme-main-nav {
  padding: var(--stb-theme-nav-pad-y) var(--stb-theme-nav-pad-x);
  background: var(--stb-theme-nav-bg);
  border-radius: 999px;
  overflow: visible;
}

.stb-theme-main-nav,
.stb-theme-main-nav .stb-theme-menu,
.stb-theme-site-header .wp-block-navigation__container,
.stb-theme-site-header .wp-block-page-list {
  padding-left: var(--stb-theme-nav-edge-pad);
  padding-right: var(--stb-theme-nav-edge-pad);
}

.stb-theme-main-nav:empty,
.stb-theme-main-nav .stb-theme-menu:empty {
  display: none;
}

.stb-theme-main-nav a {
  color: var(--stb-theme-nav-text);
  font-weight: 600;
}

.stb-theme-main-nav a:hover {
  color: var(--stb-theme-nav-hover);
}

.stb-theme-site-header .wp-block-navigation a,
.stb-theme-site-header .wp-block-navigation__container > li > a {
  color: var(--stb-theme-nav-text);
  font-weight: 600;
}

.stb-theme-site-header .wp-block-navigation a:hover,
.stb-theme-site-header .wp-block-navigation__container > li > a:hover {
  color: var(--stb-theme-nav-hover);
}

.stb-theme-site-header .wp-block-navigation:empty,
.stb-theme-site-header .wp-block-navigation__container:empty {
  display: none;
}

.stb-theme-main-nav .stb-theme-menu {
  position: relative;
}

.stb-theme-menu .sub-menu,
.stb-theme-menu .children {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 10px;
  display: none;
  background: rgba(15, 17, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  list-style: none;
  z-index: 50;
}

.stb-theme-menu li {
  position: relative;
}

.stb-theme-menu li > a {
  position: relative;
  z-index: 2;
}

.stb-theme-menu li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.stb-theme-menu .sub-menu .sub-menu,
.stb-theme-menu .children .children {
  top: 0;
  left: 100%;
  margin: 0 0 0 12px;
}

.stb-theme-menu li:hover > .sub-menu,
.stb-theme-menu li:hover > .children,
.stb-theme-menu li:focus-within > .sub-menu,
.stb-theme-menu li:focus-within > .children {
  display: block;
}

.stb-theme-menu .sub-menu li,
.stb-theme-menu .children li {
  margin: 0;
}

.stb-theme-menu .sub-menu a,
.stb-theme-menu .children a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--stb-theme-nav-text);
}

.stb-theme-menu .sub-menu a:hover,
.stb-theme-menu .children a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--stb-theme-nav-hover);
}

.stb-theme-hero {
  padding: clamp(32px, 6vw, 70px) 6vw clamp(24px, 4vw, 52px);
  display: grid;
  gap: clamp(18px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
}

.stb-theme-hero-card {
  background: linear-gradient(160deg, rgba(90, 103, 255, 0.25), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.stb-theme-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--stb-primary);
  color: #fff;
  font-weight: 600;
}

.stb-theme-section {
  padding: clamp(24px, 4.5vw, 48px) 0;
}

.stb-theme-section-surface {
  background: rgba(var(--stb-surface-rgb), var(--stb-surface-opacity));
  border-radius: var(--stb-content-surface-radius);
  padding: var(--stb-content-surface-padding);
  border: 1px solid var(--stb-content-surface-border-color);
  box-shadow: var(--stb-content-surface-shadow);
  width: var(--stb-card-width);
  margin-left: auto;
  margin-right: auto;
}

.stb-theme-card-grid {
  display: grid;
  gap: clamp(14px, 3vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.stb-theme-card {
  padding: var(--stb-content-card-padding);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--stb-content-card-radius);
  border: 1px solid var(--stb-content-card-border-color);
  box-shadow: var(--stb-content-card-shadow);
}

body.stb-theme-has-image-bg {
  background: var(--stb-background);
  background-image: var(--stb-theme-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stb-theme-schedule-list {
  display: grid;
  gap: clamp(10px, 2.5vw, 14px);
}

.stb-theme-schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 20px);
  border-radius: clamp(10px, 2vw, 12px);
  background: rgba(255, 255, 255, 0.04);
}

.stb-theme-sponsor-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
  text-align: center;
}

button, .button, input[type="submit"] {
  font-family: var(--stb-body-font), system-ui, sans-serif;
  background: var(--stb-button-bg);
  color: var(--stb-button-text);
  border: none;
  padding: var(--stb-button-pad-y) var(--stb-button-pad-x);
  border-radius: var(--stb-button-radius);
  font-weight: 600;
  cursor: pointer;
}

input, textarea {
  width: 100%;
  padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
  border-radius: clamp(8px, 2vw, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: var(--stb-text);
}

.stb-theme-has-woocommerce .woocommerce a.button,
.stb-theme-has-woocommerce .woocommerce button.button,
.stb-theme-has-woocommerce .woocommerce input.button,
.stb-theme-has-woocommerce .woocommerce #respond input#submit {
  background: var(--stb-secondary);
  color: #001b1f;
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
}

.stb-theme-has-woocommerce .woocommerce a.button:hover,
.stb-theme-has-woocommerce .woocommerce button.button:hover,
.stb-theme-has-woocommerce .woocommerce input.button:hover,
.stb-theme-has-woocommerce .woocommerce #respond input#submit:hover {
  background: var(--stb-primary);
  color: #fff;
}

.stb-theme-has-woocommerce .woocommerce ul.products li.product {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}

.stb-theme-has-woocommerce .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--stb-text);
  font-family: var(--stb-heading-font), "Segoe UI", sans-serif;
}

.stb-theme-has-woocommerce .woocommerce ul.products li.product .price {
  color: var(--stb-accent);
}

@media (max-width: 720px) {
  .stb-theme-site-branding {
    flex-direction: column;
    align-items: flex-start;
  }

  .stb-theme-main-nav ul {
    gap: 10px;
  }

  .stb-theme-hero {
    padding: clamp(28px, 6vw, 40px) 6vw clamp(20px, 4vw, 30px);
  }

  .stb-theme-section {
    padding: clamp(20px, 5vw, 30px) 6vw;
  }

  .stb-theme-section-surface {
    padding: clamp(18px, 4vw, 26px);
  }

  .stb-theme-schedule-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .stb-theme-site-header,
  .stb-theme-site-footer {
    padding: clamp(20px, 4vw, 28px) 6vw clamp(24px, 5vw, 36px);
  }

  .stb-theme-site-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .stb-theme-socials {
    justify-content: center;
  }

  .stb-theme-bg,
  .stb-theme-header-bg,
  .stb-theme-footer-bg {
    position: absolute;
  }

  .stb-theme-menu .sub-menu,
  .stb-theme-menu .children {
    position: static;
    margin: 8px 0 0;
    min-width: auto;
  }

  .stb-theme-bg--hide-mobile,
  .stb-theme-header-bg--hide-mobile,
  .stb-theme-footer-bg--hide-mobile {
    display: none;
  }

  .stb-theme-bg--mobile-only,
  .stb-theme-header-bg--mobile-only,
  .stb-theme-footer-bg--mobile-only {
    display: block;
  }
}

.stb-theme-bg--mobile-only,
.stb-theme-header-bg--mobile-only,
.stb-theme-footer-bg--mobile-only {
  display: none;
}

@media (max-width: 480px) {
  .stb-theme-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .stb-theme-card,
  .stb-theme-section-surface {
    border-radius: 14px;
  }
}


.stb-theme-site-header {
  padding: clamp(20px, 4vw, 36px) 0 clamp(12px, 2vw, 20px);
  background-color: rgba(var(--stb-header-surface-rgb), var(--stb-header-surface-opacity));
  background-image: var(--stb-theme-header-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
}

.stb-theme-site-header > *:not(.stb-theme-header-bg) {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 12vw));
  margin-left: auto;
  margin-right: auto;
}

.stb-theme-layout-rail {
  padding: var(--stb-layout-pad-top) 0 var(--stb-layout-pad-bottom);
}

.stb-theme-layout-rail__inner {
  display: block;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.stb-theme-layout-box {
  max-width: 100%;
  margin: 0;
}

.stb-theme-layout-split {
  display: block;
}

.stb-theme-layout-main {
  min-width: 0;
}

.stb-theme-layout-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.stb-theme-layout-panel {
  background: rgba(var(--stb-surface-rgb), var(--stb-surface-opacity));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.stb-theme-layout-full .stb-theme-layout-rail__inner {
  max-width: 100%;
  margin: 0 auto;
}

.stb-theme-layout-boxed .stb-theme-layout-rail__inner {
  max-width: 100%;
  margin: 0 auto;
  background: rgba(21, 26, 38, 0.9);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stb-theme-layout-split .stb-theme-layout-rail__inner {
  max-width: 100%;
  margin: 0 auto;
}

.stb-theme-layout-full .stb-theme-layout-sidebar,
.stb-theme-layout-boxed .stb-theme-layout-sidebar {
  display: none;
}

.stb-theme-layout-split .stb-theme-layout-split {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
}

.stb-theme-layout-split .stb-theme-layout-sidebar {
  display: block;
}

@media (max-width: 900px) {
  .stb-theme-layout-split {
    grid-template-columns: 1fr;
  }

  .stb-theme-layout-sidebar {
    position: static;
  }
}
.stb-theme-site-footer {
  padding: clamp(24px, 5vw, 44px) 0 clamp(32px, 6vw, 70px);
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(var(--stb-footer-surface-rgb), var(--stb-footer-surface-opacity));
  background-image: var(--stb-theme-footer-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.stb-theme-site-footer > *:not(.stb-theme-footer-bg) {
  width: var(--stb-card-width);
  margin-left: auto;
  margin-right: auto;
}

.stb-theme-header-card .stb-theme-site-header,
.stb-theme-header-card .wp-block-group.stb-theme-site-header {
  width: var(--stb-card-width);
  margin: clamp(16px, 4vw, 32px) auto 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(var(--stb-header-surface-rgb), var(--stb-header-surface-opacity));
  backdrop-filter: blur(14px);
  z-index: 2;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.stb-theme-footer-card .stb-theme-site-footer,
.stb-theme-footer-card .wp-block-group.stb-theme-site-footer {
  width: var(--stb-card-width);
  margin: clamp(24px, 6vw, 48px) auto clamp(24px, 6vw, 48px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(var(--stb-footer-surface-rgb), var(--stb-footer-surface-opacity));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.stb-theme-socials {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stb-theme-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--stb-text);
  font-weight: 600;
}

.stb-theme-social-icon {
  width: var(--stb-social-icon-size);
  height: var(--stb-social-icon-size);
  object-fit: contain;
  background: var(--stb-accent);
  padding: 4px;
  border-radius: 999px;
}

.stb-theme-socials a:hover {
  color: var(--stb-accent);
}

.stb-theme-socials--header {
  margin: 12px 0 0;
  justify-content: flex-end;
}

.stb-theme-socials--icons-only .stb-theme-social-label {
  display: none;
}

.stb-theme-socials--icons-only a {
  padding: 6px;
  border-radius: 999px;
}

body.stb-theme-woocommerce-styled .woocommerce a.button,
body.stb-theme-woocommerce-styled .woocommerce button.button,
body.stb-theme-woocommerce-styled .woocommerce input.button,
body.stb-theme-woocommerce-styled .woocommerce #respond input#submit {
  background: var(--stb-woo-button-bg);
  color: var(--stb-woo-button-text);
  border-radius: var(--stb-woo-button-radius);
  border: none;
}

.stb-theme-site-footer > *:not(.stb-theme-footer-bg) {
  position: relative;
  z-index: 1;
}

.stb-theme-bg,
.stb-theme-header-bg,
.stb-theme-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stb-theme-bg {
  position: fixed;
  z-index: -1;
}

.stb-theme-bg-video,
.stb-theme-header-bg-video,
.stb-theme-footer-bg-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stb-theme-bg-fallback,
.stb-theme-header-bg-fallback,
.stb-theme-footer-bg-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.stb-theme-bg-fallback {
  background-image: var(--stb-theme-bg-fallback-image);
}

.stb-theme-header-bg-fallback {
  background-image: var(--stb-theme-header-bg-fallback-image);
}

.stb-theme-footer-bg-fallback {
  background-image: var(--stb-theme-footer-bg-fallback-image);
}

.stb-theme-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--stb-theme-bg-overlay-opacity);
  z-index: 2;
}

.stb-theme-header-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--stb-theme-header-bg-overlay-opacity);
  z-index: 2;
}

.stb-theme-footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--stb-theme-footer-bg-overlay-opacity);
  z-index: 2;
}

