/* Frontend Styles for Interactive Floor Plan Plugin */

.ifp-floor-plan-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.ifp-floor-plan-container {
    position: relative;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.ifp-floor-plan-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Zone hover effects */
.ifp-zone {
    transition: all 0.3s ease;
    cursor: pointer;
}

.ifp-zone:hover {
    stroke-width: 4 !important;
    filter: brightness(1.1);
}

.ifp-zone.active {
    stroke-width: 5 !important;
    filter: brightness(1.2);
}

.ifp-zone-label {
    font-family: inherit;
    font-weight: 700;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Zone Information Panel */
.ifp-zone-info {
    position: absolute;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 320px;
    min-width: 280px;
    animation: fadeInUp 0.3s ease-out;
}

#ifp-zone-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-right: 30px;
    line-height: 1.3;
}

#ifp-zone-details {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.6;
}

#ifp-close-info {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #95a5a6;
    padding: 5px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#ifp-close-info:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

/* Legend Styles */
.ifp-legend {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ifp-legend h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Instructions */
.ifp-instructions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* No zones message */
.ifp-no-zones {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ifp-floor-plan-wrapper {
        padding: 0 15px;
    }
    
    .ifp-zone-info {
        max-width: calc(100vw - 30px) !important;
        min-width: auto !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    #ifp-zone-title {
        font-size: 16px;
        padding-right: 25px;
    }
    
    #ifp-zone-details {
        font-size: 13px;
    }
}

/* Accessibility */
.ifp-zone:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Loading State */
.ifp-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.ifp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
