/* ===== BONUSES PAGE STYLES ===== */
/* Specific styles for bonuses functionality */

/* ===== PAGE HEADER ===== */
.page-header {
  padding: var(--space-8) 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-6);
  color: var(--white);
}

.page-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  color: var(--white) !important;
}

.page-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: 0;
}

/* ===== BONUS CATEGORIES ===== */
.bonus-categories {
  margin-bottom: var(--space-8);
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-all);
  cursor: pointer;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-card.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.category-card.active h5,
.category-card.active p {
  color: var(--white) !important;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  transition: var(--transition-all);
}

.category-card.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
}

.category-icon i {
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
}

.category-card.active .category-icon i {
  color: var(--white);
}

.category-card h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.category-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.category-count {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.category-card.active .category-count {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.search-box .input-group-text {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.search-box .form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-left: none;
}

.search-box .form-control:focus {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: none;
}

.filter-controls .form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.filter-controls .form-select:focus {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* ===== ACTIVE FILTERS ===== */
.active-filters {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--white);
  margin-left: var(--space-2);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.filter-tag button:hover {
  opacity: 0.8;
}

/* ===== BONUS CARDS ===== */
.bonus-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: var(--transition-all);
  border-radius: var(--radius-xl);
}

.bonus-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.bonus-site-logo {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-2);
}

.bonus-info {
  flex: 1;
}

.bonus-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.bonus-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.bonus-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-relaxed);
}

.bonus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.meta-item i {
  color: var(--primary-color);
}

.bonus-amount {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--space-1);
}

.bonus-percentage {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.bonus-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ===== FEATURED BONUSES ===== */
.featured-bonus-item {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: var(--transition-all);
  cursor: pointer;
}

.featured-bonus-item:hover {
  background: var(--bg-tertiary);
}

.featured-bonus-logo {
  width: 40px;
  height: 30px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 2px;
}

.featured-bonus-item h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: 1.3;
}

.featured-bonus-amount {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-top: var(--space-1);
}

/* ===== BONUS STATISTICS ===== */
.bonus-stats .stat-item {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.bonus-stats .stat-item:last-child {
  border-bottom: none;
}

.bonus-stats .stat-item span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.bonus-stats .stat-item strong {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

/* ===== TIPS SECTION ===== */
.tips-list {
  padding: 0;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.tip-item i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== BONUS DETAIL MODAL ===== */
.bonus-detail-logo {
  width: 120px;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: var(--space-3);
  border: 1px solid var(--border-light);
}

.bonus-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.detail-item strong {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.detail-item span {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.bonus-terms {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.bonus-terms h6 {
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.terms-content {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* ===== BADGES ===== */
.badge-primary {
  background: var(--primary-color);
  color: var(--white);
}

.badge-success {
  background: var(--accent-success);
  color: var(--white);
}

.badge-warning {
  background: var(--accent-warning);
  color: var(--text-primary);
}

.badge-info {
  background: var(--accent-info);
  color: var(--white);
}

.badge-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.badge-light {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* ===== LOADING STATES ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== ANIMATIONS ===== */
.fade-out {
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-all);
}

.bonus-card {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .page-title {
    font-size: var(--font-size-3xl);
  }

  .category-card {
    padding: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-icon i {
    font-size: var(--font-size-xl);
  }

  .bonus-card .row {
    text-align: center;
  }

  .bonus-card .col-md-2,
  .bonus-card .col-md-6 {
    margin-bottom: var(--space-3);
  }

  .bonus-amount {
    font-size: var(--font-size-xl);
  }

  .filter-section .row > div {
    margin-bottom: var(--space-3);
  }

  .search-box {
    margin-bottom: var(--space-3);
  }

  .bonus-meta {
    justify-content: center;
    text-align: center;
  }

  .bonus-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .bonus-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .bonus-title {
    font-size: var(--font-size-base);
  }

  .bonus-site-logo {
    width: 60px;
    height: 45px;
  }

  .category-card h5 {
    font-size: var(--font-size-base);
  }

  .filter-section {
    padding: var(--space-3);
  }

  .featured-bonus-logo {
    width: 35px;
    height: 25px;
  }
}

/* ===== DARK THEME ENHANCEMENTS ===== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.card-header {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.card-title {
  color: var(--text-primary) !important;
  margin-bottom: 0;
}

.card-body {
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.form-control:focus {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.form-select:focus {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* ===== SCROLLBAR STYLING ===== */
.bonus-card {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.bonus-card::-webkit-scrollbar {
  width: 6px;
}

.bonus-card::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.bonus-card::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

.bonus-card::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
