/* 
 * Clean Networks Page CSS
 * Simple, elegant styling for the affiliate networks page
 */

:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #7f8c8d;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background-color: #f5f7fa;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.page-header {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 60px 0;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  color: white;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjY0MCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDE0NDAgNjQwIj48ZyBvcGFjaXR5PSIuMSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgNjQwVjBIMTQ0MHY2NDBIMHptNzIwLTMzOS4yYy0xNjYuNCAwLTMwMS4yIDEzNC44LTMwMS4yIDMwMS4yIDAgMTY2LjQgMTM0LjggMzAxLjIgMzAxLjIgMzAxLjIgMTY2LjQgMCAzMDEuMi0xMzQuOCAzMDEuMi0zMDEuMiAwLTE2Ni40LTEzNC44LTMwMS4yLTMwMS4yLTMwMS4yeiIvPjxwYXRoIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMTQ0MCA2NDBWMEgwdjY0MGgxNDQwek03MjAgMzAwLjhjMTY2LjQgMCAzMDEuMiAxMzQuOCAzMDEuMiAzMDEuMiAwIDE2Ni40LTEzNC44IDMwMS4yLTMwMS4yIDMwMS4yLTE2Ni40IDAtMzAxLjItMTM0LjgtMzAxLjItMzAxLjIgMC0xNjYuNCAxMzQuOC0zMDEuMiAzMDEuMi0zMDEuMnoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNTc2IDEzNmMtNzkuNSAwLTE0NCA2NC41LTE0NCAxNDRzNjQuNSAxNDQgMTQ0IDE0NCAxNDQtNjQuNSAxNDQtMTQ0LTY0LjUtMTQ0LTE0NC0xNDR6TTg2NCAzMTJjLTI2LjUgMC00OCAyMS41LTQ4IDQ4czIxLjUgNDggNDggNDggNDgtMjEuNSA0OC00OC0yMS41LTQ4LTQ4LTQ4eiIvPjwvZz48L3N2Zz4=');
  background-size: cover;
  opacity: 0.2;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
}

.banner-stats {
  display: flex;
  margin-top: 25px;
  gap: 30px;
}

.banner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
  min-width: 120px;
}

.banner-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.banner-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Search and Filters */
.search-filters {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background: #2980b9;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.filter-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  /*background-color: #0e0808;*/
  font-size: 14px;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-outline {
  background-color: white;
  color: var(--text);
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-icon {
  margin-right: 8px;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
}

.filter-tag-icon {
  margin-right: 6px;
  color: var(--secondary);
}

.filter-tag-remove {
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: var(--transition);
}

.filter-tag-remove:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Networks Grid */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.network-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 450px; /* Reduced minimum height */
}

.network-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.network-header {
  padding: 12px 15px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 10px; /* Reduced gap */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.network-logo {
  width: 45px; /* Smaller logo */
  height: 45px; /* Smaller logo */
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.network-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.network-title {
  flex: 1;
}

.network-name {
  font-size: 16px; /* Smaller font */
  font-weight: 600;
  margin: 0 0 3px; /* Reduced margin */
  color: var(--dark);
}

.network-rating {
  display: flex;
  align-items: center;
  gap: 3px; /* Reduced gap */
}

.stars {
  display: flex;
  color: var(--warning);
  font-size: 12px; /* Smaller stars */
}

.review-count {
  font-size: 11px; /* Smaller font */
  color: var(--text-light);
}

.featured-badge {
  position: absolute;
  top: 8px; /* Adjusted position */
  right: 8px; /* Adjusted position */
  background: linear-gradient(135deg, var(--warning), #e67e22);
  color: white;
  font-size: 10px; /* Smaller font */
  font-weight: 600;
  padding: 3px 8px; /* Reduced padding */
  border-radius: 12px; /* Smaller radius */
  z-index: 1;
}

.network-body {
  padding: 12px 15px; /* Reduced padding */
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow scrolling if content is too long */
}

.network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.network-tag {
  font-size: 10px; /* Smaller font */
  padding: 2px 8px; /* Reduced padding */
  border-radius: 12px; /* Smaller radius */
  background-color: #e2e8f0; /* Darker background */
  color: #4a5568; /* Darker text */
  font-weight: 500; /* Slightly bolder */
}

.network-tag-primary {
  background-color: rgba(52, 152, 219, 0.2); /* Darker background */
  color: #2c5282; /* Darker blue text */
}

.network-tag-success {
  background-color: rgba(46, 204, 113, 0.2); /* Darker background */
  color: #276749; /* Darker green text */
}

.network-tag-warning {
  background-color: rgba(243, 156, 18, 0.2); /* Darker background */
  color: #975a16; /* Darker orange text */
}

.network-tag-info {
  background-color: rgba(52, 152, 219, 0.2); /* Darker background */
  color: #2c5282; /* Darker blue text */
}

.network-tag-danger {
  background-color: rgba(231, 76, 60, 0.2); /* Darker background */
  color: #9b2c2c; /* Darker red text */
}

.network-description {
  font-size: 12px; /* Smaller font */
  color: var(--text);
  margin-bottom: 8px; /* Reduced margin */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4; /* Tighter line height */
}

/* Network Info Grid */
.network-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.info-item {
  display: flex;
  align-items: center;
  gap: 5px; /* Reduced gap */
}

.info-icon {
  color: var(--secondary);
  font-size: 12px; /* Smaller icon */
  width: 14px; /* Smaller width */
  text-align: center;
}

.info-text {
  font-size: 11px; /* Smaller font */
  color: var(--text);
}

/* Network Stats */
.network-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.stat-item {
  background-color: #edf2f7; /* Darker background */
  border-radius: var(--radius);
  padding: 6px 8px; /* Reduced padding */
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced gap */
  transition: var(--transition);
}

.stat-item:hover {
  background-color: #e2e8f0; /* Even darker on hover */
  transform: translateY(-2px);
}

.stat-icon {
  width: 24px; /* Smaller icon */
  height: 24px; /* Smaller icon */
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.2); /* Darker background */
  color: #2c5282; /* Darker blue */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; /* Smaller font */
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-weight: 600;
  font-size: 12px; /* Smaller font */
  margin: 0;
  line-height: 1.2;
  color: #2d3748; /* Darker text */
}

.stat-label {
  font-size: 10px; /* Smaller font */
  color: #4a5568; /* Darker text */
  margin: 0;
}

/* Section Headers */
.section-header {
  font-size: 11px; /* Smaller font */
  margin: 8px 0 4px; /* Reduced margin */
  color: #2d3748; /* Darker text */
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 3px;
}

.section-header i {
  color: #2c5282; /* Darker blue */
  font-size: 10px;
}

/* Verticals List */
.verticals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.vertical-pill {
  font-size: 9px; /* Smaller font */
  padding: 2px 6px; /* Reduced padding */
  border-radius: 10px; /* Smaller radius */
  background-color: rgba(52, 152, 219, 0.2); /* Darker background */
  color: #070707; /* Darker blue text */
  font-weight: 700; /* Slightly bolder */
}

/* Countries List */
.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.country-pill {
  font-size: 9px; /* Smaller font */
  padding: 2px 6px; /* Reduced padding */
  border-radius: 10px; /* Smaller radius */
  background-color: rgba(46, 204, 113, 0.2); /* Darker background */
  color: #276749; /* Darker green text */
  display: flex;
  align-items: center;
  gap: 3px; /* Reduced gap */
  font-weight: 700; /* Slightly bolder */
}

.country-flag {
  width: 12px; /* Smaller flag */
  height: 12px; /* Smaller flag */
  border-radius: 2px;
  overflow: hidden;
}

/* Network Features */
.network-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.feature-badge {
  font-size: 10px; /* Smaller font */
  padding: 2px 6px; /* Reduced padding */
  border-radius: 3px; /* Smaller radius */
  background-color: #e2e8f0; /* Darker background */
  color: #4a5568; /* Darker text */
  display: flex;
  align-items: center;
  gap: 3px; /* Reduced gap */
  font-weight: 600; /* Slightly bolder */
}

.feature-badge i {
  color: #2c5282; /* Darker blue */
  font-size: 9px; /* Smaller icon */
}

/* Offer Types */
.offer-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; /* Reduced gap */
  margin-bottom: 8px; /* Reduced margin */
}

.offer-type {
  font-size: 10px; /* Smaller font */
  padding: 2px 6px; /* Reduced padding */
  border-radius: 3px; /* Smaller radius */
  background-color: rgba(231, 76, 60, 0.2); /* Darker background */
  color: #9b2c2c; /* Darker red text */
  font-weight: 500; /* Slightly bolder */
}

.network-footer {
  padding: 10px 15px; /* Reduced padding */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around; /* Evenly space icons */
  gap: 5px; /* Reduced gap */
}

.network-footer .btn {
  width: 36px; /* Fixed width for icon buttons */
  height: 36px; /* Fixed height for icon buttons */
  padding: 0; /* Remove padding */
  border-radius: 50%; /* Make circular */
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-footer .btn i {
  font-size: 14px; /* Smaller icon */
  margin: 0; /* Remove margin */
}

.btn-icon-tooltip {
  position: relative;
}

.btn-icon-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 10;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 40px 0;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius);
  background-color: white;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid #ddd;
  font-size: 14px;
}

.page-link:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
}

.page-item.active .page-link {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
  background-color: #f8f9fa;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.empty-description {
  color: var(--text-light);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .network-stats {
    grid-template-columns: 1fr;
  }
  
  .network-footer {
    flex-direction: row;
  }
  
  .page-header {
    padding: 20px 0;
  }
  
  .page-title {
    font-size: 24px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }