/* ============================================
   SWIPEABLE CARDS - Premium Trading Card Design
   ============================================ */

/* Card Container - Fixed sizing matching Actions view */
.swipeable-card {
  position: relative;
  /* Width and height come from cards-unified.css canonical sizes */
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  flex-shrink: 0;
}

.swipeable-card.dragging {
  cursor: grabbing;
}

/* Card Inner */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: transparent; /* Transparent by default - priority gradients applied elsewhere */
  border-radius: 20px;
  box-shadow: none; /* No shadow - card should be solid */
  overflow: hidden;
  color: #2C3E50; /* Default dark grey text for white background */
}

/* Legacy priority colors removed, now inherited from cards-unified.css */

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Base category/priority badge resets */
.category-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 12px;
}

.priority-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 12px;
}

/* Savings Display */
.savings-display {
  text-align: right;
  margin-bottom: 16px;
}

.savings-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
/* Card Divider */
.card-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1) 10%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.1) 90%,
    transparent
  );
  margin: 12px 0;
}

/* Card Title */
.card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.3;
}

/* Description Section */
.card-description-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-description {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.time-to-complete {
  text-align: right;
}

.time-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.0px;
  margin-bottom: 2px;
}

.time-value {
  font-size: 14px;
  font-weight: 700;
}

.card-spacer {
  flex: 1;
}

/* Swipe Instructions */
.swipe-instructions {
  margin-top: auto;
}

.swipe-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.0px;
  color: var(--brokerly-text-secondary);
  text-align: center;
  margin: 12px 0;
}

.swipe-indicators {
  display: flex;
  justify-content: space-around;
  gap: 60px;
}

.swipe-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.indicator-icon {
  transition: transform 0.2s ease;
}

.indicator-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.0px;
  transition: opacity 0.2s ease;
}

.swipe-indicator.reject .indicator-label {
  color: #FF6F61;
}

.swipe-indicator.accept .indicator-label {
  color: #50C878;
}

/* Card Stack Effect */
.card-stack {
  position: relative;
  width: 100%;
  min-height: 500px;
}

.swipeable-card.stacked {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.swipeable-card.stacked-1 {
  z-index: 2;
  transform: translateX(-50%) translateY(18px) scale(0.92);
  opacity: 0.85;
}

.swipeable-card.stacked-2 {
  z-index: 1;
  transform: translateX(-50%) translateY(36px) scale(0.84);
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 768px) {
  /* Card size comes from cards-unified.css - no override needed */

  .card-inner {
    padding: 20px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 14px;
  }
}

