/* Directory Styles */
.back-link {
  display: inline-block;
  margin: 20px;
  color: #667eea;
  text-decoration: none;
  font-size: 1rem;
}

.back-link:hover {
  color: #764ba2;
}

.directory-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-graphic {
  margin-bottom: 30px;
}

.subtitle {
  color: #a0a0b0;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Search & Filters */
.search-filters {
  background: #12121a;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-box input {
  width: 70%;
  padding: 15px;
  border: 2px solid #667eea;
  border-radius: 10px;
  background: #0a0a0f;
  color: #fff;
  font-size: 1rem;
}

.search-btn {
  padding: 15px 30px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.search-btn:hover {
  background: #764ba2;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section h4 {
  color: #e0e0e0;
  margin-bottom: 10px;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 18px;
  background: #1a1a25;
  color: #e0e0e0;
  border: 2px solid #667eea;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn:hover {
  background: #667eea;
}

.filter-btn.active {
  background: #667eea;
  color: #fff;
}

/* Results Count */
.results-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #a0a0b0;
}

#sort-by {
  padding: 10px 15px;
  border: 2px solid #667eea;
  border-radius: 8px;
  background: #12121a;
  color: #fff;
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.company-card {
  background: #12121a;
  border: 1px solid #667eea;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s;
  position: relative;
}

.company-card:hover {
  background: #1a1a25;
  transform: translateY(-5px);
  border-color: #764ba2;
}

.company-card.featured {
  border: 2px solid #4caf50;
  background: linear-gradient(135deg, #1a2a1f 0%, #1f2a1f 100%);
}

.company-card.sponsored {
  border: 2px solid #ff6b6b;
  background: linear-gradient(135deg, #2a1a1f 0%, #2f1f1f 100%);
}

.featured-badge-small {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #4caf50;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.sponsored-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: #ff6b6b;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.company-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.company-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.company-card .category {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.company-card .description {
  color: #a0a0b0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.company-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.company-stats span {
  color: #e0e0e0;
}

.company-btn {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  display: block;
  font-weight: 600;
  transition: all 0.3s;
}

.company-btn:hover {
  background: #764ba2;
}

.company-btn.featured-btn {
  background: #4caf50;
}

.company-btn.sponsored-btn {
  background: #ff6b6b;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.page-btn {
  padding: 10px 20px;
  background: #12121a;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  cursor: pointer;
}

.page-btn:hover {
  background: #667eea;
  color: #fff;
}

#page-numbers {
  display: flex;
  gap: 5px;
}

.page-number {
  padding: 10px 15px;
  background: #1a1a25;
  color: #e0e0e0;
  border: 1px solid #667eea;
  border-radius: 6px;
  cursor: pointer;
}

.page-number.active {
  background: #667eea;
  color: #fff;
}

/* Submit Listing */
.submit-listing {
  background: #12121a;
  padding: 40px;
  border-radius: 15px;
  margin: 50px 0;
}

.submit-listing h2 {
  margin-bottom: 15px;
}

.listing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.option-card {
  background: #1a1a25;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #667eea;
  position: relative;
}

.option-card.featured {
  border: 3px solid #4caf50;
  background: linear-gradient(135deg, #1a2a1f 0%, #1f2a1f 100%);
}

.option-card.premium {
  border: 3px solid #ff6b6b;
  background: linear-gradient(135deg, #2a1a1f 0%, #2f1f1f 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: #fff;
  padding: 5px 15px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.option-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.price {
  font-size: 2rem;
  color: #667eea;
  font-weight: bold;
  margin: 15px 0;
}

.option-card.featured .price {
  color: #4caf50;
}

.option-card.premium .price {
  color: #ff6b6b;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.option-card li {
  color: #a0a0b0;
  font-size: 0.9rem;
  margin: 8px 0;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn.featured-btn {
  background: #4caf50;
}

.submit-btn.premium-btn {
  background: #ff6b6b;
}

.submit-form {
  margin-top: 30px;
  padding: 30px;
  background: #1a1a25;
  border-radius: 12px;
}

.submit-form h3 {
  margin-bottom: 20px;
}

.submit-form input,
.submit-form textarea,
.submit-form select {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #667eea;
  border-radius: 8px;
  background: #0a0a0f;
  color: #fff;
}

.submit-form button {
  width: 100%;
  padding: 18px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
}

/* AdSense */
.adsense-placeholder {
  background: #1a1a25;
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  margin: 40px 0;
  border: 2px dashed #667eea;
}

/* Company Profiles */
.company-profiles {
  margin: 60px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.profile-card {
  background: #12121a;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #667eea;
  position: relative;
}

.profile-card.featured-profile {
  border: 2px solid #4caf50;
}

.profile-card.sponsored-profile {
  border: 2px solid #ff6b6b;
}

.profile-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.profile-card h3 {
  color: #fff;
  margin-bottom: 8px;
}

.profile-card .category {
  color: #667eea;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.profile-card .description {
  color: #a0a0b0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.profile-btn {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  font-weight: 600;
}

.profile-btn.featured-btn {
  background: #4caf50;
}

.profile-btn.sponsored-btn {
  background: #ff6b6b;
}

/* Funding Tracker */
.funding-tracker {
  background: #12121a;
  padding: 30px;
  border-radius: 15px;
  margin: 50px 0;
}

.funding-list {
  margin: 20px 0;
}

.funding-item {
  background: #1a1a25;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}

.funding-item strong {
  color: #fff;
}

.funding-item span {
  color: #4caf50;
  font-weight: bold;
}

/* Tool Comparisons */
.tool-comparisons {
  margin: 60px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.comparison-card {
  background: #12121a;
  padding: 25px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #667eea;
  transition: all 0.3s;
}

.comparison-card:hover {
  background: #1a1a25;
  transform: translateY(-3px);
}

.comparison-card h3 {
  color: #667eea;
  margin-bottom: 10px;
}

.comparison-card p {
  color: #a0a0b0;
  font-size: 0.9rem;
}

.compare-link {
  color: #764ba2;
  font-size: 0.85rem;
  margin-top: 15px;
  display: inline-block;
  font-weight: bold;
}

/* FAQ */
.faq-section {
  margin: 50px 0;
}

.faq-item {
  background: #12121a;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
}

.faq-item h4 {
  color: #667eea;
  margin-bottom: 10px;
}

.faq-item p {
  color: #a0a0b0;
}

.faq-item a {
  color: #667eea;
}

/* Mobile */
@media (max-width: 900px) {
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .listing-options {
    grid-template-columns: 1fr;
  }
  
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .directory-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
  }
}