/* NIMRODS Devlog page
   Reuses .header (banner) and .site-footer from /nimrods/assets/css/styles.css.
   This file styles only the devlog feed. */

.devlog-section {
    padding: 0 1rem 3rem;
}

.devlog-section .devlog-inner {
    max-width: 820px;
    margin: 0 auto;
}

.devlog-heading {
    text-align: center;
    margin-bottom: 0.25rem;
}

.devlog-sub {
    text-align: center;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

/* Post card */
.devlog-post {
    background-color: #2f312d;
    border: 1px solid #3a3c37;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
}

.devlog-post-head {
    border-bottom: 1px solid #3a3c37;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.devlog-post-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.devlog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.devlog-date {
    color: #aaaaaa;
}

.devlog-chip {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background-color: #0056b3;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.devlog-steam {
    margin-left: auto;
    color: #4ea3ff;
    text-decoration: none;
    font-weight: 600;
}

.devlog-steam:hover {
    color: #7dbcff;
    text-decoration: underline;
}

/* Post body */
.devlog-post-body {
    color: #e6e6e6;
    font-size: 1.08rem;
    line-height: 1.7;
}

.devlog-para {
    margin: 0 0 1rem;
}

.devlog-para:last-child {
    margin-bottom: 0;
}

.devlog-post-body a {
    color: #4ea3ff;
    text-decoration: none;
}

.devlog-post-body a:hover {
    text-decoration: underline;
}

.devlog-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0 1.25rem;
    min-height: 60px;
    background-color: #26282a;
}

/* Load more */
.devlog-more-wrap {
    text-align: center;
    margin-top: 1rem;
}

.devlog-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2a475e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.devlog-more:hover:not(:disabled) {
    background-color: #1b2838;
    transform: translateY(-2px);
}

.devlog-more:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Loading + status */
.devlog-status {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    padding: 1.5rem 0;
}

.devlog-spinner {
    width: 42px;
    height: 42px;
    margin: 2.5rem auto;
    border: 4px solid #3a3c37;
    border-top-color: #007BFF;
    border-radius: 50%;
    animation: devlog-spin 0.9s linear infinite;
}

@keyframes devlog-spin {
    to { transform: rotate(360deg); }
}

.devlog-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 576px) {
    .devlog-post {
        padding: 1.25rem 1.1rem;
    }
    .devlog-post-title {
        font-size: 1.3rem;
    }
    .devlog-steam {
        margin-left: 0;
    }
}

/* Right-click "copy all loaded devlogs" menu */
.devlog-ctxmenu {
    position: fixed;
    z-index: 10000;
    min-width: 210px;
    background-color: #2f312d;
    border: 1px solid #4a4d46;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 4px;
}

.devlog-ctxitem {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.devlog-ctxitem:hover:not(:disabled) {
    background-color: #007BFF;
}

.devlog-ctxitem:disabled {
    color: #888888;
    cursor: default;
}
