/* Top 3 人氣排行榜詳細卡片樣式 */

.top3-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.top3-detail-card {
    background: var(--serenity);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--beige);
}

.top3-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 卡片頭部 */
.card-header {
    background: linear-gradient(135deg, var(--warmth), #f0c640);
    padding: 20px;
    text-align: center;
    position: relative;
}

.crown-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.card-header h3 {
    color: var(--stability);
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: bold;
}

.rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--stability);
    color: var(--serenity);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 卡片圖片 */
.card-image {
    padding: 20px;
    text-align: center;
    background: var(--beige);
}

.card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 卡片內容 */
.card-content {
    padding: 25px;
}

.description p {
    color: var(--stability);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.features {
    margin: 20px 0;
    padding: 15px;
    background: var(--beige);
    border-radius: 10px;
}

.features h4 {
    color: var(--stability);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--warmth);
    padding-bottom: 5px;
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    color: var(--stability);
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.features li:before {
    content: "✦";
    color: var(--warmth);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 價格信息 */
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--relaxed), #7de5f0);
    border-radius: 10px;
}

.category {
    background: var(--stability);
    color: var(--serenity);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.prices {
    display: flex;
    gap: 10px;
}

.price {
    background: var(--serenity);
    color: var(--stability);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--warmth);
}

.price.large {
    border-color: var(--relaxed);
}

.calories {
    background: var(--warmth);
    color: var(--stability);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .top3-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .top3-detail-card {
        border-radius: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .crown-icon {
        width: 35px;
        height: 35px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .price-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .prices {
        justify-content: center;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top3-detail-card {
    animation: fadeInUp 0.6s ease-out;
}

.top3-detail-card:nth-child(2) {
    animation-delay: 0.2s;
}

.top3-detail-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* 互動效果 */
.top3-detail-card .card-image img {
    transition: transform 0.3s ease;
}

.top3-detail-card:hover .card-image img {
    transform: scale(1.05);
} 