/* Frontend Styles - OS Visibility Control */
.qz-os-hidden {
    display: none !important;
}

.qz-os-visible {
    display: block;
}

/* Editor Styles */
.qz-os-block-editor {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
    min-height: 60px;
}

.qz-os-block-editor:hover {
    border-color: #007cba;
}

.qz-block-label {
    position: absolute;
    top: -12px;
    left: 10px;
    background: #fff;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-radius: 3px;
}

/* Specific Block Editor Styles */
.qz-winvis-editor {
    border-color: #0078d4;
    background-color: rgba(0, 120, 212, 0.05);
}

.qz-winvis-editor .qz-block-label {
    color: #0078d4;
    background: #fff;
}

.qz-winvis-editor:hover {
    border-color: #106ebe;
}

.qz-macvis-editor {
    border-color: #007aff;
    background-color: rgba(0, 122, 255, 0.05);
}

.qz-macvis-editor .qz-block-label {
    color: #007aff;
    background: #fff;
}

.qz-macvis-editor:hover {
    border-color: #0056b3;
}

.qz-othervis-editor {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.qz-othervis-editor .qz-block-label {
    color: #28a745;
    background: #fff;
}

.qz-othervis-editor:hover {
    border-color: #1e7e34;
}

/* Empty block placeholder */
.qz-os-block-editor .block-editor-inner-blocks .block-editor-block-list__layout {
    min-height: 40px;
}

.qz-os-block-editor .block-editor-inner-blocks .block-editor-block-list__layout:empty::before {
    content: "Add content that will be visible to specific operating systems...";
    color: #999;
    font-style: italic;
    display: block;
    padding: 20px;
    text-align: center;
}

/* Frontend animation for smooth appearance */
.qz-os-visible {
    animation: qzFadeIn 0.3s ease-in-out;
}

@keyframes qzFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design considerations */
@media (max-width: 768px) {
    .qz-os-block-editor {
        padding: 15px;
        margin: 8px 0;
    }
    
    .qz-block-label {
        font-size: 11px;
        padding: 0 6px;
    }
}
