/**
 * Info Card Table Component
 * Modern card layout for memberships, packages, and offers
 * Based on Kunco pricing style but with club-friendly design
 */

/* ============================================
   INFO TABLE CONTAINER
   ============================================ */

.info-table {
  padding: 0;
  background: #ffffff;
}

.info-table .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.info-table__header {
  margin: 0 auto 3rem;
  text-align: center;
}

.info-table__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1.2;
}

/* ============================================
   CARDS GRID
   ============================================ */

.info-table__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 2 columns on tablets */
@media (min-width: 768px) {
  .info-table__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* 3 columns on desktop */
@media (min-width: 1024px) {
  .info-table__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Handle Drupal wrappers */
.info-table__cards > * {
  display: contents;
}

/* ============================================
   INFO CARD
   ============================================ */

.info-card {
  height: 100%;
  display: flex;
}

.info-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
.info-card__inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 86, 160, 0.12);
  border-color: var(--color-primary);
}

/* Subtle top accent line */
.info-card__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #00a0e3 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.info-card__inner:hover::before {
  transform: scaleX(1);
}

/* ============================================
   CARD HEADER
   ============================================ */

.info-card__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.info-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.info-card__price {
  font-family: var(--font-family-base);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.info-card__features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.info-card__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.6;
}

.info-card__feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #10b981;
  margin-top: 0.125rem;
}

/* ============================================
   CTA BUTTON - now uses standard .btn classes
   ============================================ */

.info-card__footer {
  margin-top: auto;
}

.info-card__footer .btn {
  width: 100%;
}

/* ============================================
   FEATURED/HIGHLIGHTED CARD
   ============================================ */

/* Optional: Add a class for featured cards */
.info-card--featured .info-card__inner {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 10px 30px rgba(0, 86, 160, 0.15);
}

.info-card--featured .info-card__inner::before {
  transform: scaleX(1);
  height: 6px;
}

.info-card--featured .info-card__footer .btn {
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (min-width: 768px) {
  .info-table__header {
    margin-bottom: 4rem;
  }
}

@media (min-width: 1200px) {
  
  .info-card__inner {
    padding: 3rem 2.5rem;
  }
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .info-table__header {
    margin-bottom: 2rem;
  }
  
  .info-table__title {
    font-size: 1.5rem;
  }
  
  .info-card__inner {
    padding: 2rem 1.5rem;
  }
  
  .info-card__title {
    font-size: 1.25rem;
  }
  
  .info-card__price {
    font-size: 1.75rem;
  }
  
  .info-card__feature-item {
    font-size: 0.875rem;
  }
}

/* ============================================
   ANIMATION
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

/* Stagger animation for multiple cards */
.info-card:nth-child(1) {
  animation-delay: 0.1s;
}

.info-card:nth-child(2) {
  animation-delay: 0.2s;
}

.info-card:nth-child(3) {
  animation-delay: 0.3s;
}

.info-card:nth-child(4) {
  animation-delay: 0.4s;
}

.info-card:nth-child(5) {
  animation-delay: 0.5s;
}

.info-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles are already handled by .btn */

.info-card__inner:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 160, 0.1);
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .info-card {
    animation: none;
  }
  
  .info-card__inner:hover {
    transform: none;
  }
  
  /* Hover transform handled by .btn */
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .info-table {
    page-break-inside: avoid;
  }
  
  .info-table__cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .info-card__inner {
    border: 2px solid #e5e7eb;
    box-shadow: none;
  }
  
  .info-card__inner:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Button print styles handled by .btn */
}