/**
 * WA Birdsong Archive
 * Simple random birdsong player
 */

/* ============================================
   Reset & Base
   ============================================ */

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #f5f5f0;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================
   Back Link
   ============================================ */

.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1000;
}

.back-link:hover {
    background: rgba(255, 255, 255, 1);
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: 700px;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Header
   ============================================ */

.header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: normal;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.attribution {
    color: #999;
}

.methods-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s;
}

.methods-link:hover {
    opacity: 0.6;
}

/* ============================================
   Content
   ============================================ */

.content {
    min-height: 200px;
}

.loading {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

.recording-info {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.date {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.summary {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.subjects {
    margin-bottom: 24px;
}

.subjects-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-tag {
    font-size: 12px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 3px;
    color: #666;
}

/* ============================================
   Audio Player
   ============================================ */

.audio-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

audio {
    width: 100%;
    margin-bottom: 12px;
}

.audio-link {
    display: inline-block;
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.2s;
}

.audio-link:hover {
    background: #e0e0e0;
}

/* ============================================
   Shuffle Button
   ============================================ */

.shuffle-btn {
    margin-top: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.shuffle-btn:hover {
    background: #333;
}

.shuffle-btn:active {
    transform: translateY(1px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .back-link {
        top: 10px;
        left: 10px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .meta {
        font-size: 11px;
    }
}
