/* ===================================
   Promptrends Neon Glossy Theme
   Author: GPT-5
   =================================== */

/* -------- Root Variables -------- */
:root {
  --bg-dark: #050510;
  --bg-panel: #0c0c1a;
  --neon-purple: #a855f7;
  --neon-blue: #60a5fa;
  --neon-pink: #f472b6;
  --text-light: #e5e7eb;
  --text-dim: #9ca3af;
  --radius: 16px;
  --shadow-neon: 0 0 20px rgba(96, 165, 250, 0.25);
  --glow-purple: 0 0 25px rgba(168, 85, 247, 0.35);
}

/* -------- Reset -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -------- Body -------- */
body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at 20% 20%, #090916, #050510);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* -------- Header -------- */
.site-header {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.header-inner {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.nav .btn {
  background: var(--neon-blue);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.nav .btn:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
}

/* -------- Main -------- */
.main {
  padding: 40px 0;
}

.container {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
}

/* -------- Headings -------- */
h2 {
  color: var(--neon-blue);
  font-size: 1.6rem;
  text-align: center;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
  margin-bottom: 20px;
}

/* ===================================
   Prompt Grid Layout
   =================================== */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 50px;
}

.prompt-card {
  background: linear-gradient(145deg, #12122b, #0a0a18);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.prompt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.4);
  border-color: rgba(96, 165, 250, 0.4);
}

.prompt-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.prompt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.prompt-card:hover .prompt-thumb img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.prompt-content {
  padding: 16px;
}

.prompt-content h3 {
  color: var(--neon-blue);
  font-size: 1rem;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
}

.prompt-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.prompt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.status {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  text-shadow: 0 0 4px rgba(74, 222, 128, 0.3);
}

.status.pending {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.status.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* -------- Buttons -------- */
button,
.btn-primary {
  background: var(--neon-purple);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover,
.btn-primary:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink);
}

/* -------- Profile Section -------- */
.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--neon-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  margin-bottom: 10px;
}

.username {
  font-size: 1.4rem;
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.email {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* -------- Footer -------- */
.footer {
  margin-top: 60px;
  padding: 25px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------- Responsive Design -------- */
@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .nav a {
    margin-left: 0.8rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .prompts-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  .prompt-thumb {
    height: 150px;
  }
  .logo-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .prompts-grid {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 1.3rem;
  }
}


/* ==============================
   Admin Dashboard Styling
   ============================== */
.admin-section {
  padding: 40px 0;
}

.admin-section h2 {
  text-align: center;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.admin-table-wrapper {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  background: linear-gradient(145deg, #12122b, #0a0a18);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.25);
  padding: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-light);
  font-size: 0.95rem;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  background: rgba(96, 165, 250, 0.15);
  color: var(--neon-blue);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background: rgba(168, 85, 247, 0.1);
  transition: background 0.3s ease;
}

/* Buttons */
.btn-approve,
.btn-reject {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.btn-approve {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.btn-approve:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  margin-left: 8px;
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.no-prompts {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 20px;
}


/* ==============================
   Profile Page Styling
   ============================== */

.profile-header {
  text-align: center;
  margin: 40px auto 30px;
  color: var(--text-light);
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
  margin-bottom: 10px;
}

.profile-header h2 {
  font-size: 1.5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.profile-header .email {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.profile-header .joined {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 5px;
}

.profile-prompts {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.profile-prompts h3 {
  font-size: 1.4rem;
  color: var(--neon-blue);
  text-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
  margin-bottom: 20px;
}

/* Grid Layout (same as Prompts page) */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.prompt-card {
  background: linear-gradient(145deg, #12122b, #0a0a18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prompt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(96, 165, 250, 0.3);
}

.prompt-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-content {
  padding: 15px;
}

.prompt-content h3 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.prompt-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.prompt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status.approved {
  color: #4ade80;
  font-weight: 600;
}

.status.pending {
  color: #facc15;
  font-weight: 600;
}

.date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.no-prompts {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 20px;
}


/* ==========================
   Neon Hover Avatar Styling
   ========================== */
.avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
  transition: all 0.3s ease;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.avatar-wrapper:hover {
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.avatar-wrapper:hover .overlay {
  opacity: 1;
}

.overlay-text {
  color: #00d4ff;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
  cursor: pointer;
  font-weight: 600;
}

#profile_pic {
  display: none;
}

.save-btn {
  background: linear-gradient(90deg, #6a5af9, #00d4ff);
  border: none;
  padding: 6px 18px;
  color: #fff;
  border-radius: 25px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.save-btn:hover {
  box-shadow: 0 0 12px #00d4ff;
  transform: scale(1.05);
}



/* ==========================
   Submit Prompt Page
   ========================== */
.submit-container {
  max-width: 700px;
  margin: 60px auto;
  background: rgba(20, 20, 35, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(111, 66, 255, 0.2);
  border: 1px solid rgba(111, 66, 255, 0.3);
  color: #fff;
  text-align: center;
}

.submit-container h2 {
  font-size: 1.6rem;
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
  margin-bottom: 25px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #aeb3ff;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 10, 20, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  outline: none;
}

.submit-btn {
  background: linear-gradient(90deg, #6a5af9, #00d4ff);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  box-shadow: 0 0 20px #00d4ff;
  transform: scale(1.05);
}

#imageUpload {
  border: none;
  background: transparent;
  color: #ccc;
}

#tagsInput {
  font-style: italic;
  color: #b6b6ff;
}


.view-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #805cfb, #9b6ef3);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background: linear-gradient(90deg, #9c6efb, #b982ff);
  box-shadow: 0 0 15px rgba(150, 100, 255, 0.5);
}




/* Align hamburger beside search */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Make search smaller for mobile balance */
.nav-search input {
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  background: #222;
  color: #fff;
  outline: none;
  width: 150px;
  transition: 0.3s;
}
.nav-search input:focus {
  width: 200px;
  background: #2a1f3a;
  box-shadow: 0 0 8px #a77aff;
}

/* Hamburger beside search */
.menu-btn {
  font-size: 1.6rem;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}
.menu-btn:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 6px rgba(180,120,255,0.6);
}

/* 📱 On mobile, show menu button and hide nav */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-search input {
    width: 120px;
  }
}
