/* Claude Code Mac Terminal Theme - Light */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Courier New', monospace;
    background: #f5f5f5;
    color: #1a1a1a;
    min-height: 100vh;
    padding: 10px 20px 20px 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #795548;
    margin-bottom: 0;
}

.subtitle {
    font-size: 14px;
    color: #666666;
}

.renderer-section {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 16px 24px 24px 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-wrapper {
    position: relative;
    padding: 10px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label-top,
.slider-label-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.slider-label-top {
    margin-bottom: 4px;
}

.slider-label-bottom {
    margin-top: 4px;
}

.label-text {
    font-size: 14px;
    color: #666666;
    font-weight: 600;
}

.slider-markers-top,
.slider-markers-bottom {
    position: relative;
    height: 20px;
    width: calc(100% - 40px);
    margin: 0 20px;
}

.slider-track-container {
    padding: 0 20px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    margin: 8px 0;
}

.dual-slider {
    width: 100%;
    height: 60px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    cursor: pointer;
}

.dual-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 60px;
    background: transparent;
    cursor: grab;
}

.dual-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.dual-slider::-moz-range-thumb {
    width: 30px;
    height: 60px;
    background: transparent;
    border: none;
    cursor: grab;
}

.dual-slider:active::-moz-range-thumb {
    cursor: grabbing;
}

/* Custom slider indicator - positioned like markers for perfect alignment */
.slider-indicator {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    transition: left 0.1s ease-out;
}

.indicator-length {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.indicator-thumb {
    width: 2px;
    height: 20px;
    background: #10b981;
    border-radius: 1px;
}

.indicator-volume {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.indicator-volume sup {
    color: #1a1a1a;
}

.marker {
    position: absolute;
    transform: translateX(-50%);
    font-size: 13px;
    color: #666666;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Show markers on hover but hide when dragging */
.slider-wrapper:hover .marker {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.slider-wrapper.dragging .marker {
    opacity: 0 !important;
}

/* Fade markers that are close to the indicator */
.marker.faded {
    opacity: 0.3 !important;
}

/* Hide markers when overlapping with indicator */
.marker.hidden {
    opacity: 0 !important;
}

.marker-length {
    bottom: 0;
}

.marker-volume {
    top: 0;
}

.marker-volume sup {
    color: #1a1a1a;
}

.marker-length::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: #999999;
}

.marker-volume::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: #999999;
}

.display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 16px;
    background: #ffffff;
    border: none;
}

#sphere-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    width: 100%;
    position: relative;
    overflow: visible;
}

#sphere {
    /* Symmetric ovoid shape: both ends similar in size */
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    background: #10b981;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow:
        /* Simple drop shadow */
        0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Ensure sphere can grow to full calculated size */
    max-width: none !important;
    max-height: none !important;
    flex-shrink: 0;
    position: relative;
}

/* Simple flat highlight spot for cartoon effect */
#sphere::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

/* Subtle shadow area for depth */
#sphere::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 40%;
    height: 40%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.info-panel {
    display: none;
}

.debug-info {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    color: #10b981;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: right;
    line-height: 1.5;
}

#sphere-container:hover .debug-info {
    opacity: 1;
}

/* Hidden DPI test element */
#dpi-test {
    position: absolute;
    width: 1cm;
    height: 1cm;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .renderer-section {
        padding: 16px;
    }

    .display-area {
        padding: 24px 8px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }

    #sphere-container {
        min-height: 200px;
        width: 100%;
    }

    /* Hide all markers on mobile - only show active selector */
    .marker {
        display: none !important;
    }

    .slider-wrapper:hover .marker,
    .slider-wrapper.dragging .marker {
        display: none !important;
    }

    /* Debug info tap to toggle on mobile */
    .debug-info {
        cursor: pointer;
        pointer-events: auto;
    }

    .debug-info.visible {
        opacity: 1 !important;
    }

    #sphere-container:hover .debug-info {
        opacity: 0;
    }
}

