/* spines - hal and whisper's pdf library */
/* Base styles, typography, and core layout */

/* Gorton Digital font */
@font-face {
    font-family: 'Gorton Digital';
    src: url('../Gorton-Digital-Light.ttf.woff') format('woff');
    font-weight: lighter;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gorton Digital', 'Monaco', 'Menlo', 'Consolas', monospace;
    background: #f0f0f0;
    color: #000;
    line-height: 1.4;
    font-size: 14px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Cloud sky background */
#cloudSky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    border: 2px solid black;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-left .subtitle {
    font-size: 14px;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.header-right label {
    font-weight: bold;
    flex-shrink: 0;
}

.header-right input {
    border: 1px solid black;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 12px;
    width: 120px;
    min-width: 80px;
    max-width: 150px;
}

/* Mobile header adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-right input {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-wrap: wrap;
    }
    
    .header-right input {
        width: 100%;
        max-width: none;
    }
}

/* Footer */
footer {
    border: 2px solid black;
    padding: 15px;
    background: white;
    text-align: center;
    font-size: 10px;
    color: #666;
}

/* Empty state */
.empty-state {
    border: 2px solid black;
    background: white;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.empty-state h2 {
    margin-bottom: 10px;
}

/* CLI hint */
.cli-hint {
    font-family: inherit;
    background: #f8f8f8;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
}

/* Feedback messages */
.feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border: 2px solid;
    background: white;
    font-size: 12px;
    z-index: 1000;
}

.feedback.success {
    border-color: #006600;
    color: #006600;
    background: #e8f5e8;
}

.feedback.error {
    border-color: #cc0000;
    color: #cc0000;
    background: #ffe8e8;
}

.feedback.info {
    border-color: #0066cc;
    color: #0066cc;
    background: #e8f3ff;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Navigation links */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
}

.nav-links a:hover {
    text-decoration: underline;
} 