/* ===== Category Page Specific Styles ===== */

/* ===== Hero Section ===== */
.category-hero {
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--lavender-pale) 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A5A5' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--lavender);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.category-icon {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 30px var(--shadow);
  flex-shrink: 0;
}

.category-info h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-info h1 span {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-description {
  color: var(--text-medium);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

.category-stats {
  display: flex;
  gap: 2rem;
}

.category-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.category-stat strong {
  color: var(--lavender);
  font-size: 1.1rem;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Sidebar Filters ===== */
.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--bg-greige);
}

.filter-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

/* Search Input */
.search-input {
  display: flex;
  align-items: center;
  background: var(--bg-beige);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  gap: 0.5rem;
}

.search-input input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  width: 100%;
}

.search-input input::placeholder {
  color: var(--text-light);
}

.search-input input:focus {
  outline: none;
}

.search-input .icon {
  color: var(--text-light);
}

/* Checkboxes */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-medium);
  transition: color 0.3s;
}

.filter-option:hover {
  color: var(--text-dark);
}

.filter-option input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-greige);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.filter-option input:checked + .checkbox-custom {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  border-color: transparent;
}

.filter-option input:checked + .checkbox-custom::after {
  content: '\2713';
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-option .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Price Range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--bg-greige);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: var(--lavender-light);
}

.price-separator {
  color: var(--text-light);
}

/* Rating Filter */
.rating-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rating-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.rating-option:hover {
  background: var(--bg-beige);
}

.rating-option.active {
  background: var(--lavender-pale);
}

.rating-option input {
  display: none;
}

.rating-stars {
  color: var(--gold);
  font-size: 0.9rem;
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: var(--bg-beige);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.tag-item:hover {
  border-color: var(--lavender-light);
}

.tag-item.active {
  background: var(--lavender);
  color: var(--white);
}

/* Clear Filters */
.clear-filters {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s;
  margin-top: 0.5rem;
}

.clear-filters:hover {
  color: var(--rose-deep);
}

/* ===== Results Section ===== */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.results-count strong {
  color: var(--lavender);
  font-size: 1.1rem;
}

.results-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--bg-greige);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--lavender-light);
}

.view-toggle {
  display: flex;
  gap: 0.3rem;
  background: var(--bg-beige);
  padding: 0.3rem;
  border-radius: 10px;
}

.view-btn {
  padding: 0.5rem 0.8rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.view-btn.active {
  background: var(--white);
  box-shadow: 0 2px 8px var(--shadow);
}

/* Online Only Toggle */
.online-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--bg-greige);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--green);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* ===== Fortuneteller Grid ===== */
.fortuneteller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.fortuneteller-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--bg-greige);
  text-decoration: none;
  color: inherit;
  display: block;
}

.fortuneteller-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(155, 139, 196, 0.15);
  border-color: var(--lavender-light);
}

.card-header {
  height: 140px;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 20px var(--shadow);
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: flex;
  gap: 0.4rem;
}

.card-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.card-badge.rank {
  background: var(--gold);
  color: var(--white);
}

.card-badge.premium {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
}

.card-badge.new {
  background: var(--coral);
  color: var(--white);
}

.online-indicator {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--white);
  color: var(--green);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.online-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.offline-indicator {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--white);
  color: var(--text-light);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.card-body {
  padding: 1.3rem;
}

.card-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.card-specialties {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.specialty-tag {
  background: var(--bg-beige);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.specialty-tag.highlight {
  background: var(--rose-pale);
  color: var(--rose-deep);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
}

.rating-score {
  font-weight: 700;
  color: var(--lavender);
  font-size: 0.95rem;
}

.review-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--bg-greige);
}

.card-price {
  font-weight: 700;
  color: var(--text-dark);
}

.card-price span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.btn-consult {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-consult:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(232, 180, 168, 0.4);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bg-greige);
  background: var(--white);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--lavender-light);
  color: var(--lavender);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: var(--white);
  border: none;
}

.page-btn.arrow {
  font-size: 1.1rem;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.disabled:hover {
  border-color: var(--bg-greige);
  color: var(--text-medium);
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--bg-greige);
}

.no-results p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.page-dots {
  color: var(--text-light);
  padding: 0 0.3rem;
}

/* ===== Related Categories ===== */
.related-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--bg-greige);
}

.related-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.related-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--lavender) 0%, var(--rose) 100%);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg-beige);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
}

.related-icon {
  width: 45px;
  height: 45px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.related-info {
  flex: 1;
}

.related-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.related-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== SEO Content ===== */
.seo-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 100%);
  border-radius: 20px;
}

.seo-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.seo-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 2;
}

.seo-content h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 1.5rem 0 0.8rem;
}

.seo-content p {
  margin-bottom: 1rem;
}

/* ===== Responsive - Category Page ===== */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    display: none;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
  }

  .category-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .category-hero {
    padding: 2rem 1rem;
  }

  .category-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .category-info h1 { font-size: 1.5rem; }

  .category-description {
    font-size: 0.9rem;
  }

  .category-stats {
    gap: 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .results-count {
    text-align: center;
  }

  .results-controls {
    justify-content: center;
  }

  .fortuneteller-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fortuneteller-card {
    width: 100%;
    max-width: 100%;
  }

  .card-body {
    padding: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-section {
    padding: 1.5rem 1rem;
  }

  .seo-section {
    padding: 1.5rem 1rem;
  }

  .seo-title {
    font-size: 1.2rem;
  }

  .seo-content {
    font-size: 0.9rem;
  }
}
