/* OSRS Sprite Downloads page */

.sprites-body {
    background-color: #2b2b2b;
}

.sprites-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.sprites-container .back-link {
    text-align: left;
    margin: 10px 0 20px;
}

/* --- Hero --- */
.sprites-hero {
    text-align: center;
    margin-bottom: 40px;
}

.sprites-title {
    font-family: 'RuneScape UF', sans-serif;
    color: #ffcc00;
    font-size: 48px;
    text-shadow: 2px 2px #000;
    margin: 0 0 16px 0;
}

.sprites-subtitle {
    color: #ccc;
    font-size: 17px;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
    font-family: 'RuneScape UF', sans-serif;
}

.sprites-subtitle strong {
    color: #ffcc00;
}

/* --- Section headings --- */
.section-heading {
    font-family: 'RuneScape UF', sans-serif;
    color: #ffcc00;
    font-size: 26px;
    text-shadow: 1px 1px #000;
    text-align: left;
    border-bottom: 2px solid #4a4336;
    padding-bottom: 8px;
    margin: 36px 0 18px;
}

/* --- Latest (highlighted) card --- */
.latest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(180deg, #50473a 0%, #453d31 100%);
    border: 2px solid #6b5d49;
    border-radius: 8px;
    padding: 22px 24px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

.latest-card .pkg-info {
    flex: 1;
    min-width: 240px;
}

.latest-card .pkg-date {
    font-family: 'RuneScape UF', sans-serif;
    color: #fff;
    font-size: 26px;
    text-shadow: 1px 1px #000;
    margin: 0 0 6px;
}

.latest-card .pkg-meta {
    color: #d8cfbe;
    font-size: 15px;
    font-family: 'RuneScape UF', sans-serif;
}

.pkg-badge {
    display: inline-block;
    background-color: #5c8a4d;
    color: #fff;
    font-size: 12px;
    font-family: 'RuneScape UF', sans-serif;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    text-shadow: 1px 1px #000;
}

/* "X new sprites" badge — distinct OSRS-blue so it reads apart from NEWEST */
.pkg-badge-new {
    background-color: #3a6ea5;
}

/* --- History list --- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #3a352b;
    border: 1px solid #4a4336;
    border-radius: 5px;
    padding: 14px 18px;
    flex-wrap: wrap;
}

.history-row .pkg-date {
    font-family: 'RuneScape UF', sans-serif;
    color: #ffcc00;
    font-size: 19px;
    text-shadow: 1px 1px #000;
    margin: 0;
}

.history-row .pkg-meta {
    color: #aaa;
    font-size: 14px;
    font-family: 'RuneScape UF', sans-serif;
}

.pkg-text {
    flex: 1;
    min-width: 200px;
}

/* --- Download button --- */
.download-btn {
    display: inline-block;
    background-color: #5c8a4d;
    color: #fff !important;
    border: 1px solid #4a7340;
    border-radius: 4px;
    padding: 10px 22px;
    font-family: 'RuneScape UF', sans-serif;
    font-size: 17px;
    text-decoration: none !important;
    text-shadow: 1px 1px #000;
    white-space: nowrap;
    transition: background-color 0.15s;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #6b9e5a;
}

.download-btn.small {
    padding: 7px 16px;
    font-size: 15px;
}

/* --- Status / empty / error --- */
.sprites-status {
    text-align: center;
    color: #aaa;
    font-size: 16px;
    font-family: 'RuneScape UF', sans-serif;
    padding: 30px 0;
}

.sprites-status.error {
    color: #ff6b6b;
}

/* --- CTA back to main site --- */
.sprites-cta {
    margin-top: 50px;
    background: linear-gradient(180deg, #3d3730 0%, #322d27 100%);
    border: 2px solid #4a4336;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
}

.sprites-cta-title {
    font-family: 'RuneScape UF', sans-serif;
    color: #ffcc00;
    font-size: 28px;
    text-shadow: 1px 1px #000;
    margin: 0 0 12px;
}

.sprites-cta-text {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 20px;
    font-family: 'RuneScape UF', sans-serif;
}

.sprites-cta-text strong {
    color: #ffcc00;
}

.sprites-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.sprites-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 6px;
    font-family: 'RuneScape UF', sans-serif;
    font-size: 17px;
    text-decoration: none !important;
    text-shadow: 1px 1px #000;
    transition: background-color 0.15s;
}

.sprites-btn-primary {
    background-color: #c8901f;
    color: #1a1a1a !important;
    text-shadow: none;
}

.sprites-btn-primary:hover {
    background-color: #e0a426;
}

.sprites-btn-patreon {
    background-color: #ff424d;
    color: #fff !important;
}

.sprites-btn-patreon:hover {
    background-color: #e0333d;
}

/* --- Footer --- */
.sprites-footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.sprites-footer a {
    color: #ffcc00;
    font-size: 13px;
}

@media (max-width: 600px) {
    .sprites-title { font-size: 34px; }
    .latest-card .pkg-date { font-size: 22px; }
    .download-btn { width: 100%; text-align: center; }
}
