/* 
Chronomancy Design System v1.0
Extracted from _temp_mesh.html - Win95 nostalgia meets temporal entropy
Scott Wilber: "Strong memetic resonance with minimal activation energy"
*/

/* === CSS CUSTOM PROPERTIES === */
:root {
    --win95-gray-light: #c0c0c0;
    --win95-gray-dark: #808080;
    --win95-blue-dark: #000080;
    --win95-blue-light: #0000ff;
    --win95-green: #008000;
    --win95-red: #ff0000;
    --win95-yellow: #ffff00;
    --win95-orange: #ff8000;
    --win95-teal: #008080;
    
    /* Typography scale */
    --font-primary: 'MS Sans Serif', sans-serif;
    --font-mono: 'Courier New', monospace;
    --font-size-xs: 10px;
    --font-size-sm: 11px;
    --font-size-base: 12px;
    --font-size-lg: 14px;
    --font-size-xl: 18px;
    --font-size-xxl: 24px;
    --font-size-timer: 42px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--win95-teal);
    color: #000;
    overflow-x: hidden;
    cursor: default;
    line-height: 1.3;
}

/* === WIN95 BUTTON SYSTEM === */
.win95-button {
    background: linear-gradient(to bottom, var(--win95-gray-light) 0%, var(--win95-gray-dark) 100%);
    border: 2px outset var(--win95-gray-light);
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    margin: 4px;
    font-family: var(--font-primary);
    font-weight: normal;
    white-space: nowrap;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.win95-button:active {
    border: 2px inset var(--win95-gray-light);
    background: linear-gradient(to bottom, var(--win95-gray-dark) 0%, var(--win95-gray-light) 100%);
}

.win95-button:hover {
    background: linear-gradient(to bottom, #d0d0d0 0%, #909090 100%);
}

.win95-button.primary {
    background: linear-gradient(to bottom, var(--win95-blue-dark) 0%, var(--win95-blue-light) 100%);
    color: #fff;
    font-weight: bold;
}

.win95-button.primary:hover {
    background: linear-gradient(to bottom, #000099 0%, #3333ff 100%);
}

/* === WINDOW SYSTEM === */
.window {
    position: absolute;
    background: var(--win95-gray-light);
    border: 2px outset var(--win95-gray-light);
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.window-header {
    height: 18px;
    background: linear-gradient(to right, var(--win95-blue-dark) 0%, var(--win95-blue-light) 100%);
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: bold;
    cursor: move;
}

.window-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-button {
    width: 16px;
    height: 14px;
    background: var(--win95-gray-light);
    border: 1px outset var(--win95-gray-light);
    font-size: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.window-button:active {
    border: 1px inset var(--win95-gray-light);
}

.window-content {
    padding: 8px;
    background: var(--win95-gray-light);
    height: calc(100% - 18px);
    overflow: auto;
}

/* === TASKBAR === */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, var(--win95-gray-light) 0%, var(--win95-gray-dark) 100%);
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.start-button {
    height: 32px;
    padding: 0 12px;
    background: linear-gradient(to bottom, var(--win95-gray-light) 0%, var(--win95-gray-dark) 100%);
    border: 2px outset var(--win95-gray-light);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.start-button:active {
    border: 2px inset var(--win95-gray-light);
}

.taskbar-time {
    margin-left: auto;
    padding: 0 8px;
    height: 32px;
    background: linear-gradient(to bottom, var(--win95-gray-light) 0%, var(--win95-gray-dark) 100%);
    border: 1px inset var(--win95-gray-light);
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
}

/* === TITLE BAR === */
.title-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, var(--win95-blue-dark) 0%, var(--win95-blue-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: var(--font-size-sm);
    font-weight: bold;
    z-index: 999;
}

.title-text {
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === CONTENT PANELS === */
.welcome-card, .info-panel {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 2px inset var(--win95-gray-light);
    margin: 10px;
}

.logo {
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: var(--win95-blue-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: var(--font-size-base);
    margin-bottom: 20px;
    color: #000;
}

.entropy-panel {
    background: #fff;
    border: 2px inset var(--win95-gray-light);
    padding: 8px;
    margin: 8px 0;
}

.entropy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    font-size: var(--font-size-sm);
}

.entropy-stars {
    color: var(--win95-blue-dark);
    font-weight: bold;
}

.entropy-value {
    font-weight: bold;
    font-family: var(--font-mono);
}

/* === STATUS INDICATORS === */
.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    border: 1px solid #404040;
}

.led.green {
    background: #0f0;
    box-shadow: 0 0 4px #0f0;
}

.led.red {
    background: #f00;
    box-shadow: 0 0 4px #f00;
}

.led.yellow {
    background: #ff0;
    box-shadow: 0 0 4px #ff0;
}

.led.blue {
    background: #00f;
    box-shadow: 0 0 4px #00f;
}

/* === TYPOGRAPHY UTILITIES === */
.big-timer {
    font-family: var(--font-mono);
    font-size: var(--font-size-timer);
    color: #000;
    text-align: center;
    margin-top: 30px;
    letter-spacing: 2px;
    font-weight: bold;
}

.mono-field {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    word-break: break-all;
    background: #fff;
    border: 1px solid var(--win95-gray-dark);
    padding: 4px;
    margin: 4px 0;
}

/* === PROGRESS INDICATORS === */
.progress-ring {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    position: relative;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--win95-gray-dark);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--win95-blue-dark);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: bold;
}

/* === HELP TOOLTIPS (Tufte-inspired) === */
.help-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    background: var(--win95-blue-dark);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    margin-left: 6px;
    cursor: help;
    position: relative;
    user-select: none;
}

.help-icon .tooltip {
    display: none;
    position: absolute;
    left: 16px;
    top: -4px;
    z-index: 2000;
    max-width: 240px;
    padding: 6px;
    background: #ffffe0;
    border: 1px solid var(--win95-gray-dark);
    color: #000;
    font-size: var(--font-size-xs);
    font-family: var(--font-primary);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.4;
}

.help-icon:hover .tooltip {
    display: block;
}

.help-icon:hover {
    filter: brightness(1.2);
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    .window {
        width: 95% !important;
        height: auto !important;
        left: 2.5% !important;
        top: 40px !important;
        max-height: calc(100vh - 120px);
        transform: none !important;
    }
    
    .title-bar {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .title-bar:hover {
        transform: translateY(0);
    }
}

/* === ANIMATION HELPERS === */
@keyframes slideDown {
    from { transform: translate(-50%, -100%); }
    to { transform: translate(-50%, 0); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #0f0; }
    50% { box-shadow: 0 0 20px #0f0; }
}

.blinking {
    animation: blink 1s infinite;
}

.glowing {
    animation: glow 0.5s ease-in-out;
}

/* === UTILITY CLASSES === */
.center-x {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.text-center {
    text-align: center;
}

.font-mono {
    font-family: var(--font-mono);
}

.hidden {
    display: none;
}

.full-width {
    width: 100%;
} 