/* Developer Card Component Styles - Reusable across pages */

/* Dev Card Base */
.dev-card {
  background-color: #0e0e0e;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff14;
  transition: border-color 0.2s ease;
}

.dev-card.silver-member-card {
  background: radial-gradient(ellipse at top, rgba(192, 192, 192, 0.12) 0%, rgba(192, 192, 192, 0.05) 40%, #0e0e0e 70%);
  background-color: #0e0e0e;
  border-color: rgba(192, 192, 192, 0.2);
}

.dev-card.gold-member-card {
  background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.06) 40%, #0e0e0e 70%);
  background-color: #0e0e0e;
  border-color: rgba(255, 215, 0, 0.25);
}

.dev-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Card Header */
.dev-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  padding-bottom: 0;
  margin-bottom: 12px;
}

/* Rate in Header */
.dev-card-header .dev-card-rate {
  margin-left: auto;
  margin-bottom: 0;
  padding: 0;
  width: auto;
}

/* Avatar */
.dev-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.dev-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dev-card-avatar .online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #55eaae;
  border-radius: 50%;
  border: 2px solid #0e0e0e;
}

/* Info Section */
.dev-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}

.dev-card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: space-between;
}

.dev-card-name-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-card-name .rate-inline {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #55eaae;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.dev-card-name .rate-inline span {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff50;
}

.dev-card-name .rate-inline .robux-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dev-card-name .verified-badge {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
}

.dev-card-role {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--accent-color);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: var(--accent-15);
  padding: 3px 8px;
  border-radius: 20px;
}

.dev-card-role svg {
  width: 12px;
  height: 12px;
}

/* Badges */
.dev-card-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 16px;
  min-height: 27px;
}

.dev-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dev-badge svg {
  width: 12px;
  height: 12px;
}

.dev-badge.top-rated {
  background-color: #eae05520;
  color: #eae055;
}

.dev-badge.fast-delivery {
  background-color: #55eaae20;
  color: #55eaae;
}

.dev-badge.rising-star {
  background-color: #ea55bd20;
  color: #ea55bd;
}

.dev-badge.advanced {
  background-color: #ea955520;
  color: #ea9555;
}

.dev-badge.silver-member {
  background-color: #c0c0c020;
  color: #c0c0c0;
}

.dev-badge.gold-member {
  background-color: #ffd70020;
  color: #ffd700;
}

/* Rating */
.dev-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
  padding: 0 16px;
}

.dev-card-rating .stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dev-card-rating .stars svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-color);
  display: block;
}

/* Empty star styling */
.dev-card-rating .stars svg.empty-star {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2;
}

.dev-card-rating .rating-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
}

.dev-card-rating .review-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #ffffff50;
  line-height: 1;
}

/* Stats */
.dev-card-stats {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.dev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.dev-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.dev-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #ffffff50;
}

/* Portfolio Carousel */
.dev-card-portfolio {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  order: -1;
}

.dev-portfolio-carousel {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  position: relative;
}

.dev-portfolio-carousel.single-image {
  touch-action: auto;
}

.dev-portfolio-carousel::-webkit-scrollbar {
  display: none;
}

.dev-portfolio-track {
  display: flex;
  gap: 0;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.dev-portfolio-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
}

.dev-portfolio-nav.prev {
  left: 0;
}

.dev-portfolio-nav.next {
  right: 0;
}

.dev-portfolio-nav:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.dev-portfolio-item {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  aspect-ratio: 2.5/1;
  border-radius: 0;
  overflow: hidden;
  background-color: #1a1a1a;
}

.dev-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


.dev-portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

/* Hide dots container when only 1 image */
.dev-portfolio-dots.single-image {
  display: none;
}

.dev-portfolio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff30;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dev-portfolio-dot.active {
  background-color: var(--accent-color);
}

/* Rate */
.dev-card-rate {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.dev-card-rate .rate-value {
  margin-left: auto;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #55eaae;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dev-card-rate .rate-value.robux {
  color: #55eaae;
}

.dev-card-rate .rate-value.robux img,
.dev-card-rate .rate-value.robux svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dev-card-rate .robux-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.dev-card-rate .rate-value span {
  font-size: 11px;
  font-weight: 400;
  color: #ffffff50;
}

/* Actions */
.dev-card-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 0 16px 16px 16px;
}

.dev-card-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.dev-card-btn.primary {
  background-color: var(--accent-color);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dev-card-btn.primary:hover {
  background-color: var(--accent-hover);
}

.dev-card-btn.secondary {
  background-color: #ffffff10;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dev-card-btn.secondary:hover {
  background-color: #ffffff20;
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
  .dev-card-header {
    padding: 14px;
    padding-bottom: 0;
    gap: 10px;
  }

  .dev-card-avatar {
    width: 48px;
    height: 48px;
  }

  .dev-card-avatar .online-indicator {
    width: 10px;
    height: 10px;
  }

  .dev-card-name {
    font-size: 13px;
  }

  .dev-card-badges {
    padding: 0 14px;
    gap: 4px;
  }

  .dev-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .dev-card-rating {
    padding: 0 14px;
  }

  .dev-card-rating .stars svg {
    width: 12px;
    height: 12px;
  }

  .dev-card-rating .rating-text {
    font-size: 11px;
  }

  .dev-card-rating .review-count {
    font-size: 10px;
  }

  .dev-card-stats {
    gap: 8px;
    padding: 10px 14px;
  }

  .dev-stat-value {
    font-size: 13px;
  }

  .dev-stat-label {
    font-size: 9px;
  }

  .dev-card-rate {
    padding: 0 14px;
  }

  .dev-card-rate .rate-value {
    font-size: 14px;
  }

  .dev-card-rate .rate-value span {
    font-size: 10px;
  }

  .dev-card-actions {
    padding: 0 14px 14px 14px;
    gap: 6px;
  }

  .dev-card-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .dev-card-btn svg {
    width: 12px;
    height: 12px;
  }

  .dev-card-portfolio {
    margin-bottom: 8px;
  }

  .dev-portfolio-dots {
    gap: 4px;
  }

  .dev-portfolio-dot {
    width: 5px;
    height: 5px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .dev-portfolio-item {
    aspect-ratio: 16/6;
  }
}

/* Responsive - Small Mobile - Polished Card Layout */
@media (max-width: 480px) {
  .dev-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
  }

  /* Portfolio as hero image at top */
  .dev-card-portfolio {
    order: -10;
    margin-bottom: 0;
    border-radius: 0;
  }

  .dev-portfolio-item {
    aspect-ratio: 10/2.5;
    border-radius: 0;
  }

  .dev-portfolio-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .dev-portfolio-dot {
    width: 6px;
    height: 6px;
  }

  .dev-portfolio-dot.active {
    width: 16px;
    border-radius: 3px;
  }

  /* Header row with avatar, info, and rate */
  .dev-card-header {
    order: -9;
    display: flex;
    align-items: center;
    padding: 16px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .dev-card-avatar {
    width: 48px;
    height: 48px;
    border: 2px solid var(--accent-15);
    flex-shrink: 0;
  }

  .dev-card-avatar .online-indicator {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .dev-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .dev-card-name {
    font-size: 15px;
    max-width: 100%;
  }

  .dev-card-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .dev-card-name .rate-inline {
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .dev-card-name .rate-inline span {
    font-size: 13px;
    font-weight: 500;
  }

  .dev-card-name .rate-inline .robux-icon {
    width: 18px;
    height: 18px;
  }

  .dev-card-role {
    font-size: 11px;
    padding: 4px 10px;
    margin-top: 6px;
    width: fit-content;
  }

  /* Badges row */
  .dev-card-badges {
    order: -7;
    padding: 0 16px;
    margin-top: 0;
    margin-bottom: 12px;
    gap: 6px;
  }

  .dev-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
  }

  .dev-badge svg {
    width: 11px;
    height: 11px;
  }

  /* Rating row */
  .dev-card-rating {
    order: -6;
    padding: 0 16px;
    margin-bottom: 12px;
    justify-content: flex-start;
    gap: 8px;
  }

  .dev-card-rating .stars {
    gap: 2px;
  }

  .dev-card-rating .stars svg {
    width: 14px;
    height: 14px;
  }

  .dev-card-rating .rating-text {
    font-size: 13px;
    font-weight: 700;
  }

  .dev-card-rating .review-count {
    font-size: 12px;
  }

  /* Stats row - compact with dividers */
  .dev-card-stats {
    order: -5;
    margin: 0 16px 16px 16px;
    padding: 14px 0;
    gap: 0;
    background: transparent;
    border-radius: 0;
    border: none;
  }

  .dev-stat {
    position: relative;
    padding: 0 12px;
  }

  .dev-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
  }

  .dev-stat-value {
    font-size: 15px;
    font-weight: 700;
  }

  .dev-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
  }

  /* Actions - full width buttons */
  .dev-card-actions {
    order: -4;
    padding: 0 16px 16px 16px;
    gap: 10px;
  }

  .dev-card-btn {
    padding: 14px 20px;
    font-size: 13px;
    border-radius: 10px;
    gap: 8px;
  }

  .dev-card-btn svg {
    width: 16px;
    height: 16px;
  }

  .dev-card-btn.primary {
    flex: 1.5;
  }

  .dev-card-btn.secondary {
    flex: 1;
  }
}
