/* custom front CSS */



/* 限制標題行數 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 新版卡片樣式 - Uiverse 風格 */
.card {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 380px;
  background-color: white;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px;
}

.card:hover::after,
.card:hover::before {
  content: none;
}

.card .top-section {
  height: 220px;
  border-radius: 15px 15px 0 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(45deg, rgb(4, 159, 187) 0%, rgb(80, 246, 255) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card .top-section .border {
  border-bottom-right-radius: 10px;
  height: 30px;
  width: 130px;
  background: #9CADBA;
  position: absolute;
  transform: skew(-40deg);
  box-shadow: -10px -10px 0 0 #9CADBA;
  z-index: 1;
  left: -10px;
  top: 0;
}



.card .top-section::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  background: rgba(255, 255, 255, 0);
  height: 15px;
  width: 15px;
  border-top-left-radius: 15px;
  box-shadow: -5px -5px 0 2px #9CADBA;
}

.card .top-section .icons {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 30px;
  display: flex;
  justify-content: flex-end;
}

.card .release-date {
  position: absolute;
  top: 0px;
  left: 10px;
  padding: 4px 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 10;
}

.card .social-media {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  display: flex;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  z-index: 2;
}

.card .social-media .social-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card .social-media .social-icon .social-svg {
  width: 100%;
  height: 100%;
  fill: white;
  transition: all 0.3s ease;
}

.card .social-media .social-icon:hover .social-svg {
  fill: #e0e0e0;
}

.card .bottom-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0 0 20px 20px;
}

.card .bottom-section .title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  height: 1.4em;
  line-height: 1.4;
}

.card .bottom-section .row {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.card .bottom-section .row .item {
  flex: 30%;
  text-align: center;
  padding: 5px;
  color: rgba(0, 0, 0, 0.5);
}

.card .bottom-section .row .item .big-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.card .bottom-section .row .item .regular-text {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
}

.card .bottom-section .row .item:nth-child(2) {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* 響應式網格佈局 */
.kuji-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.5rem; 
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 0; 
}

@media (min-width: 992px) {
  .kuji-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .kuji-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .kuji-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1rem; 
    padding: 0.5rem 0; 
  }
  
  .card {
    max-width: 100%;
    height: 350px;
  }
  
  .card .top-section {
    height: 180px;
  }
}
