/* Archive Page Styles - Retro Farm Aesthetic */

* {
    box-sizing: border-box;
}

body {
    background: #fffef7;
    font-family: monospace;
    color: #333;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    border-bottom: 3px dashed #8B4513;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.back-link {
    color: #8B4513;
    text-decoration: none;
    border: 2px dashed #8B4513;
    padding: 8px 15px;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-link:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.05);
}

.title {
    font-size: 28px;
    color: #8B4513;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #8B4513;
}

.error {
    color: #a94442;
    border: 2px dashed #a94442;
    background: rgba(169, 68, 66, 0.1);
    padding: 20px;
    border-radius: 4px;
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Series Card */
.series-card {
    border: 2px dashed #8B4513;
    background: rgba(139, 69, 19, 0.05);
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    overflow: hidden;
}

.series-card:hover {
    background: rgba(139, 69, 19, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.series-cover {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-bottom: 2px dashed #8B4513;
    background: #f5f5f0;
}

.series-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #8B4513;
}

.series-info {
    padding: 15px;
}

.series-title {
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
    margin: 0 0 8px 0;
}

.series-description {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.series-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.series-status {
    display: inline-block;
    background: #8B4513;
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.series-status.ongoing {
    background: #5a8a3a;
}

.series-status.complete {
    background: #8B4513;
}

.series-status.hiatus {
    background: #a67c00;
}

.read-button {
    display: block;
    background: #8B4513;
    color: white;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    border: none;
    cursor: pointer;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
    text-decoration: none;
}

.read-button:hover {
    background: #654321;
}

.continue-reading {
    background: #5a8a3a;
}

.continue-reading:hover {
    background: #3d5e28;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h2 {
    color: #8B4513;
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

.empty-state code {
    background: rgba(139, 69, 19, 0.1);
    padding: 2px 6px;
    border: 1px dashed #8B4513;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .title {
        font-size: 24px;
    }

    .series-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .series-cover {
        height: 300px;
    }
}

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

    .header {
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    .title {
        font-size: 20px;
    }

    .back-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .series-cover {
        height: 250px;
    }

    .series-info {
        padding: 12px;
    }

    .series-title {
        font-size: 16px;
    }

    .series-description {
        font-size: 12px;
    }
}
