/* assets/css/style.css */
/* Minimal, Clean, Modern - Apple-inspired spacing and aesthetics */

:root {
  --primary-color: #0071e3;
  --secondary-color: #86868b;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-muted: #f5f5f7;
  --border-color: #eaeaea;
  --border-radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --max-width: 1200px;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-color: #000000;
  --card-bg: #1c1c1e;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #2c2c2e;
  --border-color: #38383a;
}

/* Dark mode: ensure all headings and titles are white */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f5f5f7 !important;
}

body.dark-mode .prompt-content h1,
body.dark-mode .related-title,
body.dark-mode .stat-value {
  color: #ffffff !important;
}

body.dark-mode .prompt-desc,
body.dark-mode .hero-content p,
body.dark-mode .section-desc,
body.dark-mode .browse-section p,
body.dark-mode .gallery-header p {
  color: #ababab;
}


/* Global Background Effects */
.squares-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

body.dark-mode .squares-container {
  display: block;
}

.squares-canvas {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Minimal Hero with Animation Only */
.hero-animation-only {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Premium Hero Section */
.hero-premium {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -70px;
  /* Pull up to go under header */
}

.hero-premium .liquid-ether-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px !important;
  padding-top: 70px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-headline {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 32px;
  color: var(--text-primary);
}

body.dark-mode .hero-headline {
  background: linear-gradient(to bottom, #fff 50%, #888);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-hero {
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-primary {
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
  background: var(--border-color);
  transform: translateY(-3px);
}

.hero-animation-only .liquid-ether-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-animation-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--text-primary);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  /* Remove excess padding/margin below hero slider */
  section.hero-slider-section {
    padding: 0 !important;
    margin-bottom: 20px !important;
  }

  h1,
  .cat-hero h1,
  .gallery-header h1 {
    font-size: 2.5rem !important;
    letter-spacing: -1px !important;
  }

  /* Prompt detail page title */
  .prompt-content h1 {
    font-size: 1.5rem !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
  }

  h2,
  .section-title {
    font-size: 1.8rem !important;
  }

  p,
  .cat-hero p,
  .gallery-header p {
    font-size: 1rem !important;
  }
}

/* Header / Premium Nav Menu */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
  padding-top: 0 !important;
  max-width: 1400px;
  margin: 0 auto;
}

body.dark-mode .card-copy-btn {
  background-color: #2c2c2e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .card-copy-btn span:first-child {
  color: #b5ccf3;
}

body.dark-mode .card-copy-btn span:first-child svg {
  fill: #b5ccf3;
}

/* Generate Button on Card */
.card-gen-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.card-gen-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
  color: #fff;
}

header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(var(--header-bg-rgb, 255, 255, 255), 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 0 20px 0 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

body.dark-mode header {
  background: rgba(28, 28, 30, 0.7);
}

.site-footer a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary-color);
}

body.dark-mode .site-footer a {
  color: var(--secondary-color);
}

body.dark-mode .site-footer a:hover {
  color: var(--primary-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: #ffb400;
  /* Or matching yellow from screenshot */
  border-radius: 50%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  /* Increased gap */
  flex: 1;
  justify-content: center;
  margin: 0 20px;
}

.mobile-only {
  display: none !important;
}

.nav-link {
  font-size: 0.95rem;
  /* Slightly larger */
  font-weight: 600;
  color: #555;
  letter-spacing: -0.2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Increased gap */
}

.header-btn {
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background: #222;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--text-muted);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 900px) {

  /* Fix horizontal overflow site-wide */
  body,
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 90px 28px 40px;
    gap: 6px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    justify-content: flex-start;
    margin: 0;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0px;
    padding: 10px 14px;
    border-radius: 10px;
    display: block;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--border-color);
    color: var(--primary-color);
  }

  .nav-links.active {
    left: 0;
    display: flex;
  }

  .header-actions {
    display: flex;
    gap: 6px;
  }

  .header-actions .header-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .desktop-only {
    display: none !important;
  }

  /* Credit counter closer to hamburger */
  .user-credits-container {
    width: 32px !important;
    height: 32px !important;
    margin-left: 4px !important;
  }

  .user-credits-container svg {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 12px 0 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .logo-container {
    gap: 8px;
  }

  .logo {
    font-size: 0.85rem;
  }
}

/* Dropdown Menu Improvements */
.dropdown-menu {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.dropdown-item:hover {
  background: rgba(0, 113, 227, 0.05);
  color: var(--primary-color) !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item:hover {
  background: #f5f5f7 !important;
}

/* Footer Tags */
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.footer-tag {
  background: #f5f5f7;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-tag:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Hero Section */
.hero {
  text-align: center;
  background: transparent;
  padding-bottom: 80px;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Search Bar */
.home-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-container {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 50px;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-container:focus-within {
  border-color: var(--primary-color) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-input {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  outline: none;
  flex: 1;
  font-size: 1rem;
  padding: 0;
  box-shadow: none !important;
}

.search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Prompt Grid */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 1024px) {
  .prompt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .prompt-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .prompt-card {
    border-radius: 20px !important;
  }

  .card-glass-tag {
    top: 10px !important;
    padding: 5px 10px !important;
    font-size: 0.45rem !important;
    letter-spacing: 0.5px !important;
    border-radius: 30px !important;
  }

  .tag-left {
    left: 10px !important;
  }

  .tag-right {
    right: 10px !important;
    gap: 4px !important;
  }

  .tag-right svg {
    width: 11px !important;
    height: 11px !important;
  }

  .tag-right .like-count {
    font-size: 0.5rem !important;
  }

  .card-overlay-bottom {
    padding: 10px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
  }

  .card-footer {
    justify-content: flex-end !important;
    display: flex !important;
    width: 100% !important;
  }

  .premium-copy-btn {
    width: 34px !important;
    height: 34px !important;
    background: rgba(255, 255, 255, 0.25) !important;
  }

  .premium-copy-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .card-content-overlay {
    padding: 12px !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
  }

  .card-content-overlay h4 {
    font-size: 0.75rem !important;
    margin-bottom: 2px !important;
    opacity: 0.9;
  }

  .card-content-overlay p {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    overflow: hidden;
  }
}

/* Premium Card Design - 4:5 Portrait */
.prompt-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  /* Ensure full surface is clickable when a link */
}

.prompt-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.thumbnail-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.prompt-card:hover .thumbnail-container img {
  transform: scale(1.03);
}

/* Card Pills Overlays */
.card-pills-row {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 20;
}

.card-pill {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.card-pill:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* ===== HEART LIKE BUTTON ===== */
/* Remove btn-like from card-pills-row completely */
.card-pill.btn-like {
  display: none !important;
  /* Hide old pill style */
}

/* New dedicated heart button inside card footer */
.card-heart-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
  outline: none;
  padding: 0;
}

.card-heart-btn svg {
  width: 18px;
  height: 18px;
  stroke: #999;
  fill: none;
  stroke-width: 2.5;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
  pointer-events: none;
}

.card-heart-btn:hover {
  background: #fff;
  box-shadow: 0 6px 24px rgba(255, 71, 87, 0.4);
  transform: scale(1.12);
}

.card-heart-btn:hover svg {
  stroke: #ff4757;
  transform: scale(1.1);
}

.card-heart-btn.active {
  background: #fff;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.45);
}

.card-heart-btn.active svg {
  fill: #ff4757;
  stroke: #ff4757;
  animation: heartPop 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.5);
  }

  70% {
    transform: scale(0.88);
  }

  100% {
    transform: scale(1);
  }
}

.card-content-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  z-index: 10;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  color: #fff !important;
}

.card-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #eee !important;
}

.thumbnail-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.prompt-card:hover .thumbnail-container::after {
  background: rgba(0, 0, 0, 0);
}

/* Single Prompt Page Overhaul style */
.prompt-detail-badge {
  display: inline-flex;
  background: #000;
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shared-by {
  color: #888;
  font-weight: 500;
  margin-top: 15px;
  font-size: 0.95rem;
}

.prompt-card-nested {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.prompt-card-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.prompt-card-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
}

.btn-nested-row {
  display: flex;
  gap: 12px;
}

.btn-nested-copy {
  background: #111;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-nested-try {
  background: #fff;
  color: #111;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #eee;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-footer-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 50px;
  justify-content: space-between;
}

.action-heart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
}

.action-bookmark-btn {
  color: #aaa;
  cursor: pointer;
}

.card-prompt-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 24px;
  font-weight: 500;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* New Uiverse 'fabiodevbr' style Copy Button */
.card-copy-btn {
  background-color: #f2f7fa;
  min-width: 100px;
  height: 38px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-copy-btn span:first-child {
  color: #0e418f;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-copy-btn span:last-child {
  position: absolute;
  color: #fff;
  opacity: 0;
  transform: translateY(100%);
  font-size: 0.85rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-copy-btn.copied {
  background-color: #0e418f;
  min-width: 110px;
}

.card-copy-btn.copied span:first-child {
  transform: translateY(-150%);
  opacity: 0;
}

.card-copy-btn.copied span:last-child {
  transform: translateY(0);
  opacity: 1;
}

.card-copy-btn:hover {
  background-color: #e8f0f5;
  transform: translateY(-2px);
}

.card-copy-btn:active {
  transform: scale(0.95);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .card-copy-btn {
    min-width: 80px;
    height: 32px;
    font-size: 0.75rem;
  }
}

.by-provider {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

/* Copy Button and UI */
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.copy-btn:hover {
  color: var(--primary-color);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 32px 40px 24px;
}

.modal-body {
  padding: 0 40px 40px;
}

.prompt-textarea-container {
  position: relative;
  margin: 24px 0;
  background: #f9f9fb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #f0f0f0;
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  white-space: pre-wrap;
  color: #333;
  line-height: 1.6;
}

.modal-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}

.modal-copy-btn:hover {
  background: #0062c3;
  transform: scale(0.995);
}

.close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  background: #f5f5f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Admin Dashboard Styles (Condensed) */
.admin-sidebar {
  width: 280px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  background: #f5f5f7;
  padding: 40px 24px;
  border-right: 1px solid #e5e5e5;
}

.admin-main {
  margin-left: 280px;
  padding: 40px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.data-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e5e5e5;
}

/* Hero Stats Section */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  margin-top: 50px;
  width: 100%;
}

.stat-item {
  flex: 1 1 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
  /* Prevents overflow */
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4px;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* Admin Responsive */
.admin-mobile-toggle {
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
    padding: 20px;
  }

  .admin-mobile-toggle {
    display: block;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  /* Fix form grid */
  form.prompt-card>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0px;
  }
}

/* Global Responsive Tweaks */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .header-wrapper {
    padding: 0 10px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .more-options-dropdown {
    display: none !important;
  }

  /* Hero Slider Mobile Fixes */
  .slide-card {
    min-width: 110px !important;
    height: 170px !important;
  }

  .slide-info .slide-title,
  .slide-info .slide-desc {
    display: none !important;
  }

  .slide-info {
    padding: 0 20px !important;
    text-align: center;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
  }

  .slide-info button {
    font-size: 0.8rem !important;
    padding: 10px 24px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }

  .home-search-wrapper {
    margin-top: -15px !important;
  }

  .search-container {
    padding: 12px 18px !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
  }

  .search-input {
    font-size: 0.95rem !important;
  }

  .search-icon {
    font-size: 1.1rem !important;
  }

  /* Counter reduction */
  .hero-stats {
    gap: 10px !important;
  }

  .stat-item {
    padding: 12px 6px !important;
  }

  .stat-number {
    font-size: 1.2rem !important;
  }

  .stat-label {
    font-size: 0.5rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
  }

  /* Footer Visibility Fix */
  .footer-col ul li a {
    color: var(--text-secondary) !important;
    font-weight: 500;
  }

  body.dark-mode .footer-col ul li a {
    color: var(--text-secondary) !important;
  }

  .footer-col ul li a:hover {
    color: var(--primary-color) !important;
  }

  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Ensure single prompt page items are responsive */
.prompt-card-nested {
  padding: 20px !important;
}

.btn-nested-row {
  flex-wrap: wrap;
}

.btn-nested-copy,
.btn-nested-try {
  width: 100%;
  justify-content: center;
}

/* Site Footer Styles */
.site-footer {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
}

.footer-tags-section {
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer-tags-section h3 {
  color: var(--text-primary) !important;
  opacity: 0.8;
}

.footer-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.footer-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Stat Items & Hero */
.stat-item {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.stat-number {
  color: var(--primary-color) !important;
}

.stat-label {
  color: var(--text-secondary) !important;
}
/* Lock Overlay Premium Styles */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  transition: all 0.3s ease;
}

body.dark-mode .lock-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* Footer Tags Style */
.footer-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.footer-tag:hover {
  background: #000 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

body.dark-mode .footer-tag {
  background: #1c1c1e;
  color: #86868b;
  border-color: #2c2c2e;
}

body.dark-mode .footer-tag:hover {
  background: #fff !important;
  color: #000 !important;
}

/* Disable scroll when locked */
.prompt-scroll-container.locked {
  overflow: hidden !important;
}

/* Heart Like Button Premium Fix */
.card-heart-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-heart-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.card-heart-btn:hover {
  transform: scale(1.15);
  background: #fff;
}

body.dark-mode .card-heart-btn {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.1);
}
