/* scratchManuel Widget Styles */

.scratch-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scratch-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scratch-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.scratch-image {
    flex-shrink: 0;
    min-width: 80px;
}

.scratch-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.scratch-content {
    flex: 1;
    min-width: 0;
}

.scratch-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-word;
}

.scratch-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    word-break: break-word;
}

.scratch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #7d8fa3;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    white-space: nowrap;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
}

.category-tag a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-tag a:hover {
    color: #0052a3;
}

.age-group {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    white-space: nowrap;
}

.scratch-button-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.scratch-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: #ffffff;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.scratch-button:hover {
    background-color: #0066cc;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scratch-item {
        flex-direction: column;
        gap: 15px;
    }

    .scratch-image {
        width: 100%;
    }

    .scratch-image img {
        width: 100%;
        height: auto;
        max-width: 150px;
    }

    .scratch-button-wrapper {
        width: 100%;
    }

    .scratch-button {
        width: 100%;
        text-align: center;
    }

    .scratch-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scratch-item {
        padding: 15px;
        gap: 10px;
    }

    .scratch-title {
        font-size: 16px;
    }

    .scratch-description {
        font-size: 13px;
    }

    .scratch-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Elementor Editor Specific */
.elementor-widget-scratch_list .scratch-item {
    border: 1px dashed #cccccc;
}

.elementor-widget-scratch_list .scratch-image {
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-widget-scratch_list .scratch-image:empty::before {
    content: "Image";
    color: #999;
    font-size: 12px;
}
