/* Enhanced Affiliate Page Styles */
.affiliate-page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a24 100%);
    position: relative;
    overflow: hidden;
}

.affiliate-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.affiliate-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.affiliate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 24px;
}

.affiliate-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.affiliate-subtitle {
    font-size: 1.25rem;
    color: #a1a1aa;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.affiliate-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-bar {
    padding: 30px 0;
    background: #111118;
    border-bottom: 1px solid #27272a;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #a1a1aa;
    font-weight: 500;
    min-width: 70px;
}

.filter-dropdown {
    padding: 10px 16px;
    background: #15151f;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    min-width: 160px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-dropdown:focus {
    border-color: #00d4ff;
}

.reset-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #a1a1aa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.sites-section {
    padding: 60px 0;
    background: #0a0a0f;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-card {
    background: #15151f;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 18px;
}

.badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge.featured {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: white;
}

.badge.verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge.code {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.site-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.site-description {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 42px;
}

.site-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #00d4ff;
    font-weight: 500;
}

.feature-tag i {
    font-size: 10px;
}

.promo-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.promo-label {
    font-size: 11px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 500;
}

.promo-code {
    background: #1a1a24;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    user-select: all;
}

.promo-code:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-1px);
}

.promo-code::after {
    content: 'Click to copy';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.promo-code:hover::after {
    opacity: 1;
}

.visit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Gradient backgrounds for fallback logos */
.gradient-1 { background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); }
.gradient-2 { background: linear-gradient(135deg, #7c3aed 0%, #ff6b35 100%); }
.gradient-3 { background: linear-gradient(135deg, #ff6b35 0%, #00d4ff 100%); }
.gradient-4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.gradient-5 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.gradient-6 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.gradient-7 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.gradient-8 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.gradient-9 { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.gradient-10 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.gradient-11 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.gradient-12 { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.gradient-13 { background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%); }
.gradient-14 { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); }

/* Responsive Design */
@media (max-width: 1024px) {
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .affiliate-stats {
        gap: 40px;
    }
    
    .affiliate-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .affiliate-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .affiliate-title {
        font-size: 2rem;
    }
    
    .affiliate-page-header {
        padding: 100px 0 40px;
    }
/* Enhanced Mobile Optimizations for Affiliate Page */
@media (max-width: 768px) {
  /* Better affiliate header */
  .affiliate-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .affiliate-subtitle {
    font-size: 1.125rem;
    padding: 0 1rem;
  }
  
  /* Improved stats layout */
  .affiliate-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Better filter controls */
  .filter-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 0 1rem;
  }
  
  .filter-dropdown {
    width: 100%;
    min-width: auto;
    font-size: 1rem;
    padding: 12px 16px;
  }
  
  /* Optimized site cards */
  .sites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .site-card {
    padding: 1.5rem;
  }
  
  /* Better promo codes */
  .promo-code {
    font-size: 1rem;
    padding: 12px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved visit buttons */
  .visit-btn {
    min-height: 48px;
    font-size: 1rem;
    padding: 14px 20px;
  }
}

/* Additional small screen optimizations */
@media (max-width: 480px) {
  .affiliate-page-header {
    padding: 80px 0 40px;
  }
  
  .site-card {
    padding: 1rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .site-features {
    justify-content: center;
  }
}
}