/* ========================================
   CARDS STYLES
   Restaurant Website Generator
   ======================================== */

/* Card Animations */
@keyframes slideIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  100% {
    opacity: 1;
  }
}

/* Card Container */
.cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2em;
  padding: 2em;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Card */
.card {
  background: #fff;
  border-radius: 15px;
  width: 300px;
  min-height: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: slideIn 0.8s forwards;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

/* Card Content */
.card-content {
  padding: 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.5em;
  margin-bottom: 1em;
  text-align: center;
  color: #333;
  text-transform: capitalize;
}

/* Features List */
.features {
  padding: 0;
  list-style: none;
  margin-bottom: 1.5em;
  flex: 1;
}

.features li {
  margin-bottom: 0.8em;
  padding-left: 1.5em;
  position: relative;
  line-height: 1.4;
}

.features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2337ff;
  font-weight: bold;
  font-size: 1.2em;
}

/* Order Button in Card */
.card .order-button {
  display: block;
  margin: auto auto 0;
  text-align: center;
  background: #ffe102;
  color: #1a1a1a;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  align-self: center;
  transition: all 0.3s ease;
  min-width: 140px;
  border: 2px solid #ffe102;
}

.card .order-button:hover {
  background: #e7cda0;
  border-color: #e7cda0;
  transform: translateY(-2px);
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .cards-container {
    max-width: 800px;
    gap: 1.5em;
    padding: 1.5em;
  }
  
  .card {
    width: 280px;
    min-height: 480px;
  }
  
  .card-image {
    height: 180px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 1em;
    max-width: 100%;
  }
  
  .card {
    width: 100%;
    max-width: 400px;
    min-height: 450px;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card-image {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .card {
    max-width: 350px;
    min-height: 420px;
  }
}

@media (max-width: 480px) {
  .cards-container {
    padding: 0.5em;
    gap: 1.5em;
  }
  
  .card {
    max-width: 300px;
    min-height: 400px;
    margin: 0 auto;
  }
  
  .card-content {
    padding: 1.2em;
  }
  
  .card h3 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }
  
  .card-image {
    height: 160px;
  }
  
  .features li {
    margin-bottom: 0.7em;
    font-size: 0.95em;
  }
  
  .card .order-button {
    padding: 0.7em 1.2em;
    font-size: 0.95em;
    min-width: 120px;
  }
}

/* Large Screen Styles */
@media (min-width: 1400px) {
  .cards-container {
    max-width: 1300px;
    gap: 2.5em;
  }
  
  .card {
    width: 320px;
    min-height: 520px;
  }
}

/* Landscape Tablet */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card {
    width: 300px;
  }
}

/* Very Small Screens */
@media (max-width: 320px) {
  .card {
    max-width: 280px;
    min-height: 380px;
  }
  
  .card-content {
    padding: 1em;
  }
  
  .features li {
    font-size: 0.9em;
  }
  
  .card .order-button {
    padding: 0.6em 1em;
    font-size: 0.9em;
    min-width: 110px;
  }
}