/* View: everything-tuner — Page-specific styles */

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: var(--nav-height, 53px) 20px 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.terminal {
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    border-bottom: 2px solid #00ff00;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.title {
    font-size: 28px;
    text-shadow: 0 0 20px #00ff00;
    margin: 0;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin: 5px 0;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.preset-group {
    border: 1px solid #333;
    padding: 15px;
    background: #001100;
}

.preset-group h4 {
    margin: 0 0 10px 0;
    color: #00ff00;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.preset-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tuner-btn {
    background: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.tuner-btn:hover {
    background: #003300;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.tuner-btn:disabled {
    color: #666;
    border-color: #666;
    cursor: not-allowed;
}

.tuner-btn.active {
    background: #004400;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.main-controls {
    text-align: center;
    margin: 20px 0;
}

.main-controls .tuner-btn {
    font-size: 16px;
    padding: 12px 25px;
    margin: 0 10px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #00ff00;
    background: #001100;
    margin: 15px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.status-light.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.current-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #00ff00;
    background: linear-gradient(135deg, #001100, #000);
    position: relative;
}

.current-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff00;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

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

.info-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.frequency-display {
    font-size: 24px;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    min-width: 120px;
    text-align: center;
}

.note-display {
    font-size: 32px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    min-width: 80px;
    text-align: center;
}

.tuning-display {
    font-size: 18px;
    min-width: 200px;
    text-align: center;
}

.tuning-arrow {
    font-size: 18px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.sharp {
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
}

.flat {
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
}

.in-tune {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px #00ff00; }
    50% { text-shadow: 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.seismograph-container {
    margin: 20px 0;
    border: 2px solid #00ff00;
    background: #000;
    position: relative;
    overflow: hidden;
}

.seismograph-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 0, 0.05) 25%,
        rgba(0, 255, 0, 0.05) 75%,
        transparent 100%);
    pointer-events: none;
}

#seismograph {
    display: block;
    background: #000;
}

.intensity-meter {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 100px;
    border: 1px solid #00ff00;
    background: #000;
}

.intensity-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #00ff00, #ffff00, #ff6600);
    transition: height 0.2s;
}

.string-reference {
    margin: 20px 0;
    border: 1px solid #333;
    padding: 15px;
    background: linear-gradient(135deg, #001100, #000);
}

.string {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px;
    transition: all 0.3s;
}

.current-string {
    background: linear-gradient(90deg, #003300, #001100);
    border-left: 3px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    animation: highlight 2s infinite;
}

@keyframes highlight {
    0%, 100% { border-left-color: #00ff00; }
    50% { border-left-color: #00ff88; }
}

.legend {
    margin: 10px 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.error {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.chicken-warning {
    color: #ffaa00;
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
}
