/* Tailwind Conversion Styles
   Replaces Tailwind utility classes with standard CSS
*/

/* Width and Height utilities */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }

/* Flexbox utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Gap utilities */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-1\.5 { column-gap: 0.375rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }

/* Padding utilities */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-\[15vh\] { padding-top: 15vh; }
.pl-10 { padding-left: 2.5rem; }

/* Margin utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }

/* Text utilities */
.text-white { color: white; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-800 { color: #1f2937; }
.text-blue-600 { color: #2563eb; }
.text-blue-200 { color: #bfdbfe; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Background utilities */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: white; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-blue-600\/30 { background-color: rgba(37, 99, 235, 0.3); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-gray-900\/95 { --tw-gradient-from: rgba(17, 24, 39, 0.95); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0)); }
.to-gray-800\/95 { --tw-gradient-to: rgba(31, 41, 55, 0.95); }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-purple-600 { --tw-gradient-to: #9333ea; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Border utilities */
.border { border-width: 1px; }
.border-transparent { border-color: transparent; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-b { border-bottom-width: 1px; }
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-0 { bottom: 0; }
.end-0 { inset-inline-end: 0; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Display utilities */
.hidden { display: none; }

/* Flexbox shrink/grow */
.shrink-0 { flex-shrink: 0; }

/* Z-index utilities */
.z-60 { z-index: 60; }
.z-\[9999\] { z-index: 9999; }

/* Opacity utilities */
.opacity-0 { opacity: 0; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

/* Transform utilities */
.scale-95 { transform: scale(0.95); }
.transform { transform: var(--tw-transform); }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Hover utilities */
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-neutral-700:hover { background-color: #404040; }
.hover\:text-white:hover { color: white; }
.hover\:underline:hover { text-decoration-line: underline; }

/* Focus utilities */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:outline-hidden:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:bg-gray-50:focus { background-color: #f9fafb; }
.focus\:bg-neutral-700:focus { background-color: #404040; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }

/* Backdrop utilities */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-2xl { backdrop-filter: blur(40px); }

/* Shadow utilities */
.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Outline utilities */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* Max width utilities */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-sm { max-width: 24rem; }

/* Min height utilities */
.min-h-screen { min-height: 100vh; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }

/* Placeholder utilities */
.placeholder-gray-400::placeholder { color: #9ca3af; }

/* Decoration utilities */
.decoration-2 { text-decoration-thickness: 2px; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:max-w-sm { max-width: 24rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:gap-8 { gap: 2rem; }
  .md\:inline-block { display: inline-block; }
  .md\:items-start { align-items: flex-start; }
  .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:mb-8 { margin-bottom: 2rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Dark theme utilities */
html[data-theme="dark"] .dark\:bg-neutral-900 { background-color: #171717; }
html[data-theme="dark"] .dark\:border-neutral-800 { border-color: #262626; }
html[data-theme="dark"] .dark\:text-neutral-200 { color: #e5e5e5; }
html[data-theme="dark"] .dark\:text-neutral-400 { color: #a3a3a3; }
html[data-theme="dark"] .dark\:fill-neutral-200 { fill: #e5e5e5; }
html[data-theme="dark"] .dark\:hover\:bg-neutral-700:hover { background-color: #404040; }
html[data-theme="dark"] .dark\:focus\:bg-neutral-700:focus { background-color: #404040; }
html[data-theme="dark"] .dark\:text-blue-500 { color: #3b82f6; }

/* Content container */
.content-container {
  width: 100%;
}

/* Search specific styles */
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 300ms;
  backdrop-filter: blur(4px);
}

.search-trigger-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  transition: opacity 300ms;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
}

.search-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  padding-top: 15vh;
}

.search-content {
  width: 100%;
  max-width: 48rem;
  transform: scale(0.95);
  opacity: 0;
  transition: all 300ms;
}

.search-input-wrapper {
  position: relative;
  background-image: linear-gradient(to bottom right, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
  backdrop-filter: blur(40px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.clear-btn {
  display: none;
  color: #9ca3af;
  transition: color 150ms;
  padding: 0.5rem;
  border-radius: 9999px;
}

.clear-btn:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Featured artists grid */
#featured-artists {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  #featured-artists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  #featured-artists {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  #featured-artists {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* PWA banner */
#pwa-install-banner {
  position: fixed;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 60;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 300ms;
}

@media (min-width: 640px) {
  #pwa-install-banner {
    max-width: 24rem;
  }
}

#pwa-install-banner > div {
  padding: 1rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
}

html[data-theme="dark"] #pwa-install-banner > div {
  background-color: #171717;
  border-color: #262626;
}

#pwa-install-banner svg {
  flex-shrink: 0;
  width: 2rem;
  height: auto;
}

#pwa-install-banner p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #1f2937;
}

html[data-theme="dark"] #pwa-install-banner p {
  color: #e5e5e5;
}

#pwa-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #2563eb;
  text-decoration-thickness: 2px;
  font-weight: 500;
}

html[data-theme="dark"] #pwa-download-link {
  color: #3b82f6;
}

#pwa-download-link:hover {
  text-decoration-line: underline;
}

#pwa-dismiss {
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  color: #6b7280;
  transition: background-color 150ms;
}

html[data-theme="dark"] #pwa-dismiss {
  color: #a3a3a3;
}

#pwa-dismiss:hover {
  background-color: #f9fafb;
}

html[data-theme="dark"] #pwa-dismiss:hover {
  background-color: #404040;
}

#pwa-dismiss:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  background-color: #f9fafb;
}

html[data-theme="dark"] #pwa-dismiss:focus {
  background-color: #404040;
}
