/* Modern Header Features CSS */

/* Container for the right side features */
.header-features {
  display: flex !important;
  align-items: center;
  margin-left: auto;
  position: relative;
}

/* Search button styling - enhanced */
.search-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.search-button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.search-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.search-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.search-button:hover::before {
  width: 120%;
  height: 120%;
}

.search-button i {
  font-size: 18px;
}

/* Search modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.search-modal.show {
  display: flex;
  animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-container {
  width: 100%;
  max-width: 700px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-modal.show .search-container {
  animation: slideInUp 0.5s forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.search-form {
  display: flex;
  width: 100%;
}
.search-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 18px;
  outline: none;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .search-input {
    padding: 12px 15px;
    font-size: 16px;
  }
}

.search-input:focus {
  background-color: #ffffff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(240, 165, 0, 0.2);
}

.search-submit {
  background-color: #f0a500;
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-submit:hover {
  background-color: #e09500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-submit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.search-submit:hover::after {
  left: 100%;
}

/* Theme toggle button removed */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.search-button.pulse {
  animation: pulse 1s 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .header-features {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .header-features {
    margin: 0;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-right: 15px;
    z-index: 1001;
  }

  .search-modal {
    z-index: 1100;
  }
}

@media (max-width: 480px) {
  .header-features {
    margin-right: 10px;
  }

  .search-button {
    width: 34px;
    height: 34px;
  }

  .search-button i {
    font-size: 15px;
  }
}
