:root {
  --bg-dark: #080d12;
  --card-bg: rgba(16, 26, 36, 0.65);
  --glass-border: rgba(0, 242, 254, 0.18);
  --aqua-primary: #00f2fe;
  --aqua-secondary: #4facfe;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

* {
  /* Light Theme Override Variables */
body.light-mode {
  --bg-dark: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--aqua-primary);
  color: var(--aqua-primary);
}

  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}



body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Ambient Blobs */
.blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}
.blob-1 { top: -80px; left: -80px; background: var(--aqua-primary); }
.blob-2 { top: 500px; right: -80px; background: var(--aqua-secondary); }

/* Utility */
.aqua-text { color: var(--aqua-primary); }
.aqua-glow {
  color: var(--aqua-primary);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--aqua-primary);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25);
  transform: translateY(-4px);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(8, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--aqua-primary);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.btn-submit {
  background: linear-gradient(135deg, var(--aqua-primary), var(--aqua-secondary));
  color: #000;
  font-weight: 700;
  padding: 10px 22px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  transition: all 0.3s;
  
}

.btn-submit:hover {
  opacity: 0.95;
  transform: scale(1.04);
}

/* PromptHero Style Scrollable Models Sub-Bar */
.model-nav-bar {
  background: rgba(12, 20, 28, 0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 5%;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  
}
.model-nav-bar::-webkit-scrollbar { display: none; }

.model-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 0 0 auto;
  
}
.model-chip:hover, .model-chip.active {
  background: var(--aqua-primary);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
  border-color: var(--aqua-primary);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 50px 20px 25px;
  max-width: 950px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(16, 26, 36, 0.85);
  border: 1px solid var(--glass-border);
  padding: 8px 12px 8px 20px;
  border-radius: 40px;
  max-width: 720px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.search-box:focus-within {
  border-color: var(--aqua-primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.search-icon {
  color: var(--aqua-primary);
  font-size: 1.2rem;
  margin-right: 15px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #64748b;
}

.btn-search {
  background: var(--aqua-primary);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn-search:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.quick-tags {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quick-tags .tag {
  color: var(--aqua-primary);
  text-decoration: none;
  margin: 0 5px;
  transition: 0.2s;
  display: inline-block;
}

.quick-tags .tag:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* Section Containers */
.section-container {
  max-width: 1600px;
  width: 95vw;
  margin: 35px auto;
  padding: 0 15px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.see-all {
  color: var(--aqua-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.3s;
}

/* Horizontal Scroll Grid for Trending / Event Cards */
.cards-grid.event-cards {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  gap: 18px !important;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cards-grid.event-cards::-webkit-scrollbar { display: none; }

.banner-card {
  min-width: 310px !important;
  max-width: 360px !important;
  flex: 0 0 auto !important;
  scroll-snap-align: start;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  align-self: flex-start;
  background: var(--aqua-primary);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge.upcoming {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-card h3 {
  margin: 14px 0 6px;
  font-size: 1.18rem;
}

.banner-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.btn-card {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--aqua-primary);
  color: var(--aqua-primary);
  padding: 8px 18px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-card:hover {
  background: var(--aqua-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Horizontal Scrollable Filter Tabs */
.filter-tabs {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: rgba(16, 26, 36, 0.75);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex: 0 0 auto;
}

.tab-btn:hover {
  color: var(--aqua-primary);
  border-color: var(--aqua-primary);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(79, 172, 254, 0.22));
  color: var(--aqua-primary);
  border: 1px solid var(--aqua-primary);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.4);
}

/* Prompt Hero Pinterest Masonry Grid */
.masonry-grid {
  column-count: 4;
  column-gap: 18px;
}

.prompt-card {
  break-inside: avoid;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.card-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d151d;
  border-radius: 16px 16px 0 0;
}

.card-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.prompt-card:hover .card-img img {
  transform: scale(1.05);
}

.model-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--aqua-primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--glass-border);
}

.card-content {
  padding: 14px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.likes {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-view {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--aqua-primary);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.3s;
}

.btn-view:hover {
  background: var(--aqua-primary);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  max-width: 1200px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  border-radius: 24px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: var(--aqua-primary);
}

.modal-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.modal-img-box {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.modal-img-box img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.modal-details h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.modal-category-badge {
  display: inline-block;
  color: var(--aqua-primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.prompt-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--aqua-primary);
  padding: 15px;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-copy-main {
  width: 100%;
  background: linear-gradient(135deg, var(--aqua-primary), var(--aqua-secondary));
  color: #000;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transition: 0.3s;
}

.btn-copy-main:hover { transform: scale(1.02); }

/* Toast */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--aqua-primary);
  color: #000;
  font-weight: 700;
  text-align: center;
  border-radius: 30px;
  padding: 12px 24px;
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Footer Base */
footer {
  text-align: center;
  padding: 50px 20px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
  background: #0d1117;
}

/* Mobile Responsive Setup */
@media (max-width: 1200px) {
  .masonry-grid { column-count: 3; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 15px; }
  .nav-links { display: none; }
  .hero-section { padding: 25px 15px 15px !important; }
  .hero-section h1 { font-size: 1.6rem !important; }
  .hero-section p { font-size: 0.88rem !important; }
  .banner-card { min-width: 260px !important; padding: 16px !important; }
  .banner-card h3 { font-size: 1.05rem !important; }
  .masonry-grid { column-count: 2; column-gap: 10px; }
  .modal-content-wrapper { grid-template-columns: 1fr; }
  .quick-tags { display: none !important; }
}

/* FIX OVERFLOW & MOBILE SIDE SWIPE ISSUE */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

/* Ensure Containers Stay Within Screen Limits */
.section-container, .navbar, footer, .hero-section {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Trending Auto-Scrolling Carousel Styles */
.trending-carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  padding: 5px 0;
}

.trending-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.trending-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.trending-slide-card {
  min-width: 280px;
  max-width: 320px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  flex: 0 0 auto;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trending-slide-card:hover {
  transform: translateY(-3px);
  border-color: var(--aqua-primary);
}

.trending-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Head Cut-off Protection */
}

.trending-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.trending-slide-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

@media (max-width: 768px) {
  .trending-slide-card {
    min-width: 220px;
    height: 140px;
  }
}

/* =========================================================
   LIGHT MODE COMPLETE VISIBILITY & CONTRAST FIX
   ========================================================= */

/* Body & Background Settings */
body.light-mode {
  --bg-dark: #f8fafc;
  --card-bg: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
}

/* Light Mode Card Titles & General Headings */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .card-title,
body.light-mode .section-header h2 {
  color: #0f172a !important;
}

/* Glass Cards & Prompt Cards in Light Mode */
body.light-mode .glass-card,
body.light-mode .prompt-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Category Tabs & Model Chips */
body.light-mode .tab-btn,
body.light-mode .model-chip {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .tab-btn.active,
body.light-mode .model-chip.active {
  background: var(--aqua-primary) !important;
  color: #000000 !important;
}

/* Search Box in Light Mode */
body.light-mode .search-box {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .search-box input {
  color: #0f172a !important;
}

body.light-mode .search-box input::placeholder {
  color: #64748b !important;
}

/* Footer Visibility Fix in Light Mode */
body.light-mode footer {
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.light-mode footer h3,
body.light-mode footer h4 {
  color: #0f172a !important;
}

body.light-mode footer p,
body.light-mode footer ul li a {
  color: #475569 !important;
}

/* Modal Popup Fixes in Light Mode */
body.light-mode .modal-container {
  background: #ffffff !important;
}

body.light-mode #modalTitle {
  color: #0f172a !important;
}

body.light-mode .prompt-box {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}
/* Light Mode Prompt Box Green Styling */
/* Light Mode Prompt Box Text & Visibility Fix */
body.light-mode .prompt-box {
  background: #e6f7f0 !important;             /* Subtle Solid Light Green Background */
  border-left: 4px solid #059669 !important;    /* Dark Green Border */
  border-color: #059669 !important;
}

body.light-mode .prompt-box p,
body.light-mode #modalPromptText,
body.light-mode #pPromptText {
  color: #064e3b !important;                    /* Deep Dark Green Text Color (High Contrast) */
  font-weight: 600 !important;
}