/* Fonts loaded from Google Fonts CDN for better performance */

/* Root and base */
:root {
  --brand: #465A5D;
  --brand-2: #3d9ad6;
  /* default navbar offset */
  --navbar-offset: 70px;
}

html, body {
  font-family: 'Almarai', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
  color: #1f2d3d;
}

/* Sticky footer layout */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--navbar-offset); }
footer.footer { margin-top: auto; }

/* Navbar */
.navbar-brand img { object-fit: contain; }

/* Equal vertical spacing: navbar ⇄ content ⇄ footer */
.bg-theme { margin-bottom: var(--navbar-offset); }
/* Increase space above footer slightly for better breathing room */
section.container.m-auto { margin-bottom: calc(var(--navbar-offset) * 1.5); }

/* Navbar offset for ≥ md screens */
@media (min-width: 768px) {
  :root { --navbar-offset: 70px; }
}

/* Hero/theme */
.bg-theme {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

/* Search block */
.has-search {
  background: #fff;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.search-icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.music-icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* Related searches styling */
.related-searches {
  margin-top: 3rem;
}

.related-searches .list-group-item {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .5rem !important;
  margin-bottom: .5rem;
  padding: .875rem 1.25rem;
  background: #fff;
  color: #1f2d3d;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.related-searches .list-group-item:hover {
  background: #fafbfc;
  border-color: rgba(70,90,93,.12);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  color: #1f2d3d;
}

.related-searches .list-group-item:hover .music-icon {
  color: var(--brand);
}

.related-searches .list-group-item:last-child {
  margin-bottom: 0;
}
.search-input.form-control {
  border: 0;
  box-shadow: none !important;
}
.search-input::placeholder { color: #8da2b5; }

/* Info icons section */
.icon-size {
  width: 56px;
  height: 56px;
  background: rgba(70,90,93,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-title {
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: .25rem;
  font-weight: 700;
}
.heading-text {
  color: var(--brand);
}

/* Result items styling */
.song-list {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* .song-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.12) !important;
} */

.song-list .fw-normal {
  color: var(--brand);
  font-weight: 600 !important;
  font-size: 1.1rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.5rem;
}

.song-list .small {
  color: #6c757d;
  font-size: 0.875rem;
}

.my-item .btn {
  background: linear-gradient(135deg, rgba(70,90,93,0.08) 0%, rgba(61,154,214,0.12) 100%);
  color: var(--brand) !important;
  border: 1px solid rgba(70,90,93,0.15) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  width: auto;
  text-align: center;
  min-width: 80px;
}

.my-item .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(70,90,93,.15);
  background: linear-gradient(135deg, rgba(70,90,93,0.12) 0%, rgba(61,154,214,0.18) 100%);
  border-color: rgba(70,90,93,0.25) !important;
}

.my-item .btn:active {
  transform: translateY(0);
}

/* Lazy loading thumbnails */
.lazy-thumbnail {
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.lazy-thumbnail:not([src*="data:"]) {
  opacity: 1;
}

.lazy-thumbnail[src*="data:"] {
  opacity: 0.8;
}

.ratio .lazy-thumbnail[src*="data:"]:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  border-top-color: transparent;
  animation: lazy-spin 1s linear infinite;
  z-index: 1;
}

@keyframes lazy-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
footer.footer a { text-decoration: none; }
footer.footer a:hover { text-decoration: underline; }
footer.footer .list-inline-item {
  display: inline-flex;
  align-items: center;
}

