/**
 * Product Profile Styles
 * Hiển thị hồ sơ sản phẩm: Trạng thái vệ sinh và số lượt thuê
 * Dạng popup khi click vào button
 */

/* Product Profile Button */
.myshop-product-profile-wrapper {
    margin-top: 20px;
    
    justify-content: center;
}

.myshop-product-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FE0078 0%, #FF4DA6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(254, 0, 120, 0.3);
    text-decoration: none;
}

.myshop-product-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 0, 120, 0.4);
    background: linear-gradient(135deg, #D1005F 0%, #FE0078 100%);
}

.myshop-product-profile-btn:active {
    transform: translateY(0);
}

.myshop-product-profile-btn .btn-icon {
    font-size: 20px;
    line-height: 1;
}

.myshop-product-profile-btn .btn-text {
    letter-spacing: 0.3px;
}

/* Product Profile Popup */
.myshop-product-profile-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.myshop-product-profile-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.profile-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.profile-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px;
}

.myshop-product-profile-popup.active .profile-popup-content {
    transform: scale(1);
}

.profile-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.profile-popup-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-popup-close:hover {
    background: #FE0078;
    color: white;
    transform: rotate(90deg);
}

.myshop-product-profile {
    padding: 25px;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-icon {
    font-size: 24px;
}

.product-profile-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cleaning Status Steps */
.cleaning-status-steps {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cleaning-step {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.6;
}

.cleaning-step.active {
    opacity: 1;
    border-color: #FE0078;
    box-shadow: 0 4px 12px rgba(254, 0, 120, 0.15);
    transform: translateY(-2px);
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
}

.step-icon svg {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) opacity(0.4);
    transition: all 0.3s ease;
}

.step-icon-emoji {
    font-size: 48px;
    display: block;
    line-height: 1;
    filter: grayscale(100%) opacity(0.4);
    transition: all 0.3s ease;
}

.cleaning-step.active .step-icon svg,
.cleaning-step.active .step-icon-emoji {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.2);
    }
}

.step-check {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #FE0078;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(254, 0, 120, 0.3);
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    display: block;
}

.cleaning-step.active .step-label {
    color: #FE0078;
    font-weight: 600;
}

/* Status Colors */
.cleaning-step.status-not-cleaned.active {
    border-color: #dc3545;
}

.cleaning-step.status-not-cleaned.active .step-icon {
    filter: grayscale(0%) brightness(0.9);
}

.cleaning-step.status-cleaned.active {
    border-color: #28a745;
}

.cleaning-step.status-cleaned.active .step-icon {
    filter: grayscale(0%) brightness(1);
}

.cleaning-step.status-cleaned-disinfected.active {
    border-color: #17a2b8;
}

.cleaning-step.status-cleaned-disinfected.active .step-icon {
    filter: grayscale(0%) brightness(1.1);
}

/* Rental Count Section */
.rental-count-section {
    background: linear-gradient(135deg, rgba(254, 0, 120, 0.05) 0%, rgba(255, 77, 166, 0.02) 100%);
    border-color: rgba(254, 0, 120, 0.2);
}

.rental-count-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rental-count-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rental-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.rental-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rental-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.rental-value {
    font-size: 20px;
    font-weight: 700;
    color: #FE0078;
}

/* Responsive */
@media (max-width: 768px) {
    .myshop-product-profile-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .profile-popup-content {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }
    
    .profile-popup-header {
        padding: 15px 20px;
    }
    
    .profile-title {
        font-size: 18px;
    }
    
    .myshop-product-profile {
        padding: 20px 15px;
    }
    
    .cleaning-status-steps {
        flex-direction: column;
        gap: 12px;
    }
    
    .cleaning-step {
        min-width: 100%;
    }
    
    .profile-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .rental-value {
        font-size: 18px;
    }
}

