/* ============================================
   Icon Card Component
   Cards with icons and hover effects
   ============================================ */

/* Base icon card */
.icon-card {
  padding: 1.5rem; /* p-4 equivalent */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem; /* rounded-3 equivalent */
  transition: all 0.3s ease;
  height: 100%;
}

.icon-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Icon card layout */
.icon-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Icon wrapper */
.icon-wrapper {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
}

/* Icon color variants */
.icon-wrapper.icon-yellow {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.icon-wrapper.icon-cyan {
  background: rgba(13, 202, 240, 0.2);
  color: #0dcaf0;
}

.icon-wrapper.icon-green {
  background: rgba(25, 135, 84, 0.2);
  color: #198754;
}

.icon-wrapper.icon-purple {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

.icon-wrapper.icon-red {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.icon-wrapper.icon-blue {
  background: rgba(13, 110, 253, 0.2);
  color: #0d6efd;
}

/* Icon text content */
.icon-text {
  flex: 1;
}

.icon-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.icon-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5); /* text-white-50 */
  line-height: 1.5;
  margin: 0;
}

/* Icon card grid - responsive grid layout */
.icon-card-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Column variations */
.icon-card-grid.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

.icon-card-grid.columns-2 .icon-card {
  max-width: 100%;
}

.icon-card-grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.icon-card-grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Legacy icon-grid support */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Compact icon card */
.icon-card-compact {
  padding: 1.5rem;
}

.icon-card-compact .icon-wrapper {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  border-radius: 10px;
}

.icon-card-compact .icon-title {
  font-size: 1.1rem;
}

.icon-card-compact .icon-description {
  font-size: 0.875rem;
}

/* Icon card with CTA */
.icon-action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-action-link {
  color: #0dcaf0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.icon-action-link:hover {
  gap: 0.75rem;
  color: #31d2f2;
}

/* Icon list variant */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-list-item:last-child {
  border-bottom: none;
}

.icon-list-icon {
  color: #22c55e;
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  /* Make all grid columns stack on tablets and below */
  .icon-card-grid.columns-2,
  .icon-card-grid.columns-3,
  .icon-card-grid.columns-4 {
    grid-template-columns: 1fr;
  }
  
  .icon-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .icon-card {
    padding: 1.5rem;
  }

  .icon-card-content {
    flex-direction: column;
  }

  .icon-title {
    font-size: 1.125rem;
  }
}