/* Planning Cards CSS */

.planning-section {
  padding: 80px 0;
  background-color: var(--accent-blanc);
  overflow: hidden;
}

.planning-header {
  text-align: center;
  margin-bottom: 40px;
}

.planning-header h2 {
  color: var(--primary-main);
  margin-bottom: 10px;
}

.planning-cards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
  height: 400px;
}

.card-stack {
  position: relative;
  width: 800px;
  height: 400px;
  margin: 0 auto;
}

.display-card {
  position: absolute;
  display: flex;
  height: 180px;
  width: 400px;
  transform: skew(0, -8deg);
  user-select: none;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  border: 2px solid rgba(150, 176, 215, 0.3);
  background-color: rgba(251, 251, 247, 0.9);
  padding: 24px 30px;
  transition: all 0.7s ease;
  box-shadow: 0 10px 30px rgba(10, 70, 151, 0.1);
}

.display-card::after {
  content: '';
  position: absolute;
  top: -5%;
  right: -1px;
  height: 110%;
  width: 320px;
  background: linear-gradient(to left, var(--accent-blanc), transparent);
}

.display-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(251, 251, 247, 1);
  box-shadow: 0 15px 40px rgba(10, 70, 151, 0.2);
}

.display-card > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-container {
  position: relative;
  display: inline-block;
  border-radius: 9999px;
  padding: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container i {
  color: white;
  font-size: 20px;
}

.card-title {
  font-size: 24px;
  font-weight: 500;
}

.card-description {
  white-space: nowrap;
  font-size: 18px;
  margin: 16px 0;
  color: var(--text-primary);
}

.card-date {
  color: rgba(10, 70, 151, 0.6);
  font-size: 14px;
}

/* Stack positions - Properly centered and aligned */
.stack-card-1 {
  top: 20px;
  left: 50%;
  transform: translateX(-30%) skew(0, -8deg);
  transition: transform 0.7s ease;
  z-index: 3;
}

.stack-card-1:hover {
  transform: translateX(-30%) translateY(-10px) skew(0, -8deg);
}

.stack-card-2 {
  top: 80px;
  left: 50%;
  transform: translateX(-40%) skew(0, -8deg);
  transition: transform 0.7s ease;
  z-index: 2;
}

.stack-card-2:hover {
  transform: translateX(-40%) translateY(-10px) skew(0, -8deg);
}

.stack-card-3 {
  top: 140px;
  left: 50%;
  transform: translateX(-60%) skew(0, -8deg);
  transition: transform 0.7s ease;
  z-index: 1;
}

.stack-card-3:hover {
  transform: translateX(-60%) translateY(-10px) skew(0, -8deg);
}

/* Card colors from brand */
.card-primary .icon-container {
  background-color: var(--primary-main);
}

.card-primary .card-title {
  color: var(--primary-main);
}

.card-accent-rose .icon-container {
  background-color: var(--accent-rose);
}

.card-accent-rose .card-title {
  color: var(--accent-rose);
}

.card-accent-nude .icon-container {
  background-color: var(--accent-nude);
}

.card-accent-nude .card-title {
  color: var(--primary-main);
}

.card-accent-blush .icon-container {
  background-color: var(--accent-blush);
}

.card-accent-blush .card-title {
  color: var(--accent-blush);
}

.card-accent-pia .icon-container {
  background-color: var(--accent-pia);
}

.card-accent-pia .card-title {
  color: var(--accent-pia);
}

.card-primary-light .icon-container {
  background-color: var(--primary-light);
}

.card-primary-light .card-title {
  color: var(--primary-light);
}

.grayscale {
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}

.grayscale:hover {
  filter: grayscale(0%);
}

.card-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  outline: 1px solid rgba(150, 176, 215, 0.3);
  background-blend-mode: overlay;
  background-color: rgba(251, 251, 247, 0.5);
  left: 0;
  top: 0;
  transition: opacity 0.7s ease;
}

.display-card:hover .card-overlay {
  opacity: 0;
}

.planning-actions {
  text-align: center;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .card-stack {
    width: 600px;
  }
  
  .display-card {
    width: 360px;
    height: 160px;
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .card-stack {
    width: 400px;
  }
  
  .display-card {
    width: 320px;
    height: 160px;
    padding: 16px 20px;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-description {
    font-size: 16px;
  }
  
  .stack-card-2 {
    top: 70px;
  }
  
  .stack-card-3 {
    top: 120px;
  }
}
