/* คอนเทนเนอร์รายการเด็คในหน้าคอลเล็คชั่น */
.collection-card-item {
    position: relative;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 12px;
    background-size: cover;
    background-position: center 20%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.collection-card-item:hover {
    transform: scale(1.02);
}

/* เลเยอร์สีขาวจางๆ ทับรูปปก */
.deck-overlay {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* สีขาวจางๆ */
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: background 0.3s;
}

.deck-overlay:hover {
    background: rgba(255, 255, 255, 0.5); /* สว่างขึ้นเมื่อชี้ */
}

.deck-info h4 {
    margin: 0;
    color: #07357D;
    font-size: 20px;
    text-shadow: 1px 1px 0px white;
}

.deck-info span {
    color: #444;
    font-size: 14px;
}

/* --- สไตล์เฉพาะสำหรับปุ่มลบเด็คในหน้า Collection --- */
/* เจาะจงไปที่ปุ่มลบในหน้า Collection เท่านั้น */
.collection-card-item .delete-deck-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background-color: rgba(255, 71, 87, 0.9) !important; /* สีแดงโปร่งแสงเล็กน้อย */
    color: white !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
}

/* เอฟเฟกต์เมื่อ Hover */
.collection-card-item .delete-deck-btn:hover {
    background-color: #ff4757 !important; /* แดงสด */
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5) !important;
}

/* ป้องกันปุ่มขยายตัวตาม Font-family Global */
.collection-card-item .delete-deck-btn {
    font-family: Arial, sans-serif !important; 
}
/* สไตล์พิเศษสำหรับปุ่มสร้างเด็คใหม่ */
.add-new-deck-card {
    transition: all 0.3s ease !important;
    border: 2px dashed #2ecc71 !important;
}

.add-new-deck-card:hover {
    transform: scale(1.03);
    background-color: #e8f8f0 !important;
    border-style: solid !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.2);
}

.add-new-deck-card .deck-overlay {
    background: rgba(255, 255, 255, 0.5) !important;
}

.add-new-deck-card:hover .deck-overlay {
    background: rgba(255, 255, 255, 0.2) !important;
}