/* Machine Shop Suite - Custom Styles */
/* Using Tailwind CSS for main styling, these are additional customizations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings in the website's DIN-style face (Barlow Semi Condensed) */
h1, h2, h3, .font-display {
    font-family: 'Barlow Semi Condensed', 'Inter', sans-serif;
    letter-spacing: -0.005em;
}
h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
h2, h3 { font-weight: 600; }

/* Small technical labels: "PLA · 0.20 MM" */
.spec {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* File input hover effect */
input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--accent-dark);
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-dark);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--accent-dark);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus states */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

/* Custom utilities */
.text-balance {
    text-wrap: balance;
}

/* Print styles */
@media print {
    nav,
    footer,
    button {
        display: none;
    }
}

/* Mobile responsiveness helpers */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none;
    }
}

/* Menu scrolls sideways on phones without a visible bar */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Header and footer as on www.pear3d.ch (graphite, lime for the current page) */
.site-menu-link {
    color: var(--mist);
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0;
    transition: color 0.15s, border-color 0.15s;
}
.site-menu-link:hover { color: var(--paper); }
.site-menu-link.is-active { color: var(--paper); border-bottom-color: var(--accent); }
.site-account-link { color: var(--mist); }
.site-account-link:hover,
.site-account-link.is-active { color: var(--paper); }
.site-header :focus-visible, .site-footer :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
