/* ===========================
   GLOBAL SEARCH BAR
=========================== */

/* Wrapper — sits in header-content after nav */
.gs-wrap{
  position: relative;
  flex-shrink: 0;
  z-index: 900;
}

/* Search bar */
.gs-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0 16px;
  height: 44px;
  width: 300px;
  transition: all 0.2s ease;
}

.gs-bar:focus-within{
  background: rgba(255,255,255,0.14);
  border-color: rgba(10,166,214,0.5);
  box-shadow: 0 0 0 3px rgba(10,166,214,0.15);
}

.gs-icon{
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  flex-shrink: 0;
}

.gs-bar:focus-within .gs-icon{
  color: #0AA6D6;
}

.gs-input{
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.gs-input::placeholder{
  color: rgba(255,255,255,0.4);
}

/* Hide native search clear button */
.gs-input::-webkit-search-cancel-button{ display: none; }

/* ===========================
   DROPDOWN PANEL
=========================== */
.gs-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 520px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(17,24,39,0.18), 0 8px 20px rgba(17,24,39,0.10);
  padding: 0;
  scrollbar-width: thin;
}

.gs-dropdown[hidden]{ display: none; }

.gs-dropdown::-webkit-scrollbar{ width: 6px; }
.gs-dropdown::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,0.15);
  border-radius: 3px;
}

/* ===========================
   SECTION HEADERS
=========================== */
.gs-section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}

.gs-section-head:first-child{ padding-top: 16px; }

.gs-clear-btn{
  border: 0;
  background: none;
  color: #0AA6D6;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.gs-clear-btn:hover{ text-decoration: underline; }

/* ===========================
   HOT CASINOS STRIP
=========================== */
.gs-hot-strip{
  display: flex;
  gap: 16px;
  padding: 10px 18px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gs-hot-strip::-webkit-scrollbar{ display: none; }

.gs-hot-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 80px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gs-hot-item:hover{ transform: translateY(-2px); }

.gs-hot-logo{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid rgba(17,24,39,0.08);
  padding: 6px;
}

.gs-hot-name{
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.2;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================
   RECENT SEARCHES
=========================== */
.gs-recent-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}

.gs-recent-item:hover{
  background: rgba(10,166,214,0.06);
}

.gs-recent-item i{
  color: #9CA3AF;
  font-size: 13px;
  flex-shrink: 0;
}

/* ===========================
   SEARCH RESULTS
=========================== */
.gs-result{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  transition: background 0.12s ease;
}

.gs-result:hover,
.gs-result.gs-active{
  background: rgba(10,166,214,0.06);
}

.gs-result-img{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #F5F7FB;
  border: 1px solid rgba(17,24,39,0.06);
  flex-shrink: 0;
  padding: 4px;
}

.gs-result-text{
  flex: 1;
  min-width: 0;
}

.gs-result-name{
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-result-sub{
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.gs-result-badge{
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10,166,214,0.10);
  color: #0AA6D6;
}

/* Type-specific badge colors */
.gs-result-badge[data-type="casino"]{ background: rgba(16,185,129,0.10); color: #059669; }
.gs-result-badge[data-type="slot"]{ background: rgba(139,92,246,0.10); color: #7C3AED; }
.gs-result-badge[data-type="provider"]{ background: rgba(245,158,11,0.10); color: #D97706; }
.gs-result-badge[data-type="license"]{ background: rgba(59,130,246,0.10); color: #2563EB; }
.gs-result-badge[data-type="blog"]{ background: rgba(236,72,153,0.10); color: #DB2777; }

/* ===========================
   NO RESULTS
=========================== */
.gs-empty{
  padding: 32px 18px;
  text-align: center;
  color: #6B7280;
}

.gs-empty-title{
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.gs-empty-text{
  font-size: 13px;
  line-height: 1.5;
}

/* Divider */
.gs-divider{
  height: 1px;
  background: rgba(17,24,39,0.06);
  margin: 4px 18px;
}

/* Bottom padding */
.gs-dropdown-pad{ height: 10px; }

/* ===========================
   MOBILE SEARCH
=========================== */
.gs-mobile-wrap{
  padding: 0 0 16px;
}

.gs-mobile-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
  width: 100%;
}

.gs-mobile-bar .gs-icon{
  color: #9CA3AF;
}

.gs-mobile-bar:focus-within{
  border-color: #0AA6D6;
  box-shadow: 0 0 0 3px rgba(10,166,214,0.12);
}

.gs-mobile-bar:focus-within .gs-icon{
  color: #0AA6D6;
}

.gs-mobile-input{
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.gs-mobile-input::placeholder{
  color: #9CA3AF;
}

.gs-mobile-input::-webkit-search-cancel-button{ display: none; }

/* Mobile dropdown: inline below input */
.gs-mobile-dropdown{
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 14px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(17,24,39,0.10);
}

.gs-mobile-dropdown[hidden]{ display: none; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px){
  .gs-bar{ width: 240px; }
  .gs-dropdown{ width: 440px; }
}

@media (max-width: 900px){
  .gs-bar{ width: 200px; }
  .gs-dropdown{ width: 380px; }
}

@media (max-width: 768px){
  .gs-wrap{ display: none; }
  .gs-mobile-wrap{ display: block; }
}

@media (min-width: 769px){
  .gs-mobile-wrap{ display: none; }
}
