/* Page-specific styles for Deck View!! */
/* Ensures these styles only apply when this class is on the body */
body.deck-view-page {
    background-color: #EFF6FF;
    /* Tailwind has this light blue */
}

/* Styles for individual deck items and their hover interactions */
.deck-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    /* Needed for absolute positioning of actions */
    overflow: hidden;
    /* Ensures actions don't spill out before reveal */
}

.deck-item .deck-actions {
    opacity: 0;
    visibility: hidden;
    /* Initially hidden and not focusable */
    transform: translateY(10px);
    /* Start slightly lower for a subtle slide-up */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    /* Semi-transparent white */
    backdrop-filter: blur(4px);
    /* Frosted glass effect */
    padding: 0.75rem;
    /* p-3 */
    border-top: 1px solid #e5e7eb;
    /* border-gray-200 */
    display: flex;
    justify-content: space-around;
    /* Evenly space action buttons */
}

.deck-item:hover {
    transform: translateY(-5px);
    /* Slight lift on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.08);
    /* Enhanced shadow */
}

.deck-item:hover .deck-actions {
    opacity: 1;
    visibility: visible;
    /* Make visible and focusable */
    transform: translateY(0);
    /* Slide to original position */
}

.deck-actions button {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    /* medium */
    padding: 0.25rem 0.5rem;
    /* py-1 px-2 */
    border-radius: 0.375rem;
    /* rounded-md */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.deck-actions .edit-btn {
    color: #7c3aed;
    /* purple-600 */
}

/* Updated to match mockup better */
.deck-actions .edit-btn:hover {
    background-color: #ede9fe;
    /* purple-50 */
}

.deck-actions .ai-btn {
    color: #16a34a;
    /* green-600 */
}

.deck-actions .ai-btn:hover {
    background-color: #f0fdf4;
    /* green-50 */
}

.deck-actions .more-btn {
    color: #6b7280;
    /* gray-500 */
}

.deck-actions .more-btn:hover {
    background-color: #f3f4f6;
    /* gray-100 */
}

/* Style for the "Add New Deck" placeholder card */
.add-deck-placeholder {
    border-style: dashed;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.add-deck-placeholder:hover {
    border-color: #8B5CF6;
    /* purple-500 */
    background-color: #F5F3FF;
    /* purple-50 */
}