/*
 Theme Name:   Senku Refresh Child
 Theme URI:    https://example.com/mycustomtheme-child/
 Description:  A child theme for Senku Refresh Theme based on Underscores
 Author:       Lani Huang
 Author URI:   https://example.com/
 Template:     senku-refresh
 Version:      1.0.0
 Text Domain:  senku-refresh-child
*/

/* Parent theme styles are now loaded via functions.php for better control */

/* CSS Custom Properties for Theme Colors */
:root {
  --theme-500: #a855f7;
  --theme-600: #9333ea;
}

/* Fixed Header Styles - Pure Glass Effect */
.site-header {
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: transparent;
}

/* Ensure body content doesn't get hidden behind fixed header */
body {
  padding-top: 0;
}

/* Smooth scroll behavior for the entire page */
html {
  scroll-behavior: smooth;
  background: "hsl(270, 43%, 5%)";
}

/* Ensure sections have proper spacing for fixed header navigation */
section {
  scroll-margin-top: 80px;
}

.post,
.page {
  margin: 0;
}

/* Mobile menu styles */
@media (max-width: 767px) {
  .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .menu-toggle:focus {
    outline: 2px solid var(--theme-500);
    outline-offset: 2px;
  }
}

/* Header logo sizing */
.site-header .custom-logo {
  max-height: 40px;
  width: auto;
}

/* Navigation link hover effects */
.main-navigation a {
  position: relative;
  text-decoration: none;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--theme-500), var(--theme-600));
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Video player styles */
#play-button {
  outline: none;
  will-change: opacity;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Play icon (triangle) */
#play-button .play-icon {
  transition: all 0.2s ease;
}

/* Pause icon (two bars) */
#play-button.playing .play-icon {
  border: none;
  width: 20px;
  height: 20px;
  margin-left: 0;
  position: relative;
}

#play-button.playing .play-icon::before,
#play-button.playing .play-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 100%;
  background: white;
  top: 0;
}

#play-button.playing .play-icon::before {
  left: 0;
}

#play-button.playing .play-icon::after {
  right: 0;
}

#play-button:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

#play-button:focus:not(:focus-visible) {
  box-shadow: none;
}

#hero-video {
  outline: none;
}

#hero-video:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Override parent theme's hamburger menu hiding for tablet sizes */
@media screen and (min-width: 37.5em) and (max-width: 1023px) {
  .menu-toggle {
    display: block !important;
  }

  .main-navigation ul {
    display: none !important;
  }
}

/* Ensure hamburger menu is properly styled on tablet */
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
  }

  .menu-toggle:hover {
    color: var(--theme-400, #c084fc);
  }

  .menu-toggle:focus {
    outline: 2px solid var(--theme-500);
    outline-offset: 2px;
  }
}

.gradient-box {
  background: linear-gradient(hsl(270, 43%, 5%), hsl(290, 42.86%, 5.49%))
      padding-box,
    linear-gradient(
        to right,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.07)
      )
      border-box;
  border-radius: 5px;
  border: 1px solid transparent;
}

.glow-button {
  background-color: white;
  color: black;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8),
    0 0 15px 5px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s ease;
}

.glow-button:hover {
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 1),
    0 0 25px 10px rgba(255, 255, 255, 0.7);
}

a.btn-primary,
.btn-primary {
  background-color: white;
  color: black;
  padding: 12px 32px;
  border: none;
  border-radius: 9999px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 30px 0px rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 25px 1px rgba(255, 255, 255, 0.4);
}
