/* Ensure the results stretch full width inside container */
#searchBox {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  background: linear-gradient(to right, #1a1a1a, #0d0d0d);
  flex-direction: column;
  align-items: stretch;
  justify-content: top;
  max-height: 5vh;
  border-radius: 0.75rem;
  backdrop-filter: blur(8px); /* Optional: adds a frosted glass effect */
}


.logo {
height: 30px;
width: auto;
}

@media (max-width: 600px) {
  .logo {
    height: 20px;
    width: auto;
  }
}

#resultsContainer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: top;
  min-height: 80vh;
  /* background-color: rgba(31, 41, 55, 0.7); */
  border-radius: 0.75rem;
  backdrop-filter: blur(4px); /* Optional: adds a frosted glass effect */
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


#toggleTextWrapper
{
  padding: 1rem;
  font-size: medium;
}

.auth-reset{
  padding: 0.5rem;
}

/* Individual result row styling */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #2d2d2d;
  border-radius: 0.5rem;
  background: linear-gradient(to right, #1a1a1a, #0d0d0d); /* Tailwind's gray-800 */
}

/* Thumbnail styling */
.result-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.25rem;
  /* border: 1px solid #4b5563; */
  flex-shrink: 0;
  margin: 5px;
}

/* Full name text */
.result-name {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
}

/* Download button */
.result-download {
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 600;
  background-color: #22c55e;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}


body {
  margin: 0;
  background-color: #141414;
  color: white;
  font-family: 'Inter';
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}


input[type="text"] {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
}

button {
  background-color: #e50914;
  border: none;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.content-section {
  margin: 40px 30px;
}

.content-section h2 {
  margin-bottom: 15px;
}

.media-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.media-row img {
  width: 200px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s;
}

.media-row img:hover {
  transform: scale(1.05);
}

.hero-banner {
  background: linear-gradient(to right, #1a1a1a, #0d0d0d);
  padding: 60px 30px;
  text-align: center;
  color: #f5f5f5;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-content {
  animation: fadeIn 1.5s ease-in-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


#imageModal
{
  justify-content: center;
  padding: 2rem;
}


/* Close Button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}


.modal-close:hover {
  transform: scale(1.2);
  color: #22c55e;
}


.modal-info {
  text-align: center;
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.modal-description {
  font-size: 0.9rem;
  font-weight: 400;
  color: #d1d5db;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}


.modal-meta span {
  font-size: 0.85rem;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-type span
{
  background: #77019f;
  border-radius: 15px;
  padding: 0.25rem 1.5rem;
  font-weight: 700;
  color: white;
}

.modal-action {
  text-align: center;
  margin-top: 0.5rem;
}

.download-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#freeDownloadBtn {
  background-color: #f3f4f6; /* light gray */
  color: #111827;
  border: 1px solid #d1d5db;
}

#freeDownloadBtn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

#paidDownloadBtn {
  background-color: #10b981; /* emerald green */
  color: white;
  border: none;
}

#paidDownloadBtn:hover {
  background-color: #059669;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.modal-image-container {
  position: relative;
  width: 100%;
}

.modal-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #4b5563;
  object-fit: contain;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Overlay label */
.preview-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #f3f4f6; /* Light gray */
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  pointer-events: none;
}


.auth-modal {
  max-width: 400px;
  text-align: center;
}

.modal-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.auth-form input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  outline: none;
  background-color: #1f2937;
  color: white;
}

.auth-submit {
  width: 100%;
  background-color: #22c55e;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  background-color: #16a34a;
}

.auth-toggle {
  font-size: 0.875rem;
  color: #ffffff;
  cursor: pointer;
  margin-top: 1rem;
}
.auth-toggle span {
  color: #22c55e;
  text-decoration: underline;
}


.modal-overlay {
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  position: relative;
  background-color: #111827;
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.profile-modal {
  position: relative;
  background-color: #111827;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 350px;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: fadeSlideUp 0.3s ease-out;
  font-family: 'Inter', sans-serif;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 1rem;
}

.profile-modal p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #cbd5e1;
}

.profile-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-actions button,
.profile-actions a.logout-btn {
  padding: 0.75rem 1rem;
  background: #1f2937;
  border: 1px solid #334155;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.profile-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-actions button:hover,
.profile-actions a.logout-btn:hover {
  background: #0f172a;
  border-color: #475569;
  transform: scale(1.02);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* spacing between button and icon */
  margin-left: auto; /* push to right if inside navbar */
}

#creditDisplay {
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

#profileIcon {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
  cursor: pointer;
}


.toast {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

.toast.hidden {
  display: none; /* 👈 this could be blocking visibility */
}

.auth-trigger {
  background-color: #000000;
  color: #ffffff;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 8px #aa00ff;
  animation: glowPulse 1.6s ease-in-out infinite alternate;
  transition: transform 0.2s ease;
}

.auth-trigger:hover {
  transform: scale(1.05);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 2px #FF00FF, 0 0 4px #aa00ff, 0 0 8px #00FFFF;
  }
  100% {
    box-shadow: 0 0 4px #FF00FF, 0 0 8px #aa00ff, 0 0 16px #00FFFF;
  }
}

.gallery-section {
  margin: 2.5rem 0;
}


.section-header {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  margin-bottom: 1rem;
}

.section-header span {
  margin-left: 0.5rem;
}

.image-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  /* scroll-snap-type: x mandatory; */
  padding: 0 1rem;
}

.image-card {
  flex: 0 0 200px;
  /*scroll-snap-align: start;
  border-radius: 10px; */
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.image-row::-webkit-scrollbar {
  display: none; /* Optional: hides scrollbar on WebKit browsers */
}

@media (max-width: 768px) {
  .image-row {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .image-card {
    flex: 0 0 200px;
  }
}

.search-field {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 1rem auto;
  transition: all 0.3s ease;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
}

.search-box {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 5px;
  font-size: 1rem;
  border-radius: 10px;
  border-color: #ffffff;
  /*border: 1px solid #4b5563;*/

}

.search-result {
  max-height: 0;
  padding: 0.75rem 1rem;
  opacity: 0;
  overflow-y: auto;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.search-field.expanded .search-result {
  max-height: 300px;
  opacity: 1;
}

.hidden {
  display: none;
}

.payment-banner {
  background: linear-gradient(135deg, #5f72bd, #9b23ea);
  color: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.payment-banner .cta-button {
  background: #fff;
  color: #5f72bd;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.payment-banner .cta-button:hover {
  background: #f1f1f1;
}

.faq-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.faq-section details {
  background: #454545;
  border: 1px solid #000000;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.faq-section summary {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Wrapper hidden by default */
.pricing-hidden {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s ease, opacity 0.3s ease;
}

/* Reveal wrapper */
.pricing-visible {
  height: auto;
  opacity: 1;
  transition: height 0.4s ease, opacity 0.3s ease;
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  flex: 1 1 240px; /* grow + shrink, base width */
  max-width: 200px;
  background: #fff;
  border-radius: 16px;
  color: #5f72bd;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.pricing-card:hover {
  transform: scale(1.03);
}

.site-footer {
  background: #141414;
  color: #f0f0f0;
  padding: 3rem 1rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: #9b23ea;
}

.footer-links ul,
.footer-contact p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin: 0.3rem 0;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-base {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 2rem;
  }
}

html {
  scroll-behavior: smooth;
}



.terms-section {
  max-width: 800px;
  padding: 1rem;
}

.about-section {
  max-width: 800px; 
  padding: 1rem;
}
