/* ============================================
   Hynolabs Banners - Custom CSS
   Optimized replacement for Tailwind CSS
   ============================================ */

/* CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================
   Theme Variables
   ============================================ */
:root {
  --color-primary: #6366f1;
  --color-primary-hover: #818cf8;
  --color-secondary: #9333ea;
  --color-teal: #14b8a6;
  --color-blue: #2563eb;
  
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: rgba(0, 0, 0, 0.03);
  --bg-tertiary: rgba(0, 0, 0, 0.05);
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-quaternary: #9ca3af;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.06);
}

/* Dark theme colors */
.dark {
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(255, 255, 255, 0.03);
  --bg-tertiary: rgba(255, 255, 255, 0.05);
  --text-primary: #e5e7eb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-quaternary: #6b7280;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(255, 255, 255, 0.06);
}

/* ============================================
   Base Theme Styles
   ============================================ */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* ============================================
   Spacing Utilities
   ============================================ */
.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pl-12 {
  padding-left: 3rem;
}

.pr-36 {
  padding-right: 9rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* ============================================
   Positioning
   ============================================ */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.top-1\/2 {
  top: 50%;
}

.right-2 {
  right: 0.5rem;
}

.right-2 {
  right: 0.5rem;
}

.right-1\.5 {
  right: 0.375rem;
}

.right-24 {
  right: 6rem;
}

.right-28 {
  right: 7rem;
}

.left-4 {
  left: 1rem;
}

.right-28 {
  right: 7rem;
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.-z-10 {
  z-index: -10;
}

/* ============================================
   Sizing
   ============================================ */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-auto {
  height: auto;
}

.min-h-screen {
  min-height: 100vh;
}

/* ============================================
   Typography
   ============================================ */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.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;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* Text colors */
.text-white {
  color: #ffffff;
}

.text-indigo-400 {
  color: #818cf8;
}

.text-neutral-100 {
  color: #f5f5f5;
}

.text-neutral-200 {
  color: #e5e5e5;
}

.text-neutral-300 {
  color: #d4d4d4;
}

.text-neutral-400 {
  color: #a3a3a3;
}

.text-neutral-500 {
  color: #737373;
}

.text-neutral-600 {
  color: #525252;
}

.text-neutral-700 {
  color: #404040;
}

.text-neutral-900 {
  color: #171717;
}

.text-amber-500 {
  color: #f59e0b;
}

.text-amber-400 {
  color: #fbbf24;
}

/* Light theme text overrides */
.light-theme .text-neutral-100 {
  color: #171717;
}

.light-theme .text-neutral-300 {
  color: #525252;
}

.light-theme .text-neutral-400 {
  color: #525252;
}

.light-theme .text-neutral-500 {
  color: #737373;
}

.light-theme .text-neutral-600 {
  color: #525252;
}

.light-theme .text-neutral-900 {
  color: #171717;
}

/* ============================================
   Background Colors
   ============================================ */
.bg-white {
  background-color: #ffffff;
}

.bg-indigo-500 {
  background-color: var(--color-primary);
}

.bg-indigo-400 {
  background-color: var(--color-primary-hover);
}

.bg-transparent {
  background-color: transparent;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-opacity-95 {
  background-color: rgba(11, 15, 25, 0.95);
}

.light-theme .bg-opacity-95 {
  background-color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Borders
   ============================================ */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-white\/10 {
  border-color: var(--border-color);
}

.light-theme .border-white\/10,
.light-theme .border-black\/10 {
  border-color: rgba(0, 0, 0, 0.1);
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* ============================================
   Effects & Transitions
   ============================================ */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.transition,
.transition-colors,
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.pointer-events-none {
  pointer-events: none;
}

.cursor-pointer {
  cursor: pointer;
}

.overflow-hidden {
  overflow: hidden;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Hover States
   ============================================ */
.hover\:text-indigo-400:hover {
  color: #818cf8;
}

.hover\:bg-indigo-400:hover {
  background-color: var(--color-primary-hover);
}

.hover\:bg-white\/5:hover {
  background-color: var(--bg-tertiary);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:-translate-y-0\.5:hover {
  transform: translateY(-0.125rem);
}

.light-theme .hover\:bg-white\/5:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.light-theme .hover\:bg-black\/5:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.light-theme .hover\:bg-black\/20:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Focus States
   ============================================ */
.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6);
}

.focus\:ring-indigo-500\/60:focus {
  --tw-ring-color: rgba(99, 102, 241, 0.6);
}

.focus\:border-indigo-500\/60:focus {
  border-color: rgba(99, 102, 241, 0.6);
}

/* ============================================
   Component Styles
   ============================================ */

/* Header */
.header-bg {
  background-color: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px);
}

.light-theme .header-bg {
  background-color: rgba(255, 255, 255, 0.95);
}

/* Search Input */
.search-input {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  padding: 0.75rem 9rem 0.75rem 3rem;
  outline: none;
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--shadow-color);
}

.search-input::placeholder {
  color: var(--text-quaternary);
}

.search-input:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6);
  border-color: rgba(99, 102, 241, 0.6);
}

/* Card Background */
.card-bg {
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 1px var(--shadow-color);
  transition: all 0.3s ease;
}

.card-bg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-0.125rem);
}

/* Footer */
.footer-bg {
  background-color: transparent;
}

.light-theme .footer-bg {
  background-color: #f9fafb;
}

/* Group hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Small screens (640px and up) */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ============================================
   Animation Utilities
   ============================================ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   Custom Component Classes
   ============================================ */

/* Blob backgrounds */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  opacity: 0.18;
  animation: float 18s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

.dark .blob {
  opacity: 0.15;
}

.light-theme .blob {
  opacity: 0.08;
}

.blob:nth-child(2) {
  animation-duration: 24s;
}

.blob:nth-child(3) {
  animation-duration: 28s;
}

.blob-blue {
  background-color: #2563eb;
}

.blob-purple {
  background-color: #9333ea;
}

.blob-teal {
  background-color: #14b8a6;
}

.light-theme .blob-blue {
  background-color: #60a5fa;
}

.light-theme .blob-purple {
  background-color: #a78bfa;
}

.light-theme .blob-teal {
  background-color: #5eead4;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    transform: translateY(-16px) translateX(12px) scale(1.05);
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
}

/* Mobile menu show/hide */
@media (max-width: 767px) {
  .md\:hidden.hidden {
    display: none;
  }
  
  .md\:hidden:not(.hidden) {
    display: block;
  }
}

/* Lazy loading images */
.lazy-img {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Will change optimization */
.will-change-transform {
  will-change: transform;
}

/* ============================================
   Utility Classes for Common Patterns
   ============================================ */
.btn-primary {
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  padding: 0.375rem 0.75rem;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

/* ============================================
   Performance Optimizations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for animations */
.blob,
.card-bg,
.theme-toggle-slider {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================
   Additional Components for Detail Pages
   ============================================ */

/* Detail Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 500px 1fr;
    gap: 3rem;
  }
}

/* Main Image Container */
.main-image-container {
  position: relative;
  align-self: start;
}

.has-inputs .main-image-container {
  position: relative;
}

@media (min-width: 1024px) {
  .has-inputs .main-image-container {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
  }
}

.main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  display: block;
}

.main-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Custom Input Styles */
.custom-input,
.custom-textarea,
.custom-select {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  font-weight: 500;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  min-height: 56px;
  font-family: inherit;
  line-height: 1.5;
}

.custom-textarea {
  resize: vertical;
  overflow-y: hidden;
}

.custom-select {
  cursor: pointer;
}

.light-theme .custom-input,
.light-theme .custom-textarea,
.light-theme .custom-select {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

.custom-input:focus,
.custom-textarea:focus,
.custom-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 25px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.custom-input:hover,
.custom-textarea:hover,
.custom-select:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  border: none;
  color: white;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 50%, #db2777 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  cursor: pointer;
}

.light-theme .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(148, 163, 184, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input Wrapper */
.input-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

/* Cross Button */
.cross-button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid rgba(239, 68, 68, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.light-theme .cross-button {
  background: rgba(254, 242, 242, 0.9);
}

.cross-button:hover {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

.cross-button.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border-color: #dc2626;
}

.cross-button.active:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

/* Input Group States */
.input-group.disabled .custom-input,
.input-group.disabled .custom-textarea {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.6;
  pointer-events: none;
}

.light-theme .input-group.disabled .custom-input,
.light-theme .input-group.disabled .custom-textarea {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.input-group.disabled label {
  opacity: 0.6;
  text-decoration: line-through;
}

.input-group.disabled {
  opacity: 0.6;
}

/* Loading Spinner */
.loading-spinner {
  border: 4px solid rgba(99, 102, 241, 0.1);
  border-left: 4px solid #6366f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Pinterest Grid */
.pinterest-grid {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .pinterest-grid {
    columns: 3;
  }
}

@media (min-width: 768px) {
  .pinterest-grid {
    columns: 4;
  }
}

@media (min-width: 1024px) {
  .pinterest-grid {
    columns: 5;
  }
}

@media (min-width: 1280px) {
  .pinterest-grid {
    columns: 6;
  }
}

.pinterest-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  display: inline-block;
  width: 100%;
}

/* Right Column Grid */
.right-column-grid {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 1024px) {
  .right-column-grid {
    columns: 2;
  }
}

@media (min-width: 1280px) {
  .right-column-grid {
    columns: 3;
  }
}

/* Trending Badge */
.trending-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  z-index: 10;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Input Fields Container */
.input-fields-container {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

.input-fields-container::-webkit-scrollbar {
  width: 6px;
}

.input-fields-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.input-fields-container::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

.input-fields-container::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

.light-theme .input-fields-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

/* Load More Button */
.load-more-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* No Edit Message */
.no-edit-message {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.05);
  margin: 1rem 0;
}

.light-theme .no-edit-message {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.03);
}

/* Variations Section */
.variations-section {
  background: rgba(99, 102, 241, 0.08);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.light-theme .variations-section {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Additional utility classes */
.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.items-start {
  align-items: flex-start;
}

.self-start {
  align-self: flex-start;
}

.col-span-full {
  grid-column: 1 / -1;
}

.flex-1 {
  flex: 1 1 0%;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.items-start {
  align-items: flex-start;
}

.gap-2 {
  gap: 0.5rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* Color utilities for detail page */
.text-green-400 {
  color: #4ade80;
}

.text-blue-400 {
  color: #60a5fa;
}

.text-amber-400 {
  color: #fbbf24;
}

.text-red-600 {
  color: #dc2626;
}

/* Loading overlay */
.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* ============================================
   GetPromt Page Specific Styles
   ============================================ */

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  }
}

@keyframes typing-cursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes typing-dots {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Typing Container */
.typing-container {
  position: relative;
  min-height: 200px;
}

.typing-cursor {
  display: inline-block;
  background: #10b981;
  width: 2px;
  height: 1.2em;
  animation: typing-cursor 1s ease-in-out infinite;
  margin-left: 1px;
}

.typing-text {
  white-space: pre-wrap;
  line-height: 1.6;
  word-wrap: break-word;
}

/* Prompt Container - Always white background */
.prompt-container {
  background: #ffffff !important;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
  line-height: 1.6;
  color: #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.dark .prompt-container {
  background: #ffffff !important;
  border-color: #cbd5e1;
  color: #1e293b !important;
}

/* AI Platform Buttons */
.ai-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: white;
  text-align: center;
  justify-content: center;
}

.ai-platform-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.ai-platform-btn:hover::before {
  left: 100%;
}

.ai-platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Platform Specific Colors */
.studio-btn {
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}

.gemini-btn {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.chatgpt-btn {
  background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%);
}

.qwen-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Copy Success Animation */
.copy-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  transform: scale(1.05) !important;
}

/* Progress Bar */
.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 1px;
  transition: width 0.1s ease-out;
}

/* Typing Status Indicator */
.typing-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.typing-status.hidden {
  opacity: 0;
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  animation: typing-dots 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Animation Utilities */
.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.light-theme .glass-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Manual Links Fallback */
.manual-links-container {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #fed7aa;
  background: #fffbeb;
}

.dark .manual-links-container {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.8);
}

.light-theme .manual-links-container {
  background: #fffbeb;
  border-color: #fed7aa;
}

/* Gradient backgrounds */
.bg-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Additional text colors */
.text-emerald-400 {
  color: #34d399;
}

.text-yellow-400 {
  color: #facc15;
}

/* Flex wrap */
.flex-wrap {
  flex-wrap: wrap;
}

/* Grid utilities for getpromt page */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Inline flex */
.inline-flex {
  display: inline-flex;
}

/* Width and height utilities */
.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.h-1 {
  height: 0.25rem;
}

/* Max width */
.max-w-4xl {
  max-width: 56rem;
}

/* Color utilities for amber */
.text-amber-800 {
  color: #92400e;
}

.text-amber-200 {
  color: #fde68a;
}

.bg-amber-50 {
  background-color: #fffbeb;
}

/* Transition duration */
.duration-500 {
  transition-duration: 500ms;
}

.transition-opacity {
  transition-property: opacity;
}

/* ============================================
   Category Page Specific Styles
   ============================================ */

/* Search Bar Styling */
.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 120px 12px 48px;
  width: 100%;
  color: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  outline: none;
}

.light-theme .search-input {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.light-theme .search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* Category Item Styles */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.category-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

.light-theme .category-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.category-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-item:hover .category-image {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.category-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: inherit;
  line-height: 1.3;
  max-width: 100px;
}

/* Categories Grid - Responsive */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Category Skeleton */
.category-skeleton-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-skeleton-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.category-skeleton-text {
  width: 70px;
  height: 14px;
  border-radius: 7px;
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}

/* Additional text sizes */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

/* Color utilities */
.text-red-400 {
  color: #f87171;
}

.bg-red-400 {
  background-color: #f87171;
}

/* Py utilities */
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}