/**
 * Shared Search Header Component Styles
 * Standard design for logo + search field + button
 */

/* Search Header Container */
.wisemantiq-search-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* WiSeMantiQ Logo */
.wisemantiq-logo {
  color: #4338ca;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.wisemantiq-logo:hover {
  color: #3730a3;
  text-decoration: none;
}

.wisemantiq-logo .reg {
  font-size: 12px;
  vertical-align: super;
}

/* Search Form */
.wisemantiq-search-form {
  flex-grow: 1;
  display: flex;
  gap: 10px;
  max-width: 600px;
}

/* Search Input Field */
.wisemantiq-search-input {
  flex-grow: 1;
  padding: 12px 20px !important;
  border-radius: 24px !important;
  border: 1px solid #dfe1e5 !important;
  font-size: 16px !important;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1) !important;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: auto !important;
  line-height: 1.5;
}

.wisemantiq-search-input:focus {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28) !important;
  border-color: #4338ca !important;
}

.wisemantiq-search-input::placeholder {
  color: #9ca3af;
}

/* Search Button Design */
.wisemantiq-search-btn {
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d5dfc 100%);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109, 93, 252, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.wisemantiq-search-btn .glyphicon {
  top: 0;
  font-size: 18px;
}

.wisemantiq-search-btn:hover,
.wisemantiq-search-btn:focus {
  background: #eef3fd !important;
  border-color: #d2e3fc !important;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.15) !important;
  color: #1a73e8 !important;
  text-decoration: none;
}

.wisemantiq-search-btn:active {
  background: #e8f0fe !important;
  border-color: #d2e3fc !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .wisemantiq-search-header {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .wisemantiq-logo {
    font-size: 22px;
    align-self: flex-start;
  }

  .wisemantiq-search-form {
    width: 100%;
    max-width: 100%;
  }

  .wisemantiq-search-input {
    padding: 10px 16px;
    font-size: 15px;
  }

  .wisemantiq-search-btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .wisemantiq-search-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .wisemantiq-logo {
    font-size: 20px;
  }

  .wisemantiq-search-form {
    flex-direction: column;
    gap: 8px;
  }

  .wisemantiq-search-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Sticky Search Header */
.wisemantiq-search-inline {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
}

.wisemantiq-search-inline + .container {
  margin-top: 12px;
}

.wisemantiq-search-shell {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.wisemantiq-search-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.wisemantiq-search-inline .wisemantiq-logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
  color: #6d5dfc;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.wisemantiq-search-inline .wisemantiq-logo:hover {
  color: #5b4ef7;
  text-decoration: none !important;
}

.wisemantiq-search-inline .wisemantiq-logo .reg {
  font-size: 11px;
  vertical-align: super;
}

.wisemantiq-search-inline .wisemantiq-search-form {
  flex: 1 1 650px;
  max-width: 650px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.wisemantiq-search-inline .wisemantiq-search-input {
  flex: 1;
  min-width: 0;
  height: 46px !important;
  padding: 10px 20px !important;
  font-size: 16px !important;
  border-radius: 24px !important;
  border: 1px solid #dfe1e5 !important;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1) !important;
  outline: none;
  background: #ffffff;
  color: #202124;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wisemantiq-search-inline .wisemantiq-search-input:focus {
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.2) !important;
  border-color: #6d5dfc !important;
}

.wisemantiq-search-inline .wisemantiq-search-btn {
  width: auto !important;
  height: 44px !important;
  padding: 0 26px !important;
  background: linear-gradient(135deg, #7c3aed 0%, #6d5dfc 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 22px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109, 93, 252, 0.3) !important;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.wisemantiq-search-inline .wisemantiq-search-btn:hover {
  opacity: 0.95;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Yellow Badge Active Tab Styling */
.nav-tabs,
ul.nav-tabs {
  border-bottom: none !important;
  margin-top: 14px;
  margin-bottom: 14px;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  list-style: none !important;
  flex-wrap: wrap !important;
}

.nav-tabs > li,
ul.nav-tabs > li {
  float: none !important;
  display: inline-block !important;
  margin-bottom: 0 !important;
  list-style: none !important;
}

.nav-tabs > li::before,
.nav-tabs > li::after {
  content: none !important;
  display: none !important;
}

.nav-tabs > li > a,
ul.nav-tabs > li > a {
  display: inline-block !important;
  padding: 10px 18px !important;
  color: #333333 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  border-radius: 2px !important;
  transition: all 0.15s ease !important;
}

.nav-tabs > li > a:hover,
ul.nav-tabs > li > a:hover {
  background-color: #f5f5f5 !important;
  color: #111111 !important;
  border: none !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
ul.nav-tabs > li.active > a,
ul.nav-tabs > li.active > a:hover,
ul.nav-tabs > li.active > a:focus {
  background-color: #ffc107 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 2px !important;
}

@media (max-width: 768px) {
  .wisemantiq-search-inline {
    padding: 10px 14px;
  }

  .wisemantiq-search-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .wisemantiq-search-inline .wisemantiq-logo {
    font-size: 22px;
  }

  .wisemantiq-search-inline .wisemantiq-search-form {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
  transition: background 0.2s ease, transform 0.2s ease;
}

.wisemantiq-icon-btn:hover,
.wisemantiq-icon-btn:focus {
  background: rgba(79, 70, 229, 0.08);
  outline: none;
}

.wisemantiq-icon-btn .glyphicon {
  top: 0;
}

@media (max-width: 980px) {
  .wisemantiq-search-row {
    gap: 12px;
  }

  .wisemantiq-search-inline .wisemantiq-logo {
    font-size: 22px;
  }

  .wisemantiq-search-inline .wisemantiq-search-form {
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .wisemantiq-search-inline {
    padding: 10px 12px 12px;
  }

  .wisemantiq-search-row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .wisemantiq-search-inline .wisemantiq-logo {
    font-size: 20px;
  }

  .wisemantiq-search-inline .wisemantiq-search-form {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    order: 2;
  }

  .wisemantiq-search-actions {
    margin-left: 0;
    margin-right: 0;
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
}
