/* Worker Manager Styles */

/* Floating Buttons */
.worker-manager-floating-buttons {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.worker-manager-floating-buttons.right {
    right: 20px;
}

.worker-manager-floating-buttons.left {
    left: 20px;
}

.wm-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.wm-float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.wm-float-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.wm-wa-btn {
    background-color: #25D366;
}

.wm-call-btn {
    background-color: #007bff;
}

/* Single Worker Button */
.worker-request-button-wrapper {
    margin-top: 20px;
}

.worker-request-button {
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.worker-request-button:hover {
    background-color: #128C7E;
    color: #fff;
}

/* Worker Card Styles */
article.entry-card {
    position: relative;
}
.wm-card-badges {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none; /* Let clicks pass through if needed */
    z-index: 10;
}

.wm-badge {
    position: absolute;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.wm-badge-left {
    left: 10px;
    background-color: #007bff; /* Example color */
    color: #fff;
}

.wm-badge-right {
    right: 10px;
    background-color: #28a745; /* Example color */
    color: #fff;
}

.wm-worker-details {
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.wm-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wm-details-list li {
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding-bottom: 3px;
}

.wm-details-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.worker-card-action {
    margin-top: 10px;
}

/* Single Worker Layout */
.wm-single-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;

}

.wm-single-image {
    flex: 1 1 300px;
    max-width: 400px;
}

.wm-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.wm-single-details {
    flex: 1 1 300px;
}

.wm-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 15px;
    margin-bottom: 20px;
}

.wm-detail-item {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    /* display: flex;
    flex-direction: column; */
}

.wm-detail-item.wm-full-width {
    grid-column: span 2; /* Make it take full row */
}

.wm-detail-label {
text-transform: uppercase;
    margin-bottom: 5px;
    margin-left: 5px;
    font-weight: 700;
    display: inline-block;
}

.wm-detail-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: inline-block;
}

@media (max-width: 600px) {
    .wm-details-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    
    .wm-detail-item.wm-full-width {
        grid-column: auto;
    }
}

.worker-request-button-wrapper {
    text-align: center;
}

.worker-request-button-wrapper .worker-request-button {
    width: 100%;
    display: block;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .wm-single-container {
        flex-direction: column;
    }
    
    .wm-single-image {
        max-width: 100%;
    }
}

/* Filter Shortcode Styles */
.wm-filter-container {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
}
.wm-filter-light{
    background: inherit !important;
}
.wm-filter-light select,
.wm-filter-light label{
    color: #fff !important;
}

.wm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.wm-filter-group {
    flex: 1;
    min-width: 200px;
}

.wm-filter-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wm-filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wm-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wm-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Soft shadow */
}

.wm-grid-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wm-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wm-card-content {
    padding: 15px;
}

.wm-card-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.wm-card-title a {
    text-decoration: none;
    color: #333;
}
