/* =============================
   AI Prompts Section
============================= */
.prompts-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.night-mode .prompts-section {
  background: linear-gradient(160deg, #1a1a2e 0%, #162447 100%);
}

.prompts-section h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 30px;
  display: inline-block;
  position: relative;
  background: linear-gradient(120deg, #ff8a00, #ff5e62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.prompts-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff8a00, #ff5e62);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.prompts-section h2:hover::after {
  transform: scaleX(1);
}

.prompts-intro {
  font-size: 18px;
  max-width: 850px;
  margin: 0 auto 80px auto;
  line-height: 1.8;
  color: #333;
  letter-spacing: 0.5px;
  opacity: 0.9;
  text-rendering: optimizeLegibility;
}

body.night-mode .prompts-intro {
  color: #ddd;
  opacity: 0.85;
}
/* ---------- Category ---------- */
.prompt-category {
  margin-bottom: 60px;
}

.prompt-category-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  color: var(--primary-color-night);
}

body.day-mode .prompt-category-title {
  color: var(--primary-color-day);
}

.prompt-category-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--secondary-color-night);
}

body.day-mode .prompt-category-title::after {
  background: var(--secondary-color-day);
}

/* ---------- Slider Wrapper ---------- */
.prompts-slider-wrapper {
  position: relative;
  padding: 10px 0;
  overflow: hidden; 
}

/* ---------- Slider ---------- */
.prompts-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; 
  -ms-overflow-style: none;  
  scrollbar-width: none;     
}

.prompts-slider::-webkit-scrollbar {
  display: none;
}

/* ---------- Prompt Card ---------- */
.prompt-card {
  width: 250px;
  background: var(--card-bg-night);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  text-align: center;
  padding-bottom: 15px;
  cursor: pointer;
  scroll-snap-align: center; 
}

body.day-mode .prompt-card {
  background: var(--card-bg-day);
}

.prompt-card img {
  width: 100%;
  aspect-ratio: 1 / 1;     
  background: #111;   
  padding: 12px;          
  box-sizing: border-box;
}

body.day-mode .prompt-card img {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.prompt-card h4 {
  margin: 12px 15px 5px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color-night);
}

body.day-mode .prompt-card h4 {
  color: var(--primary-color-day);
}

.prompt-card .prompt-text {
  margin: 0 15px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
}

body.day-mode .prompt-card .prompt-text {
  color: rgba(0,0,0,0.7);
}

.prompt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ---------- Slider Buttons ---------- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

body.day-mode .slider-btn {
  background: rgba(255,255,255,0.3);
  color: #000;
}

body.day-mode .slider-btn:hover {
  background: rgba(255,255,255,0.6);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .prompt-card {
    min-width: 200px;
  }
  .ai-prompts-section h2 {
    font-size: 30px;
  }
  .prompt-category-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .prompt-card {
    min-width: 170px;
  }
  .ai-prompts-section h2 {
    font-size: 26px;
  }
  .prompt-category-title {
    font-size: 20px;
  }
}


/* =============================
   AI Prompts Filter
============================= */
.prompts-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.prompts-filter select,
.prompts-filter button,
.prompts-filter .reset-btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color-night);
    background: var(--card-bg-night);
    color: var(--text-color-night);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.day-mode .prompts-filter select,
body.day-mode .prompts-filter button,
body.day-mode .prompts-filter .reset-btn {
    border: 1px solid var(--border-color-day);
    background: var(--card-bg-day);
    color: var(--text-color-day);
}

.prompts-filter select:hover,
.prompts-filter button:hover,
.prompts-filter .reset-btn:hover {
    background: var(--primary-color-night);
    color: #fff;
}

body.day-mode .ai-prompts-filter select:hover,
body.day-mode .ai-prompts-filter button:hover,
body.day-mode .ai-prompts-filter .reset-btn:hover {
    background: var(--primary-color-day);
    color: #fff;
}

.prompts-filter button {
    border: none;
}

.prompts-filter .reset-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .prompts-filter {
        flex-direction: column;
        gap: 10px;
    }
}


.main-category-title{
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--secondary-color-night);
}



/* =============================
   Prompt Meta & Votes
============================= */
.prompt-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 8px 0 5px;
    flex-wrap: wrap;
}

body.day-mode .prompt-meta {
    color: rgba(0,0,0,0.6);
}

.prompt-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prompt-meta i {
    font-size: 14px;
    color: var(--primary-color-night);
}

body.day-mode .prompt-meta i {
    color: var(--primary-color-day);
}

/* ---------- Votes Buttons ---------- */
.prompt-votes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.prompt-votes button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

body.day-mode .prompt-votes button {
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.8);
}

.prompt-votes button i {
    font-size: 14px;
}

.prompt-votes button:hover {
    background: var(--primary-color-night);
    color: #fff;
}

body.day-mode .prompt-votes button:hover {
    background: var(--primary-color-day);
    color: #fff;
}

/* ---------- Active Vote ---------- */
.prompt-votes button.active {
    background: var(--primary-color-night);
    color: #fff;
}

body.day-mode .prompt-votes button.active {
    background: var(--primary-color-day);
    color: #fff;
}

/* ---------- Small Adjustments ---------- */
.prompt-card .prompt-meta,
.prompt-card .prompt-votes {
    opacity: 0.9;
}

.prompt-card:hover .prompt-meta,
.prompt-card:hover .prompt-votes {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .prompt-meta {
        font-size: 12px;
    }
    .prompt-votes button {
        font-size: 12px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .prompt-meta {
        font-size: 11px;
        gap: 8px;
    }
    .prompt-votes {
        gap: 6px;
    }
    .prompt-votes button {
        font-size: 11px;
        padding: 4px 6px;
    }
}


/* =============================
   AI Tools Section
============================= */
.ai-tools-section {
  margin-top: 120px;
  text-align: center;
}

.ai-tools-section h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ai-tools-intro {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 40px;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.ai-tool-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 30px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-tool-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}

.ai-tool-card span {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.ai-tool-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
}

/* Night Mode */
body.night-mode .ai-tool-card {
  background: rgba(0, 0, 0, 0.35);
}
