/* ============================================
   POGO PIN - THE HUMBLE CONNECTOR
   Style definitions for the 3D viewer
   Absurd Industries | Open-Source Hardware Guild
   ============================================ */

/* Global Font Import */
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Space Mono", monospace;
}

body {
    overflow: hidden;
    background: #000000;
    color: #ffffff;
}

/* Canvas Container - The Stage */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Loading Screen - Center Stage Drama */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.loading-content {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Controls Panel - Top Left */
.controls-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tech Specs Panel - Bottom Right */
.specs-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    animation: slideInRight 0.5s ease-out 0.2s backwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer Credit - Bottom Left */
.footer-credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    animation: slideInUp 0.5s ease-out 0.4s backwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom Range Input Styling - Because defaults are BORING */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: 2px solid #000000;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #ffffff;
    border-color: #000000;
}

input[type="range"]::-moz-range-track {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    border: 2px solid #000000;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #ffffff;
    border-color: #000000;
}

/* Custom Checkbox Styling - MONO vibes */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000000;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: bold;
    font-size: 14px;
}

input[type="checkbox"]:hover {
    background: #f3f4f6;
}

/* Custom Radio Styling */
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000000;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
}

input[type="radio"]:hover {
    background: #f3f4f6;
}

/* Superscript Typography Fix - MONO style */
.text-xs.align-super {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

/* Link Hover States */
a {
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .controls-panel,
    .specs-panel,
    .footer-credit {
        max-width: calc(100vw - 40px);
    }

    .controls-panel {
        top: 10px;
        left: 10px;
    }

    .specs-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .footer-credit {
        bottom: auto;
        top: 10px;
        right: 10px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .specs-panel {
        font-size: 0.75rem;
    }
}

/* Accessibility - Because inclusive design is GOOD design */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles - Just in case someone wants to print this madness */
@media print {
    .controls-panel,
    .specs-panel,
    .footer-credit {
        display: none;
    }

    #canvas-container {
        position: static;
        width: 100%;
        height: auto;
    }
}
