﻿/* ===== CARDS SECTION ===== */
.cards-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.cards-section.alt-bg {
  background: var(--gradient-primary);
}

.cards-section.alt-bg .section-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cards-section.alt-bg .section-title,
.cards-section.alt-bg .section-subtitle {
  color: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 50px;
}

/* ===== FEATURE CARD ===== */
.feature-card {
  transition: 
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.18),
    0 40px 80px rgba(0, 0, 0, 0.22);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.35);
}

/* Card Image */
.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  transition: transform 0.6s ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.08) translateY(-4px);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px;
}

.card-tag {
  background: var(--primary-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Content */
.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: var(--transition-normal);
}

.feature-card:hover .card-content h3 {
  color: var(--primary-color);
}

.card-content p {
  font-size: 0.95rem;
  color: rgb(71, 45, 45);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.card-btn:hover {
  gap: 12px;
  color: var(--primary-dark);
}
.card-btn,
.card-footer button {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover .card-btn {
  transform: translateX(4px);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-stats i {
  color: #e91e63;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-12px) scale(1.015);
  }
}

/* ===== SIMPLE CARDS (Original Style Enhanced) ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.card {
  background: #fff;
  width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover img {
  transform: scale(1.08);
}

.card h3 {
  margin: 20px 20px 10px;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  padding: 0 20px 25px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CARD HOVER EFFECTS ===== */
.feature-card .card-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  opacity: 0;
}

.feature-card:hover .card-image::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 0px 50px;
  }

  .card-image {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    margin: 0px 50px;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .card-image {
    height: 200px;
  }

  .cards {
    gap: 30px;
  }

  .card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ===== SKELETON LOADER ===== */
.skeleton {
  background: #eee;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.pet-card.skeleton-card {
  pointer-events: none;
  /* Prevent clicks while loading */
}

.skeleton-image {
  height: 250px;
  width: 100%;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-title {
  height: 28px;
  width: 60%;
  border-radius: 4px;
  margin-bottom: 15px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton-footer {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
}

.skeleton-btn {
  height: 35px;
  width: 100px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}