/* TRUCKER 2056 WEBSITE CSS */
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #0b1b29;
    color: #d8e4f2;
}
header {
    background: black;
    background: #12263a;
    background: transparent;
    padding: 40px 5px 10px 5px;
    text-align: center;
    border-bottom: 2px solid #5d9cec;
    border-bottom: none;
}
header img {
    max-width: 80%;
    min-width: 370px;
}
header p {
    margin: 10px 0 0;
    font-size: 1.4em;
    color: #b3d4fc;
    text-shadow: 0 0 3px #5d9cec;
}
nav p {
    text-align: center;
    font-size: 1.2em;
    margin: 5px 0 15px 0;
}
nav p.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 15px 0;
}
nav p.social-links a {
    padding: 6px 16px;
    font-size: 0.9em;
    color: #d8e4f2;
    text-decoration: none;
    background: rgba(18, 38, 58, 0.8);
    border: 1px solid #5d9cec;
    border-radius: 4px;
    text-shadow: 0 0 3px #5d9cec;
}
nav p.social-links a:hover {
    background: #5d9cec;
    color: #0b1b29;
    text-shadow: none;
}

.steam {
    padding-top: 20px;
    text-align: center;
}
.content {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(18, 38, 58, 0.8);
    border-radius: 8px;
}
.content h2 {
    color: #a9cfe7;
    margin-bottom: 15px;
    text-shadow: 0 0 3px #5d9cec;
}
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.screenshots img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #5d9cec;
    cursor: pointer;
}
.features {
    margin-top: 30px;
    padding: 20px;
    background: rgba(18, 38, 58, 0.8);
    border-radius: 8px;
}
.features ul {
    list-style-type: square;
    padding-left: 20px;
    margin-top: -20px;
}
.features ul li {
    margin: 10px 0;
}
footer {
    background: transparent;
    text-align: center;
    padding: 5px 15px 15px 15px;
    border-top: none;
    font-size: 0.9em;
}
footer p {
    color: #d8e4f2;
    opacity: 0.9;
    text-shadow: 0 0 3px #5d9cec;
}
p a {
    color: #5d9cec;
}
p a:hover {
    color: #a9d4ff;
}
footer p a {
    text-shadow: 0 0 5px #7fbfff;
}

/* Blog */
.post-preview {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #5d9cec;
}
.post-preview h3 {
    margin-top: 0;
}
.post-preview p.date {
    font-size: 0.9em;
    color: #8faecc;
    margin: 5px 0 10px 0;
}
.post-preview a {
    color: #5d9cec;
    text-decoration: none;
}
.post-preview a:hover {
    color: #a9d4ff;
}

.post img {
    width: 100%;
    max-width: 800px;
}

/* Press Kit */
.presskit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.presskit-item {
    text-align: center;
}
.presskit-item img {
    width: 100%;
    border-radius: 4px;
}
.presskit-item p {
    font-size: 0.9em;
    margin-top: 5px;
}
.presskit-list {
    list-style-type: square;
    padding-left: 20px;
}
.presskit-list li {
    margin: 8px 0;
}
.presskit-list a {
    color: #5d9cec;
}
.presskit-list a:hover {
    color: #a9d4ff;
}
.content h3 {
    color: #a9cfe7;
    margin-top: 30px;
    text-shadow: 0 0 3px #5d9cec;
}

/* AI Disclosure */
.preface {
    background: rgba(7, 18, 28, 0.45);
    border-left: 4px solid #5d9cec;
    border-radius: 4px;
    padding: 5px 18px;
}
.ai-disclosure em {
    font-style: normal;
}
.badge {
    font-weight: bold;
    font-size: 0.85em;
    padding: 1px 6px;
    border-radius: 4px;
    color: #a9cfe7;
    background: rgba(93, 156, 236, 0.18);
    border: 1px solid rgba(93, 156, 236, 0.45);
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}
#lightbox p {
    text-align: center;
    display: block;
}
#lightbox img, #lightbox iframe {
    max-width: 90%;
    max-height: 90%;
    margin-bottom: 10px;
}
#lightbox .caption {
    color: #d8e4f2;
    text-align: center;
}
#lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
}
#lightbox .prev, #lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}
#lightbox .prev {
    left: 20px;
}
#lightbox .next {
    right: 20px;
}
/* Responsive video wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Responsive Steam widget */
.steam {
    position: relative;
    max-width: 646px; /* Original Steam widget width */
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Prevent scrollbars */
}

.steam iframe {
    width: 100%;
    height: 190px; /* Fixed height to prevent overflow */
    border: none;
    display: block;
    overflow: hidden; /* Ensure no internal scrolling */
    transform: scale(1); /* Prevent resizing issues */
}

/* Enemy vehicles */
.enemy-note {
    color: #a9cfe7;
}
.enemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.enemy-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(10, 26, 42, 0.92), rgba(18, 38, 58, 0.92));
    border: 1px solid rgba(93, 156, 236, 0.45);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.enemy-card-media {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid rgba(93, 156, 236, 0.3);
    background: radial-gradient(circle at top, rgba(169, 207, 231, 0.14), rgba(11, 27, 41, 0.25) 52%, rgba(11, 27, 41, 0.9) 100%);
}
.enemy-card-media img {
    width: 100%;
    max-width: 300px;
    image-rendering: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}
.enemy-card-body {
    padding: 18px;
}
.enemy-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.enemy-heading h3 {
    margin: 0;
}
.enemy-faction {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a9cfe7;
}
.enemy-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 18px 0 0;
}
.enemy-stats div {
    background: rgba(7, 18, 28, 0.45);
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(93, 156, 236, 0.18);
}
.enemy-stats dt {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8faecc;
    margin-bottom: 4px;
}
.enemy-stats dd {
    margin: 0;
    color: #d8e4f2;
}
.enemy-pending {
    color: #a9cfe7;
    font-style: italic;
}
.faction-sisu {
    background: radial-gradient(circle at top, rgba(192, 103, 54, 0.22), rgba(11, 27, 41, 0.28) 52%, rgba(11, 27, 41, 0.92) 100%);
}
.faction-institute {
    background: radial-gradient(circle at top, rgba(115, 170, 212, 0.22), rgba(11, 27, 41, 0.28) 52%, rgba(11, 27, 41, 0.92) 100%);
}
.faction-zdf {
    background: radial-gradient(circle at top, rgba(150, 124, 196, 0.2), rgba(11, 27, 41, 0.28) 52%, rgba(11, 27, 41, 0.92) 100%);
}
.faction-player {
    background: radial-gradient(circle at top, rgba(108, 180, 120, 0.22), rgba(11, 27, 41, 0.28) 52%, rgba(11, 27, 41, 0.92) 100%);
}

@media (max-width: 640px) {
    .enemy-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .enemy-stats {
        grid-template-columns: 1fr;
    }
}
