/* DreamNoos Modern Category List - 2024 */
.subcategory-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.subcategory-link {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.2rem 1.5rem 1.2rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px 0 rgba(108, 99, 255, 0.1);
  border: 1.5px solid rgba(108, 99, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #2c2346;
  text-decoration: none;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  overflow: hidden;
  cursor: pointer;
}

.subcategory-link::before {
  display: none;
}

.subcategory-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.18rem;
  color: inherit;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.subcategory-name i {
  margin-right: 0.7rem;
  font-size: 1.15em;
  color: #6c63ff;
  min-width: 1.3em;
  text-align: center;
}

.subcategory-desc {
  font-size: 1.01rem;
  color: #6c63ff;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}

.subcategory-link:hover,
.subcategory-link:focus {
  background: linear-gradient(90deg, #6c63ff 0%, #f1c40f 100%);
  color: #fff;
  border: 1.5px solid #6c63ff;
  box-shadow: 0 8px 32px 0 rgba(108, 99, 255, 0.18);
  outline: none;
}

.subcategory-link:hover .subcategory-name i,
.subcategory-link:focus .subcategory-name i {
  color: #fff;
}

.subcategory-link:hover .subcategory-desc,
.subcategory-link:focus .subcategory-desc {
  color: #fff;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .subcategory-link {
    padding: 1rem 1.1rem 1rem 0.7rem;
    font-size: 1rem;
  }
  .subcategory-name {
    font-size: 1.03rem;
  }
  .subcategory-desc {
    font-size: 0.97rem;
  }
}

/* Dream Analysis Hero - Rüya Temalı Arka Plan */
.dream-hero-bg {
  position: relative;
  background: linear-gradient(135deg, #6c63ff 0%, #f1c40f 100%);
  overflow: hidden;
  min-height: 320px;
}

.dream-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://cdn.jsdelivr.net/gh/encharm/Font-Awesome-SVG-PNG/black/svg/star.svg")
      repeat 0 0,
    url("https://cdn.jsdelivr.net/gh/encharm/Font-Awesome-SVG-PNG/black/svg/moon-o.svg")
      no-repeat 90% 20%,
    url("https://www.transparenttextures.com/patterns/clouds.png") repeat 0 0;
  background-size: 60px, 80px, 300px;
  opacity: 0.13;
  z-index: 1;
  pointer-events: none;
}

.dream-hero-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 80%;
  width: 420px;
  height: 120px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.dream-hero-bg .container,
.dream-hero-bg .row,
.dream-hero-bg .description-wrapper {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .dream-hero-bg {
    min-height: 200px;
  }
  .dream-hero-bg::before {
    background-size: 36px, 50px, 180px;
  }
  .dream-hero-bg::after {
    width: 220px;
    height: 60px;
    top: 85%;
  }
}

/* Modern Dream Cards Grid - 2024 */
.dream-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Dreamy Card Design */
.dream-card {
  position: relative;
  height: 100%;
  min-height: 280px;
  perspective: 1000px;
}

.dream-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.dream-card:hover .dream-card-inner {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.dream-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dream-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.05) 0%,
    rgba(138, 180, 248, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dream-card:hover .dream-card-bg {
  opacity: 1;
}

.dream-card:hover .dream-card-bg::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: dreamyGlow 4s ease infinite;
}

@keyframes dreamyGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.dream-card .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--primary-color, #2c2346);
  transition: color 0.3s ease;
}

.dream-card .card-text {
  color: var(--text-color, #666);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.dream-card .btn {
  background: var(
    --primary-gradient,
    linear-gradient(135deg, #6c63ff 0%, #8ab4f8 100%)
  );
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.2);
  align-self: flex-start;
  text-decoration: none;
}

.dream-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.3);
  background: var(
    --primary-gradient-hover,
    linear-gradient(135deg, #5a52e3 0%, #7aa3e7 100%)
  );
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 12px;
  background: white;
  color: var(--primary-color, #2c2346);
  border: 1px solid rgba(108, 99, 255, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination .page-link:hover {
  background: rgba(108, 99, 255, 0.05);
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--primary-color, #2c2346);
}

.pagination .page-item.active .page-link {
  background: var(
    --primary-gradient,
    linear-gradient(135deg, #6c63ff 0%, #8ab4f8 100%)
  );
  color: white;
  border: none;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .dream-cards-grid {
    padding: 1.5rem;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .dream-card {
    min-height: 240px;
  }

  .dream-card-inner {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .dream-card .card-title {
    font-size: 1.25rem;
  }

  .dream-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
