/* ==========================================================================
   BATHROOM INTERACTIVE SHOWCASE STYLES
   ========================================================================== */

/* Main Section */
.bathroom-interactive-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.bathroom-interactive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Section Header */
.bathroom-header {
    margin-bottom: 50px;
}

.bathroom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.bathroom-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bathroom-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Projects Grid */
.bathroom-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Project Cards */
.bathroom-project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.bathroom-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Project Header */
.project-header {
    padding: 25px 25px 15px;
    text-align: center;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Before/After Controls */
.before-after-controls {
    display: flex;
    margin: 0 25px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.toggle-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-icon {
    font-size: 1rem;
}

/* Image Container */
.image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin: 0 25px 25px;
    border-radius: 15px;
    background: #f8f9fa;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image.active {
    opacity: 1;
    transform: scale(1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-image:hover .image-overlay {
    transform: translateY(0);
}

.overlay-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.hotspot-hint {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hint-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Hotspots */
.hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    pointer-events: all;
    z-index: 10;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

/* Hotspot Pin */
.hotspot-pin {
    position: relative;
    width: 20px;
    height: 20px;
}

.pin-dot {
    width: 100%;
    height: 100%;
    background: var(--category-color, #007bff);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--category-color, #007bff);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.hotspot:hover .pin-dot {
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Hotspot Info */
.hotspot-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20;
}

.hotspot:hover .hotspot-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.hotspot-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.hotspot-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.hotspot-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Project Action */
.project-action {
    padding: 0 25px 25px;
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    color: white;
    text-decoration: none;
}

.project-btn:hover::before {
    left: 100%;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.project-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* View All Button */
.bathroom-view-all {
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.view-all-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* No Projects State */
.no-projects {
    padding: 60px 20px;
    color: #6c757d;
}

.no-projects-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.no-projects h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Modal Styles */
.bathroom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bathroom-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bathroom-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Grayscale Overlay for Hotspot Highlighting */
.grayscale-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.grayscale-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bathroom-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .bathroom-interactive-section {
        padding: 40px 0;
    }
    
    .bathroom-title {
        font-size: 2rem;
    }
    
    .bathroom-projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .bathroom-project-card {
        margin: 0 15px;
    }
    
    .image-container {
        margin: 0 15px 20px;
    }
    
    .project-header,
    .project-action {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .before-after-controls {
        margin: 0 15px 15px;
    }
    
    .hotspot-info {
        min-width: 150px;
        max-width: 200px;
        padding: 12px 15px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .bathroom-title {
        font-size: 1.8rem;
    }
    
    .bathroom-subtitle {
        font-size: 1rem;
    }
    
    .toggle-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .view-all-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}