/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0e0e16;
  color: #d0d0dc;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Dark Theme Colors */
.dark body,
body {
  background-color: #0e0e16;
  color: #d0d0dc;
}

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

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

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.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-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pt-8 { padding-top: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: 3rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-8 { margin-left: 2rem; margin-right: 2rem; }

/* Sizing */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.max-h-48 { max-height: 12rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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-8xl { font-size: 6rem; line-height: 1; }
.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; }
.leading-tight { line-height: 1.25; }

/* Colors - Background */
.bg-\[#0a0a0f\] { background-color: #0a0a0f; }
.bg-\[#12121a\] { background-color: #12121a; }
.bg-\[#12121a\]\/50 { background-color: rgba(18, 18, 26, 0.5); }
.bg-\[#12121a\]\/95 { background-color: rgba(18, 18, 26, 0.95); }
.bg-\[#0a0a0f\]\/95 { background-color: rgba(10, 10, 15, 0.95); }
.bg-\[#1a1a24\] { background-color: #1a1a24; }
.bg-\[#3b82f6\] { background-color: #3b82f6; }
.bg-\[#2563eb\] { background-color: #2563eb; }
.bg-\[#3b82f6\]\/10 { background-color: rgba(59, 130, 246, 0.1); }
.bg-\[#3b82f6\]\/20 { background-color: rgba(59, 130, 246, 0.2); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-white { background-color: #fff; }

/* Colors - Text */
.text-white { color: #fff; }
.text-\[#f1f5f9\] { color: #f1f5f9; }
.text-\[#94a3b8\] { color: #94a3b8; }
.text-\[#64748b\] { color: #64748b; }
.text-\[#3b82f6\] { color: #3b82f6; }
.text-\[#60a5fa\] { color: #60a5fa; }
.text-\[#ef4444\] { color: #ef4444; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-\[#1e1e2e\] { border-color: #1e1e2e; }
.border-\[#2e2e3e\] { border-color: #2e2e3e; }
.border-\[#3b82f6\] { border-color: #3b82f6; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-black\/20 { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.top-1\/2 { top: 50%; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 / 1; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Transform */
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.-translate-y-0\.5 { transform: translateY(-0.125rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.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; 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; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.duration-200 { transition-duration: 200ms; }

/* Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:border-\[#3b82f6\]:focus { border-color: #3b82f6; }

/* Placeholder */
.placeholder-\[#64748b\]::placeholder { color: #64748b; }

/* Backdrop */
.backdrop-blur { backdrop-filter: blur(8px); }

/* Blur */
.blur-sm { filter: blur(4px); }

/* Cursor */
.cursor-not-allowed { cursor: not-allowed; }
.cursor-pointer { cursor: pointer; }

/* Resize */
.resize-none { resize: none; }

/* List */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Space Between */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

/* Hover States */
.hover\:text-white:hover { color: #fff; }
.hover\:text-\[#3b82f6\]:hover { color: #3b82f6; }
.hover\:text-\[#60a5fa\]:hover { color: #60a5fa; }
.hover\:bg-\[#2563eb\]:hover { background-color: #2563eb; }
.hover\:border-\[#2e2e3e\]:hover { border-color: #2e2e3e; }
.hover\:border-\[#3b82f6\]:hover { border-color: #3b82f6; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-\[#3b82f6\] { color: #3b82f6; }
.group:hover .group-hover\:text-white { color: #fff; }

/* Responsive - SM (640px) */
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:inline { display: inline; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Responsive - MD (768px) */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:py-24 { padding-top: 4.5rem; padding-bottom: 3rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:col-span-1 { grid-column: span 1; }
}

/* Responsive - LG (1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:w-64 { width: 16rem; }
}

/* Prose */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1rem; }
.prose h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 600; }
.prose ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose-invert { color: #94a3b8; }
.prose-invert h2 { color: #fff; }
.prose-invert a { color: #3b82f6; }
.prose-invert a:hover { color: #60a5fa; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0e0e16;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4a;
}

/* Selection */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
}

/* Input Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #15151f inset !important;
  -webkit-text-fill-color: #d0d0dc !important;
  caret-color: #d0d0dc;
}

/* Asset Card Styles */
.asset-card {
  background-color: #15151f;
  border: 1px solid #222230;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.25s;
}
.asset-card:hover {
  border-color: #333348;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.asset-card:hover img {
  transform: scale(1.03);
}

.asset-card .thumbnail-wrapper {
  aspect-ratio: 1 / 1;
  background-color: #12121a;
  position: relative;
  overflow: hidden;
}

.asset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(14, 14, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e2c;
}

/* Footer Styles */
footer {
  background-color: #0c0c14;
  border-top: 1px solid #1a1a28;
  margin-top: auto;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  background-color: #15151f;
  border: 1px solid #222230;
  border-radius: 0.5rem;
  color: #fff;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

/* Buttons */
button,
.btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: #3b82f6;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #2563eb;
}

/* Hero Section */
.hero {
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 1rem 3rem;
  }
}

/* Search Box */
.search-box {
  background-color: #15151f;
  border: 1px solid #252534;
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: #3b82f6;
}

.search-box input {
  border: none;
  background: transparent;
  flex: 1;
}

.search-box button {
  background-color: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  transition: background 0.15s;
}

.search-box button:hover {
  background-color: #2563eb;
}

/* Quick Tags */
.quick-tag {
  background-color: #17171f;
  border: 1px solid #252534;
  border-radius: 9999px;
  padding: 6px 14px;
  color: #8888a0;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.quick-tag:hover {
  color: #ddd;
  border-color: #3b82f6;
}

/* Source Card */
.source-card {
  background-color: #15151f;
  border: 1px solid #222230;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.source-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

/* Category Link */
.category-link {
  background-color: #15151f;
  border: 1px solid #222230;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.category-link:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.pagination a {
  background-color: #15151f;
  border: 1px solid #222230;
  color: #8888a0;
  transition: border-color 0.2s, color 0.15s;
}

.pagination a:hover {
  color: #fff;
  border-color: #2e2e3e;
}

/* Filter Sidebar */
.filter-section {
  background-color: #15151f;
  border: 1px solid #222230;
  border-radius: 0.5rem;
  padding: 1rem;
}

.filter-section h3 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.filter-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.filter-link:hover {
  color: #fff;
}

.filter-link.active {
  color: #3b82f6;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* Active Filter Chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.filter-chip a {
  display: flex;
  align-items: center;
}

.filter-chip a:hover {
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  color: #64748b;
  margin: 0 auto 1rem;
}

/* Mobile Menu */
#mobile-menu {
  border-top: 1px solid #1e1e2e;
}

#mobile-menu nav {
  padding: 1rem;
}

#mobile-menu a {
  display: block;
  color: #94a3b8;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

#mobile-menu a:hover {
  color: #fff;
}
