/* whale-card.css - 고래 카드 전용 스타일 */

/* 탭 버튼과 추천카드 사이 간격 조정 */
.tabs + .recommendation-card-container {
  margin-top: -10px;
}

.recommendation-card-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0px auto 10px auto;
  perspective: 1000px; /* 3D 뒤집기 효과 */
}

.recommendation-card {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
  color: white;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.recommendation-card:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.recommendation-card.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.card-image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  color: #ffffff;
}

.card-location {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 1;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-location svg {
  color: #ffd700;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.card-location span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 3px 12px rgba(255, 215, 0, 0.4);
  margin-bottom: 10px;
  margin-top: auto;
  text-align: center;
  padding: 8px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.price-label {
  font-size: 12px;
  font-weight: normal;
  color: #ffffff;
  opacity: 0.8;
}

.card-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 8px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-align: center;
  min-width: 50px;
}

.card-stat-item span:first-child {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.card-stat-item span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 추가 통계 정보 스타일링 */
.card-additional-stats {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

/* 고래 뒷면 스타일 */
.whale-back {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 64px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 호버 효과 */
.recommendation-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
}

.recommendation-card:hover .card-stats {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.recommendation-card:hover .card-additional-stats {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.recommendation-card:hover .card-price {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  text-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .tabs + .recommendation-card-container {
    margin-top: -15px;
  }
  
  .recommendation-card-container {
    max-width: 95%;
    margin: 0px auto 8px auto;
  }
  
  .recommendation-card {
    min-height: 280px;
    padding: 15px;
  }
  
  .card-image {
    height: 110px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  
  .card-title {
    font-size: 17px;
    margin-bottom: 6px;
  }
  
  .card-price {
    font-size: 18px;
    padding: 6px;
    margin-bottom: 8px;
  }
  
  .card-stats {
    padding: 6px 4px;
    margin-top: 6px;
  }
  
  .card-stat-item {
    min-width: 40px;
    gap: 2px;
  }
  
  .card-stat-item span:first-child {
    font-size: 12px;
  }
  
  .card-stat-item span:last-child {
    font-size: 9px;
  }
  
  .card-additional-stats {
    font-size: 10px;
    padding: 5px 6px;
    margin-top: 6px;
  }
}
