/* Basic theme tweaks to match the Next.js design feel */

:root {
  --primary: #6c63ff;
}

.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar .navbar-brand i {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 500;
}

/* Move navigation menu items closer to logo */
.navbar-nav.ml-auto {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.navbar-nav {
  margin-left: 2rem !important;
}

@media (min-width: 992px) {
  .navbar-nav {
    margin-left: 3rem !important;
  }
}

/* Override Bootstrap's ml-auto to move menu items left */
.navbar-collapse .navbar-nav {
  margin-left: 1rem !important;
  margin-right: auto !important;
}

/* Adjust container spacing */
.navbar .container {
  justify-content: flex-start !important;
}

.navbar-collapse {
  flex-grow: 0 !important;
}

/* Hero */
#home .card {
  border-radius: 0.75rem;
}

#home input.form-control.border-primary {
  border-width: 2px;
}

/* Soft section backgrounds */
.bg-light {
  background-color: #f7f7fb !important;
}

/* Trending tags */
.trending-tag {
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  transition: all .2s ease;
}

.trending-tag:hover {
  background-color: #eef1ff;
  border-color: var(--primary);
}

/* Cards */
.card.shadow-sm {
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,.06) !important;
}

/* Footer */
footer.bg-dark {
  background-color: #0f172a !important;
}

footer .text-light {
  color: rgba(255,255,255,.85) !important;
}

footer .text-muted {
  color: rgba(255,255,255,.6) !important;
}

/* Search box styling */
#searchInput {
  min-width: 300px;
  width: 100%;
}

.input-group {
  max-width: 500px;
  margin: 0 auto;
  display: flex !important;
  flex-wrap: nowrap !important;
}

/* Ensure search button stays inline */
.input-group .btn {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: auto;
}

.input-group-append {
  flex-shrink: 0;
}

/* Force single line layout */
.search-section .input-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

.search-section .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

/* Additional PC-specific fixes */
@media (min-width: 768px) {
  .search-section .input-group {
    width: 100% !important;
    max-width: 500px !important;
  }
  
  .search-section .form-control {
    flex: 1 1 0% !important;
    width: auto !important;
  }
  
  .search-section .input-group-append {
    display: flex !important;
  }
}

/* Utilities */
.bg-opacity-10 {
  background-color: rgba(108, 99, 255, .1) !important;
}

.rounded-pill {
  border-radius: 999px !important;
}
