/* General */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #060505;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #141414;
  border-bottom: 1px solid #1f1f1f;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.logo span {
  color: #6b5bff;
}

.back-home {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.back-home:hover {
  color: #6b5bff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(to bottom right, #1a1a1a, #111);
  border-radius: 0 0 25px 25px;
}

.hero h1 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.hero h1 span {
  color: #6b5bff;
}

.hero p {
  color: #b3b3b3;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-section {
  padding: 2rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-item {
  width: max-content;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #171717;
  transition: transform 0.3s ease;
  border: 1px solid #2a2a2a;
}

.gallery-item:hover {
  transform: scale(1.04);
  border-color: #6b5bff;
}

.gallery-item img {
  width: 180px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Buttons */
.gallery-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.gallery-actions button {
  border: none;
  background: rgba(107, 91, 255, 0.8);
  color: #fff;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.gallery-actions button:hover {
  background: rgba(107, 91, 255, 1);
}

/* Fullscreen */
.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.fullscreen img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(107, 91, 255, 0.4);
}

.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(107,91,255,0.2);
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}
.close-btn:hover {
  background: rgba(107,91,255,0.5);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid #1f1f1f;
  background: #111;
}
/*for icons*/
.gallery-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 1;
}

.gallery-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 30px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-actions button:hover {
  background: rgba(107, 91, 255, 0.7);
  transform: translateY(-1px);
}

.gallery-actions svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* Toast message styling */
.copied-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #6b5bff;
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  animation: fadeToast 1.5s ease forwards;
}

@keyframes fadeToast {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
.prompt-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.prompt-detail.hidden {
  display: none;
}

.detail-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 14px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  color: #fff;
}

.detail-content img {
  width: auto;          /* Image uses natural width */
  max-width: 100%;      /* Scales down on smaller screens */
  height: auto;         /* Maintain aspect ratio */
  max-height: 400px;    /* Prevent overly tall images */
  object-fit: contain;  /* Fit the whole image inside container */
  border-radius: 10px;
  margin-bottom: 15px;
}

.detail-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  word-wrap: break-word;
}

.detail-content .close-detail {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
}

.detail-content button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #6b5bff;
  border: none;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  transition: background 0.3s ease;
}

.detail-content button:hover {
  background: #847aff;
}



/* ===== Loader ===== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #6b5bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

#loader p {
  font-size: 0.95rem;
  color: #bcbcbc;
}

/* Hide loader when not visible */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
