/* ==========================================================================
   CardSwap — Ported from React Bits (JS + CSS variant)
   ========================================================================== */

.card-swap-container {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 900px;
  overflow: visible;
}

.card-swap-container .card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0f172a;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  cursor: pointer;
}

.card__inner {
  width: 100%;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.card__desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 768px) {
  .card-swap-container {
    transform: scale(0.75) translate(25%, 25%);
  }
}

@media (max-width: 480px) {
  .card-swap-container {
    transform: scale(0.55) translate(25%, 25%);
  }
}

/* ==========================================================================
   Objectives CardSwap Overrides
   ========================================================================== */

.objectives-desktop-swap {
  width: 320px;
  height: 400px;
  margin: 0 auto;
}

.objectives-card {
  width: 320px;
  height: 400px;
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.objectives-card .card__inner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  padding: 28px;
  gap: 16px;
}

.objectives-card .card__title {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
}

.objectives-card .card__desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.card-icon-wrapper i {
  font-size: 1.1rem;
}

/* Mobile fallback styling */
@media (max-width: 768px) {
  .objectives-mobile-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
  }
  
  .objectives-mobile-card .card-icon-wrapper {
    margin-bottom: 12px;
  }
  
  .objectives-mobile-card h3 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
  }
  
  .objectives-mobile-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
  }
}
