/*
Theme Name: Fameup Child
Template: fameup
*/

/* ============================================
   SENOTA CUSTOM HEADER - RESPONSIVE
   ============================================ */

/* Hide parent theme header elements */
header.bs-default > *:not(.senota-custom-header-wrapper) {
  display: none !important;
}

header.bs-default {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.senota-custom-header-wrapper {
  width: 100%;
  background: #fff;
}

.senota-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   MOBILE HEADER (Default - Hidden on Desktop)
   ============================================ */

.senota-header-mobile {
  display: block;
}

.senota-header-desktop {
  display: none;
}

.senota-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.senota-logo a {
  display: block;
  line-height: 0;
}

.senota-logo img,
.senota-logo-desktop img {
  max-height: 45px;
  width: auto;
  display: block;
}

/* Hamburger Button */
.senota-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.senota-menu-toggle.active {
  opacity: 0;
  pointer-events: none;
}

/* OR if you want to keep it visible but behind the menu: */
.senota-header-mobile {
  position: relative;
  z-index: 9997; /* Lower than the expanded menu (9998) */
}

.senota-nav-expanded {
  z-index: 9999; /* Higher than header */
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.senota-menu-toggle.active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.senota-menu-toggle.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.senota-menu-toggle.active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Expanded Navigation */
.senota-nav-expanded {
  position: fixed;
  top: 0; /* Change from 75px to 0 */
  left: 0;
  right: 0;
  bottom: 0;
  background: #86b916;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0.4s;
  overflow-y: auto;
  z-index: 9998;
}

.senota-nav-expanded.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.senota-nav-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Change from calc(100vh - 75px) to 100vh */
}

/* Add padding to the top of nav-header to account for safe area */
.senota-nav-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-top: 15px; /* Add some top padding */
}

.senota-nav-close {
  padding: 0;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.senota-nav-close:hover {
  opacity: 0.8;
}

/* Newsletter Button */
.senota-newsletter-link {
  margin-bottom: 20px;
}

.input-group-btn {
  display: none;
}

.senota-subscribe-btn {
  display: inline-block;
  color: #fff !important;
  padding: 12px 24px;
  border: 1px solid #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.senota-subscribe-btn:hover {
  background: #fff;
  color: #86b916 !important;
  text-decoration: none;
}

/* Search Bar */
.senota-search-bar {
  margin-bottom: 30px;
}

.senota-search-bar .search-form {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.senota-search-bar .search-field {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
}

.senota-search-bar .search-submit {
  background: #fff;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
}

/* Main Menu */
.senota-main-menu {
  flex: 1;
}

.senota-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.senota-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.senota-menu-list > li > a {
  display: block;
  color: #fff !important;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: padding-left 0.3s ease;
}

.senota-menu-list > li > a:hover {
  padding-left: 10px;
  color: #fff !important;
}

.senota-menu-list .sub-menu {
  list-style: none;
  padding: 0 0 10px 20px;
  margin: 0;
}

.senota-menu-list .sub-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 10px 0;
  font-size: 15px;
  text-decoration: none;
}

.senota-menu-list .sub-menu a:hover {
  color: #fff !important;
}

/* Social Icons */
.senota-social-row {
  margin-top: auto;
  padding-top: 30px;
  padding-bottom: 20px;
}

.senota-social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.senota-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff !important;
  font-size: 18px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}

.senota-social-icons a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Overlay */
.senota-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;
  z-index: 9997;
}

.senota-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* Content padding */
#content.site-content {
  padding-top: 180px;
}

/* ============================================
   DESKTOP HEADER (1024px and up)
   ============================================ */

@media (min-width: 1024px) {
  /* Hide mobile header */
  .senota-header-mobile {
    display: none;
  }

  /* Show desktop header */
  .senota-header-desktop {
    display: block;
  }

  /* Top Bar with Date/Time and Social Icons */
  .senota-top-bar {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
  }

  .senota-top-bar .senota-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .senota-top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* Date and Time display */
  .senota-top-bar-left .bs-blog-date,
  .senota-top-bar-left .bs-blog-meta,
  .senota-top-bar-left time {
    font-size: 13px;
    color: #666;
    margin: 0;
  }

  .senota-top-bar-left .fa-clock,
  .senota-top-bar-left .fa-calendar {
    margin-right: 5px;
    color: #86b916;
  }

  .senota-social-icons-desktop {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
  }

  .senota-social-icons-desktop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666 !important;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
  }

  .senota-social-icons-desktop a:hover {
    color: #86b916 !important;
  }

  .senota-social-icons-desktop {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
  }

  .senota-social-icons-desktop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #666 !important;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
  }

  .senota-social-icons-desktop a:hover {
    color: #86b916 !important;
  }

  /* Logo Section */
  .senota-logo-section {
    padding: 20px 0;
    text-align: center;
  }
  .senota-logo-section > .senota-container {
    display: flex;
    align-items: center;
  }
  .senota-logo-section > .senota-container > * {
    flex: 1;
  }

  .senota-logo-desktop a {
    display: inline-block;
    line-height: 0;
  }

  .senota-logo-desktop img {
    max-height: 80px;
    width: auto;
  }

  /* Horizontal Navigation */
  .senota-nav-desktop {
    background: transparent;
    border-top: 1px solid #ddd;
  }

  .senota-nav-desktop .senota-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 2.5rem;
  }

  .senota-menu-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 5px;
  }

  .senota-menu-horizontal > li {
    position: relative;
  }

  .senota-menu-horizontal > li > a {
    display: block;
    color: #666 !important;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .senota-menu-horizontal > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Dropdown submenu */
  .senota-menu-horizontal .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #6a9312;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .senota-menu-horizontal > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .senota-menu-horizontal .sub-menu a {
    display: block;
    color: #fff !important;
    padding: 12px 20px;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .senota-menu-horizontal .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Navigation Actions (Subscribe + Search) */
  .senota-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .senota-subscribe-btn-desktop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #86b916;
    color: #fff !important;
    padding: 5px 10px;
    border: 2px solid #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .senota-subscribe-btn-desktop:hover {
    background: #86b916dd;
  }

  .senota-search-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .senota-search-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #86b916 !important;
  }

  .senota-search-toggle:active {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #86b916 !important;
  }

  .senota-search-toggle:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #86b916 !important;
  }
  .senota-search-toggle:hover:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #86b916 !important;
  }

  .header-quote {
    font-size: 12px;
    width: 80%;
  }
  /* Search Dropdown */
  .senota-nav-actions .bs-search-box {
    position: relative;
  }

  .senota-nav-actions .bs-search-box .msearch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .senota-nav-actions .bs-search-box .msearch:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .senota-nav-actions .bs-search-box .dropdown-menu {
    min-width: 300px;
    padding: 15px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .senota-nav-actions .bs-search-box .searchinner .search-form {
    margin: 0;
  }

  .senota-nav-actions .bs-search-box .searchinner .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }

  .senota-nav-actions .bs-search-box .searchinner .search-submit {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #86b916;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .senota-nav-actions .bs-search-box .searchinner .search-submit:hover {
    background: #6a9312;
  }

  /* If using Fameup's default search form with input-group */
  .senota-nav-actions .bs-search-box .input-group {
    display: flex;
    align-items: stretch;
  }

  .senota-nav-actions .bs-search-box .input-group .form-control {
    flex: 1;
    border-radius: 4px 0 0 4px;
  }

  .senota-nav-actions .bs-search-box .input-group-btn {
    display: flex;
  }

  .senota-nav-actions .bs-search-box .input-group-btn .btn {
    border-radius: 0 4px 4px 0;
    background: #86b916;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .senota-nav-actions .bs-search-box .input-group-btn .btn:hover {
    background: #6a9312;
  }
  /* Search Dropdown */
  .senota-nav-actions .bs-search-box {
    position: relative;
  }

  .senota-nav-actions .bs-search-box .msearch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    color: #666 !important;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .senota-nav-actions .bs-search-box .msearch:hover {
    background: rgba(134, 185, 22, 0.1);
    color: #86b916 !important;
  }

  .senota-nav-actions .bs-search-box .msearch:focus,
  .senota-nav-actions .bs-search-box .msearch[aria-expanded="true"] {
    background: rgba(134, 185, 22, 0.1);
    color: #86b916 !important;
  }

  .senota-nav-actions .bs-search-box .dropdown-menu {
    min-width: 300px;
    padding: 15px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Input Group Search Form */
  .senota-nav-actions .bs-search-box .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .senota-nav-actions .bs-search-box .input-group .form-control {
    flex: 1;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
  }

  .senota-nav-actions .bs-search-box .input-group-btn {
    display: flex;
  }

  .senota-nav-actions .bs-search-box .input-group-btn .btn {
    border-radius: 0 4px 4px 0;
    background: #86b916;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .senota-nav-actions .bs-search-box .input-group-btn .btn:hover {
    background: #6a9312 !important;
  }

  .senota-nav-actions .bs-search-box .input-group-btn .btn:focus {
    background: #6a9312 !important;
    box-shadow: none;
  }
  /* Search Dropdown - Custom (No Bootstrap) */
  .senota-nav-actions .senota-search-dropdown {
    position: relative;
  }

  .senota-nav-actions .senota-search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #666 !important;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .senota-nav-actions .senota-search-toggle-btn:hover,
  .senota-nav-actions .senota-search-toggle-btn:focus {
    background: rgba(134, 185, 22, 0.1) !important;
    color: #86b916 !important;
    box-shadow: none !important;
  }

  .senota-nav-actions .senota-search-toggle-btn[aria-expanded="true"] {
    background: rgba(134, 185, 22, 0.1) !important;
    color: #86b916 !important;
  }

  .senota-nav-actions .senota-search-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .senota-nav-actions .senota-search-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Arrow pointer */
  .senota-nav-actions .senota-search-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
  }

  /* Input Group Search Form */
  .senota-nav-actions .senota-search-dropdown-menu form {
    margin: 0;
  }

  .senota-nav-actions .senota-search-dropdown-menu .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
  }

  .senota-nav-actions .senota-search-dropdown-menu .input-group .form-control {
    flex: 1;
    border-radius: 4px 0 0 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
  }

  .senota-nav-actions .senota-search-dropdown-menu .input-group-btn {
    display: flex;
  }

  .senota-nav-actions .senota-search-dropdown-menu .input-group-btn .btn {
    border-radius: 0 4px 4px 0;
    background: #86b916;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .senota-nav-actions .senota-search-dropdown-menu .input-group-btn .btn:hover,
  .senota-nav-actions .senota-search-dropdown-menu .input-group-btn .btn:focus {
    background: #6a9312 !important;
    box-shadow: none !important;
  }
  #content {
    padding-top: 180px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .senota-header-bar {
    padding: 12px 15px;
  }

  .senota-logo img {
    max-height: 38px;
  }

  .senota-nav-expanded {
    top: 0; /* Ensure it's 0 on mobile too */
  }

  .senota-nav-container {
    min-height: 100vh; /* Full viewport height */
  }

  #content.site-content {
    padding-top: 65px;
  }
}
