/* AI Listing Page Styles */
.ai-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ai-hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.ai-hero-text {
  flex: 1;
}

.ai-hero-image {
  flex: 1;
  position: relative;
}

.ai-hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ai-hero-image:hover img {
  transform: translateY(-5px);
}

.ai-search-box {
  margin-top: 30px;
}

.search-container {
  position: relative;
  max-width: 600px;
}

.search-container input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #0c84c0;
  box-shadow: 0 5px 15px rgba(74, 108, 247, 0.1);
}

.search-container button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #0c84c0;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-container button:hover {
  background: #3a5bd9;
}

.ai-search-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.search-tag {
  background: #eef2ff;
  color: #0c84c0;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-tag:hover {
  background: #0c84c0;
  color: white;
}

/* Main Layout */
.ai-main-container {
  padding: 40px 0;
}

.ai-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

/* Filters Sidebar */
.ai-filters-sidebar {
  position: sticky;
  top: 120px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 20px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filters-header h2 {
  margin: 0;
  font-size: 20px;
}

.mobile-filters-toggle {
  display: none;
  width: 100%;
  padding: 12px;
  background: #0c84c0;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
}

.filter-header h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-header i {
  font-size: 14px;
  color: #666;
}

.filter-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  user-select: none;
  font-size: 14px;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-checkbox:hover input ~ .checkmark {
  background-color: #f1f1f1;
}

.filter-checkbox input:checked ~ .checkmark {
  background-color: #0c84c0;
  border-color: #0c84c0;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.filter-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.filter-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* AI Tools Listing */
.ai-listing-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.listing-header h2 {
  margin: 0;
  font-size: 20px;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-options label {
  font-size: 14px;
  font-weight: 500;
}

.sort-options select {
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 14px;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ai-tool-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}

.ai-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #0c84c0;
}

.ai-tool-image {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-tool-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}

.ai-tool-card:hover .ai-tool-image img {
  transform: scale(1.05);
}

.ai-tool-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0c84c0;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.ai-tool-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-tool-header {
  margin-bottom: 12px;
}

.ai-tool-category {
  color: #0c84c0;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-tool-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.ai-tool-description {
  color: #666;
  margin-bottom: 15px;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.ai-tool-features {
  margin-bottom: 20px;
}

.ai-tool-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #555;
}

.ai-tool-feature i {
  color: #0c84c0;
  font-size: 12px;
}

.ai-tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.ai-tool-pricing {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.ai-tool-link {
  color: #0c84c0;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.ai-tool-link:hover {
  color: #3a5bd9;
  gap: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination button {
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination button:hover:not(:disabled) {
  background: #0c84c0;
  color: white;
  border-color: #0c84c0;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.page-number:hover, .page-number.active {
  background: #0c84c0;
  color: white;
}

/* AI Recommendation CTA */
.ai-recommendation-cta {
  background: linear-gradient(135deg, #0c84c0 0%, #1e3c72 100%);
  color: white;
  padding: 60px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-text h2 {
  color: white;
  margin-top: 0;
}

.cta-text p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* FAQ Section */
.ai-faq-section {
  padding: 80px 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: #f9fafc;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #eef2ff;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
  margin-top: 0;
}

.faq-answer ul, .faq-answer ol {
  padding-left: 20px;
}

/* Professional Lobby Advantages */
.professional-lobby-advantages {
  background: #f5f9ff;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.professional-lobby-advantages h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #0c84c0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.advantage-card i {
  font-size: 36px;
  color: #0c84c0;
  margin-bottom: 15px;
}

.advantage-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.advantage-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

/* Disclaimer Section */
.disclaimer-section {
  background: #fff8f8;
  border-left: 4px solid #ff6b6b;
  padding: 25px;
  margin-top: 40px;
  border-radius: 0 8px 8px 0;
}

.disclaimer-section h3 {
  color: #d63031;
  margin-top: 0;
}

.disclaimer-section p, .disclaimer-section ul {
  font-size: 14px;
  line-height: 1.6;
}

.disclaimer-section ul {
  padding-left: 20px;
}

.disclaimer-section a {
  color: #0c84c0;
  font-weight: 600;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
}

.no-results i {
  font-size: 50px;
  color: #0c84c0;
  margin-bottom: 20px;
}

.no-results h3 {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .ai-layout {
    grid-template-columns: 240px 1fr;
  }
  
  .ai-tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .ai-hero-content {
    flex-direction: column;
  }
  
  .ai-hero-text, .ai-hero-image {
    width: 100%;
  }
  
  .cta-content {
    flex-direction: column;
    text-align: center;
  }
  
  .ai-layout {
    grid-template-columns: 1fr;
  }
  
  .ai-filters-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 30px;
  }
  
  .mobile-filters-toggle {
    display: flex;
  }
  
  .filters-content {
    display: none;
  }
  
  .filters-content.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .ai-hero {
    padding: 60px 0;
  }
  
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .professional-lobby-advantages {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .search-container input {
    padding: 12px 15px;
  }
  
  .faq-question {
    font-size: 16px;
    padding: 15px;
  }
  
  .ai-tool-card {
    flex-direction: row;
  }
  
  .ai-tool-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }
  
  .ai-tool-content {
    padding: 15px;
  }
  
  .ai-tool-title {
    font-size: 16px;
  }
  
  .ai-tool-description {
    font-size: 13px;
  }
  
  .ai-tool-feature {
    font-size: 12px;
  }
}