/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Geek-style color palette for Explore AI Prompts */
  --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #090979 50%, #ff00ff 100%);
  --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --terminal-green: #00ff41;
  --cyber-blue: #00d4ff;
  --neon-purple: #ff00ff;
  --dark-bg: #0a0a0a;
  --darker-bg: #000000;
  --light-bg: #1a1a1a;
  --glass-bg: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(0, 212, 255, 0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-accent: #00d4ff;
  --surface: rgba(26, 26, 26, 0.8);
  --surface-hover: rgba(0, 212, 255, 0.1);
  --code-bg: #0d1117;
  --code-border: #30363d;
  --prompt-color: #00ff41;
  --model-color: #ff00ff;
  --parameter-color: #00d4ff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Courier New', monospace;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  background-image:
    linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.03) 2px,
      rgba(0, 255, 65, 0.03) 4px
    );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 0, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  border-color: var(--cyber-blue);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
  margin: 0;
  line-height: 1;
}

.logo .tagline {
  font-size: 0.75rem;
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.logo a {
  text-decoration: none;
  color: transparent;
  display: block;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-accent);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link.active {
  color: var(--terminal-green);
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 300px;
  flex: 1;
  max-width: 500px;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.search-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.search-container:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--cyber-blue);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.search-container:hover::before {
  left: 100%;
}

.search-container input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-container input::placeholder {
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.search-container button {
  border: none;
  background: transparent;
  color: var(--cyber-blue);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.search-container button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--cyber-blue);
  transition: left 0.3s ease;
  z-index: -1;
}

.search-container button:hover {
  color: var(--dark-bg);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-container button:hover::before {
  left: 0;
}

/* Main content */
.main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.main h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  margin-bottom: 3rem;
  border: 2px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.1; }
  100% { opacity: 0.2; }
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
}

.hero-section p::before,
.hero-section p::after {
  content: "<";
  position: absolute;
  color: var(--terminal-green);
  font-family: 'Courier New', monospace;
  font-weight: bold;
  opacity: 0.5;
}

.hero-section p::before {
  left: -40px;
}

.hero-section p::after {
  content: "/>";
  right: -40px;
}

/* Masonry Layout */
.masonry-container,
.masonry-grid,
#imageGrid {
  column-count: 4;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.masonry-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: var(--cyber-blue);
  filter: brightness(1.1);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9);
}

.masonry-item:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

.masonry-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: white;
  padding: 24px 20px 20px;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
}

.masonry-item:hover .overlay {
  transform: translateY(0);
}

.masonry-item .title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.masonry-item .author {
  font-size: 12px;
  opacity: 0.8;
  color: var(--terminal-green);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.masonry-item .author::before {
  content: "@";
  color: var(--cyber-blue);
}

.masonry-item .likes {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--terminal-green);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.masonry-item:hover .likes {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  border-color: var(--terminal-green);
}

.masonry-item .likes .heart {
  color: var(--neon-purple);
  font-size: 14px;
  filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.5));
}

/* Loading state */
.loading {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--cyber-blue);
  font-size: 18px;
  grid-column: 1 / -1;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  position: relative;
}

.loading::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top: 2px solid var(--cyber-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
  vertical-align: middle;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 2px solid var(--glass-border);
  padding: 3rem 0;
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  animation: footerScan 3s linear infinite;
}

@keyframes footerScan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 30px;
  margin-top: 1rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.footer-nav a::after {
  content: "]";
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--terminal-green);
}

.footer-nav a::before {
  content: "[";
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--terminal-green);
}

.footer-nav a:hover {
  color: var(--cyber-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-nav a:hover::before,
.footer-nav a:hover::after {
  opacity: 1;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.skeleton-item .skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 16px 16px 0 0;
}

.skeleton-item .skeleton-text {
  height: 16px;
  margin: 16px;
  border-radius: 4px;
  width: 80%;
  background: var(--surface-hover);
}

.skeleton-item .skeleton-text.small {
  height: 12px;
  width: 60%;
  margin-top: 8px;
  background: var(--surface);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .masonry-container,
  .masonry-grid,
  #imageGrid {
    column-count: 3;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .hero-section h1 {
    font-size: 2.8rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .masonry-container,
  .masonry-grid,
  #imageGrid {
    column-count: 2;
    column-gap: 12px;
  }

  .masonry-item {
    margin-bottom: 12px;
  }

  .header-content {
    gap: 10px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo .tagline {
    font-size: 0.65rem;
  }

  .nav {
    gap: 15px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .search-container {
    min-width: 200px;
    padding: 10px 16px;
  }

  .search-container input {
    font-size: 14px;
  }

  .search-container button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .container {
    padding: 0 15px;
  }

  .main {
    padding: 1.5rem 0;
  }

  .main h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1rem;
    padding: 0 20px;
  }

  .hero-terminal {
    font-size: 0.8rem;
  }

  /* Hide particles on mobile for performance */
  .particles {
    display: none;
  }
}

@media (max-width: 480px) {
  .masonry-container,
  .masonry-grid,
  #imageGrid {
    column-count: 1;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    order: 2;
    margin-top: 10px;
    min-width: auto;
  }

  .logo {
    text-align: center;
    order: 1;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .nav {
    order: 3;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .hero-section {
    padding: 2rem 0;
    border-radius: 16px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .hero-section p::before,
  .hero-section p::after {
    display: none;
  }

  .masonry-item {
    clip-path: none;
    border-radius: 12px;
  }

  .masonry-item .likes {
    clip-path: none;
    border-radius: 6px;
  }
}

/* Fix pre tag white-space */
pre {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

/* Legal page and about page styling */
.legal-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-primary);
}

.legal-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--cyber-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 20px;
}

.legal-body h2::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--terminal-green);
  font-family: 'Courier New', monospace;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.legal-body p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1rem;
}

.legal-body ul {
  margin: 1rem 0;
  padding-left: 30px;
}

.legal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-body li::marker {
  color: var(--terminal-green);
}

.legal-body strong {
  color: var(--cyber-blue);
  font-weight: 600;
}

.legal-body a {
  color: var(--terminal-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.legal-body a::after {
  content: "_";
  position: absolute;
  right: -10px;
  color: var(--terminal-green);
  opacity: 0;
  transition: all 0.3s ease;
}

.legal-body a:hover {
  color: var(--cyber-blue);
  border-bottom-color: var(--cyber-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.legal-body a:hover::after {
  opacity: 1;
  right: -15px;
}

/* Tags for image detail page */
.tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 32px !important;
  padding: 4px !important;
}

/* Tag styles */
.tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  background: var(--surface) !important;
  color: var(--cyber-blue) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid var(--glass-border) !important;
  position: relative !important;
  overflow: hidden !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
}

.tag:hover {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--terminal-green) !important;
  border-color: var(--terminal-green) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3) !important;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5) !important;
}

.tag-icon {
  display: inline-block !important;
  font-size: 18px !important;
  margin-right: 8px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.tag-text {
  position: relative !important;
  z-index: 1 !important;
  letter-spacing: 0.025em !important;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }

.hidden {
  display: none;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Image placeholder for loading state */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.loading-text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 32px;
  font-weight: 500;
}

.error-text {
  font-size: 12px;
  color: #dc2626;
  margin-top: 8px;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Additional animations for premium feel */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Loading spinner with glow effect */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Visual effects for tags */
.tags .tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 12px 24px !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--cyber-blue) !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !important;
}

.tags .tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.4s ease;
  z-index: -1;
}

.tags .tag:hover {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--terminal-green) !important;
  border-color: var(--terminal-green) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3) !important;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5) !important;
}

.tags .tag:hover::before {
  left: 0;
}

/* Enhanced image container */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}

.image-placeholder {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
  border-left: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyber-blue) 0%, var(--neon-purple) 100%);
  border-radius: 7px;
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--terminal-green) 0%, var(--cyber-blue) 100%);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Selection color */
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

/* Focus states for accessibility */
.nav-link:focus,
.search-container input:focus,
.search-container button:focus {
  outline: 2px solid var(--cyber-blue);
  outline-offset: 2px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Terminal cursor effect for search input */
.search-container input:focus::after {
  content: "_";
  animation: cursorBlink 1s infinite;
  color: var(--terminal-green);
  position: absolute;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Grid pattern overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}