/* AllSky Viewer WordPress Plugin Styles */

.allsky-viewer-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.allsky-viewer-wrapper * {
    box-sizing: border-box;
}

/* Fullscreen styles */
.allsky-viewer-wrapper.allsky-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Setup Stage Styles */
.allsky-setup-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    padding-top: 50px;
    overflow-y: auto;
}

.allsky-setup-stage.hidden {
    display: none !important;
}

.allsky-canvas-container {
    position: relative;
    display: inline-block;
    flex-shrink: 1;
    flex-grow: 0;
    min-height: 0;
}

.allsky-source-canvas {
    display: block;
    cursor: crosshair;
}

.allsky-circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.allsky-setup-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    flex-shrink: 0;
}

.allsky-setup-controls label {
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.allsky-setup-controls input[type="range"] {
    width: 80px;
    vertical-align: middle;
}

.allsky-setup-info {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.allsky-setup-info h2 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.allsky-setup-info p {
    opacity: 0.7;
    font-size: 13px;
    margin: 3px 0;
}

/* Viewer Stage Styles */
.allsky-viewer-stage {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.allsky-viewer-stage.active {
    display: block;
}

.allsky-container {
    width: 100%;
    height: 100%;
}

.allsky-container canvas {
    display: block;
}

.allsky-info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 320px;
    z-index: 100;
}

.allsky-info.hidden {
    display: none !important;
}

.allsky-info h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.allsky-info p {
    opacity: 0.8;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.allsky-control-group {
    margin-bottom: 12px;
}

.allsky-control-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.allsky-control-group select {
    width: 100%;
    padding: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.allsky-control-group select option {
    background: #333;
}

.allsky-control-group input[type="range"] {
    width: 100%;
}

.allsky-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.allsky-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.allsky-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.allsky-btn-primary {
    background: rgba(59, 130, 246, 0.7);
    border-color: rgba(59, 130, 246, 0.9);
}

.allsky-btn-primary:hover {
    background: rgba(59, 130, 246, 0.9);
}

.allsky-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Top right buttons container */
.allsky-top-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    gap: 8px;
}

.allsky-toggle-panel,
.allsky-fullscreen-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.allsky-toggle-panel:hover,
.allsky-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Setup stage fullscreen button */
.allsky-setup-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    line-height: 1;
}

.allsky-setup-fullscreen:hover {
    background: rgba(255, 255, 255, 0.25);
}

.allsky-config-output {
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
}

.allsky-loading {
    color: white;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .allsky-setup-controls {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .allsky-setup-controls label {
        width: 100%;
        justify-content: space-between;
    }

    .allsky-setup-controls input[type="range"] {
        width: 100px;
    }

    .allsky-info {
        max-width: calc(100% - 80px);
        font-size: 12px;
    }

    .allsky-controls {
        bottom: 10px;
        gap: 5px;
    }

    .allsky-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
