/*
Theme Name: Beam Controls Theme
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: Beam Controls Theme (Full, Stable)
Version: 2.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beam-theme
*/

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */

/* 2. Keyframes & Animation Classes (Consolidated) */

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

.glow-hover {
  transition: all 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 40px rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.5);
}

/* Keyframes */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }

  100% {
    transform: translateX(200%) skewX(-15deg);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes flow {
  0% {
    left: 10%;
    opacity: 0;
    transform: scale(0.8);
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: 90%;
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes flowing-data {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-network {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes stream-line {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes chaos {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(5px, -5px);
  }

  50% {
    transform: translate(-5px, 5px);
  }

  75% {
    transform: translate(5px, 5px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Utility Animation Classes */
.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-shimmer {
  animation: shimmer 2s infinite linear;
}

.anim-ripple {
  animation: ripple 3s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

.anim-spin-slow {
  animation: spin-slow 12s linear infinite;
}

.anim-chaos {
  animation: chaos 2s linear infinite;
}

.anim-stream {
  animation: stream-line 2s linear infinite;
}

.anim-pulse-node {
  animation: pulse-network 3s ease-in-out infinite;
}

.path-anim {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 4s linear infinite;
}

/* Enhanced Flowing Data (Convert Card) */
.flowing {
  position: absolute;
  inset: 0;
  display: flex !important;
  /* Force flex */
  align-items: center;
  justify-content: space-around;
  animation: flowing-data 2s linear infinite;
}

.flowing .data-dot {
  /* Inherit absolute pos from data-dot class but localized */
  animation: flow 2s infinite linear;
}

/* Enhanced Flowing Data */
.flowing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  animation: flowing-data 2s linear infinite;
}

.flowing .data-dot {
  animation: flow 2s infinite linear;
}

.flowing .data-dot:nth-child(2) {
  animation-delay: 0.5s;
}

.flowing .data-dot:nth-child(3) {
  animation-delay: 1.0s;
}

.flowing .data-dot:nth-child(4) {
  animation-delay: 1.5s;
}

.data-dot {
  position: absolute;
  /* Reverting to absolute for 'flow' animation compat */
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #FF6600;
  border-radius: 50%;
  opacity: 0;
}

.glow-hover:hover {
  box-shadow: 0 0 40px rgba(255, 102, 0, 0.3);
  border-color: rgba(255, 102, 0, 0.5);
  transition: all 0.3s ease;
}

/* Scanline Effect */
.scanline-overlay {
  position: relative;
  overflow: hidden;
}

.scanline-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 51%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 10;
}

/* 4. WordPress Standard Classes & Alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* 6. Magazine Style Typography (Prose Overrides) */
.prose h2 {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 500;
  margin-top: 2.5em;
  margin-bottom: 1em;
  color: #111827;
  letter-spacing: -0.025em;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.33;
  font-weight: 500;
  margin-top: 2em;
  margin-bottom: 0.75em;
  color: #1f2937;
}

.prose p {
  margin-bottom: 1.5em;
  color: #4b5563;
  line-height: 1.8;
}

.prose ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: #FF6600;
  border-radius: 50%;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.25em;
  margin-bottom: 1.5em;
  color: #4b5563;
}

.prose blockquote {
  border-left: 4px solid #FF6600;
  padding-left: 1.5em;
  font-style: italic;
  color: #1f2937;
  margin-top: 2em;
  margin-bottom: 2em;
  background: #fff7ed;
  /* Light orange tint */
  padding: 1.5rem;
  border-radius: 0 1rem 1rem 0;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

/* Drop Cap for first paragraph */
.prose>p:first-of-type::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: bold;
  margin-right: 0.5rem;
  color: #FF6600;
}

/* 5. Admin Bar Compatibility */
.admin-bar header.fixed {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  .admin-bar header.fixed {
    top: 46px !important;
  }
}

/* Glass Card Depth (Static Site Port) */
.glass-depth {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* 
   FORCE OVERRIDES FOR ANIMATIONS 
   (v8.15 - Emergency Fix)
   =============================================== */

/* 1. BEAM Convert: Flowing Data */
.flowing {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  align-items: center !important;
  justify-content: space-around !important;
  opacity: 1 !important;
  /* Force visible */
}

@keyframes flow-dot-forced {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

.data-dot {
  width: 6px !important;
  height: 6px !important;
  background: #FF6600 !important;
  border-radius: 50% !important;
  animation: flow-dot-forced 1.5s infinite ease-in-out !important;
}

.data-dot:nth-child(2) {
  animation-delay: 0.3s !important;
}

.data-dot:nth-child(3) {
  animation-delay: 0.6s !important;
}

/* 2. BEAM Delta T: Bar Chart */
.animate-bar {
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* 3. BEAM Notify: Path Animation */
@keyframes dash-forced {
  from {
    stroke-dashoffset: 1000;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.path-anim {
  stroke-dasharray: 1000 !important;
  stroke-dashoffset: 1000 !important;
  animation: dash-forced 3s linear infinite !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}