/* My Account - My Designs Page */

.aiwid-my-designs {
    padding: 20px 0;
}

.aiwid-my-designs h2 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.aiwid-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.aiwid-design-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.aiwid-design-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aiwid-design-preview {
    position: relative;
    width: 100%;
    padding-top: 125%;
    /* 4:5 aspect ratio */
    background: #f5f5f5;
    overflow: hidden;
}

.aiwid-design-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aiwid-no-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.aiwid-no-preview .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
}

.aiwid-design-info {
    padding: 20px;
}

.aiwid-design-info h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.aiwid-design-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
}

.aiwid-status {
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: capitalize;
}

.aiwid-status-draft {
    background: #fff3cd;
    color: #856404;
}

.aiwid-status-ordered {
    background: #cfe2ff;
    color: #084298;
}

.aiwid-status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.aiwid-date {
    color: #666;
}

.aiwid-design-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aiwid-design-actions .button {
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .aiwid-designs-grid {
        grid-template-columns: 1fr;
    }
}