/* Code Dashboard Styles */

#code-dashboard {
  padding: 60px 0;
  background-color: var(--background-color);
}

.dash-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}


.dash-card.highlighted {
  border-color: rgba(var(--accent-color-rgb), 0.3);
  background: rgba(var(--accent-color-rgb), 0.05);
}

.dash-icon {
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.dash-icon i {
  font-size: 32px;
  color: var(--accent-color);
}

.dash-card:hover .dash-icon {
  background: var(--accent-color);
}

.dash-card:hover .dash-icon i {
  color: var(--contrast-color);
}

.dash-content {
  z-index: 1;
  width: 100%;
}

.dash-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.dash-content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.dash-tags .badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.dash-btn i {
  font-size: 18px;
}

.dash-btn:hover {
  gap: 15px;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .dash-card {
    flex-direction: column;
    padding: 30px;
  }
  
  .dash-icon {
    margin-right: 0;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
  }
  
  .dash-icon i {
    font-size: 28px;
  }
  
  .dash-content h3 {
    font-size: 20px;
  }
}
/* Full-card link */
.dash-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.dash-card-link:hover .dash-card {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dash-card-link:hover .dash-card::before {
  opacity: 0.05;
}

.dash-card-link:hover .dash-icon {
  background: var(--accent-color);
}

.dash-card-link:hover .dash-icon i {
  color: var(--contrast-color);
}
