/* One 3D Asset Diagram - Mobile Styles */
/* This file is loaded only on mobile devices (max-width: 768px) */

.o3d-diagram-wrapper {
    padding: 5px 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Header - Mobile */
.o3d-diagram-header {
    margin-bottom: 30px;
}

.o3d-diagram-title {
    font-size: 24px;
    margin: 0 0 8px 0;
}

.o3d-diagram-subtitle {
    font-size: 14px;
}

/* Canvas - Mobile */
.o3d-diagram-canvas {
    min-height: 400px;
    padding: 20px 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Nodes - Mobile */
.o3d-node-icon img {
    max-width: 100%;
    height: auto;
}

/* Labels - Mobile */
.o3d-node-label {
    font-size: 12px;
    line-height: 1.2;
}

.o3d-node-label-small {
    font-size: 9px;
    line-height: 1.1;
}

/* Popups - Mobile */
.o3d-popup {
    max-width: 280px;
    width: calc(100vw - 40px);
    padding: 15px;
    font-size: 13px;
    box-sizing: border-box;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.o3d-popup ul {
    padding-left: 18px;
}

.o3d-popup li {
    font-size: 12px;
    margin-bottom: 6px;
}

/* Loop Label - Mobile */
.o3d-loop-label {
    font-size: 11px;
    padding: 4px 8px;
    white-space: normal;
    max-width: 100px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Interactive Elements - Mobile */
.o3d-interactive-node {
    cursor: pointer;
}

.o3d-interactive-node:hover {
    transform: scale(1);
}

/* Ensure touch targets are large enough */
.o3d-node-icon {
    min-width: 44px;
    min-height: 44px;
}

/* Adjust connector dots for mobile */
.o3d-connector-dot {
    width: 6px;
    height: 6px;
}

/* SVG Connectors - Mobile */
.o3d-diagram-connectors {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

/* Nodes - Mobile containment */
.o3d-node {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Prevent text overflow in labels */
.o3d-node-label,
.o3d-node-label-small {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 120px;
    text-align: center;
}
