/* resources/css/badges.css */

:root {
  --color-primary: #4a7c59;
  --color-primary-dark: #3a6347;
  --color-secondary: #c9a961;
  --color-bg-light: #f8f5f0;
  --color-text-dark: #2d3748;
  --color-text-light: #f9f7f4;
}

/* Badges page header */
.badges-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(74, 124, 89, 0.3);
}

.badges-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badges-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Badge cards */
.badge-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.badge-card.earned {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-light) 100%);
}

.badge-card.available {
  opacity: 0.85;
  background: #f9fafb;
  border-left-style: dashed;
}

.badge-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.badge-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.badge-description {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.badge-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.badge-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.badge-source {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-source-admin {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-source-system {
  background: #dcfce7;
  color: #15803d;
}

.badge-threshold {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Progress section */
.progress-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.progress-header {
  background: var(--color-bg-light);
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
}

.progress-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.progress-card {
  padding: 1.5rem;
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-item-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-item-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.progress-item-title {
  font-weight: 600;
  color: var(--color-text-dark);
}

.progress-bar-container {
  width: 100%;
  background: #e5e7eb;
  border-radius: 9999px;
  height: 1.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: width 0.5s ease;
}

.progress-bar-comments {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.progress-bar-blogs {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.progress-bar-donations {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.progress-item-details {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

.progress-item-details .font-medium {
  font-weight: 600;
  color: var(--color-text-dark);
}

.progress-item-details .text-success {
  color: #16a34a;
  font-weight: 600;
}

/* Section cards */
.section-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.section-card-header {
  background: var(--color-bg-light);
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
}

.section-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.section-card-body {
  padding: 1.5rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
  font-size: 1.125rem;
}

/* Responsive grid */
.badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .progress-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
