/*
Theme Name:  KeithSolomon.net 2024
Theme URI:   https://keithsolomon.net
Author:      Keith Solomon
Author URI:  https://keithsolomon.net
Description: 2024 theme update for KeithSolomon.net.
Version:     2024.3.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ksolo-2024
*/

/* Theme-specific CSS is added in src/input.css to be fed to Tailwind */
@import './css/style.css';

#navMobile li.menu-item a {
  margin-bottom: -.25rem !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: clamp(1.185rem, 1.5625vw, 2.35rem) !important;
  font-weight: 700 !important;
  --tw-text-opacity: 1 !important;
  color: rgb(125 211 252/var(--tw-text-opacity)) !important;
}

#primary-nav li.menu-item-has-children {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgb(125, 211, 252)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 0.5rem center;
  background-size: 1rem;
  color: rgb(125, 211, 252);
  padding-right: 1.2rem;

  &:hover {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgb(125, 211, 252)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" transform="rotate(180)" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 0.5rem center;
    background-size: 1rem;
    color: rgb(125, 211, 252);
    padding-right: 1.2rem;
    transition: color 0.5s, background 0.5s;
    transition-behavior: allow-discrete;
  }
}

/** SUCKERFISH DROPDOWNS */
#primary-nav li.menu-item-has-children ul {
  /* second-level lists */
  background-color: rgb(71, 85, 105);
  color: #1F2937;
  display: flex;
  flex-direction: column;
  left: auto;
  margin-top: 1.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  position: absolute;
  transition: 0.75s max-height ease-in-out;
  transition-behavior: allow-discrete;
  width: 12rem;
  z-index: 10;
}

#primary-nav li.menu-item-has-children ul li a:link,
#primary-nav li.menu-item-has-children ul li a:visited,
#primary-nav li.menu-item-has-children ul li a:active {
  border-style: none;
  display: flex;
  font-weight: 600;
  padding: 0;
  text-wrap: balance;
}

/* lists nested under hovered list items */
#primary-nav li.menu-item-has-children:hover ul,
#primary-nav li.menu-item-has-children.sfhover ul {
  border-width: 2px;
  border-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 20rem;
  opacity: 1;
  transition: 0.75s opacity ease-in-out;
  transition-behavior: allow-discrete;
}
