﻿/* === Layout: header | scroll | footer === */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Fixed background lives on html so it stays put */
html {
    background-color: #1a0000;
    background-image: radial-gradient(#330000 0.5px, transparent 0.5px), radial-gradient(#330000 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
}

/* Body is transparent; text/theme here */
body {
    background: transparent;
    color: #F2E6D8;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

/* Header/footer participate in normal flow; no z-index needed */
header, footer {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
}

/* Only the middle scrolls */
.scroll-container {
    flex: 1; /* take remaining space */
    min-height: 0; /* IMPORTANT: allow shrinking so it can scroll */
    overflow-y: auto; /* scroll when needed */
    -webkit-overflow-scrolling: touch;
}

/* Battletech Missions Navbar */
.bg-btmissions {
    background: linear-gradient( to bottom, #220000, #1A0000 );
}


.navbar {
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}



.navbar-dark .navbar-nav .nav-link {
    color: #F5EDED;
    font-weight: 500;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: #FFFFFF;
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
    }

    /* Active page */
    .navbar-dark .navbar-nav .nav-link.active {
        color: #D4AF37; /* muted gold */
    }

/* Logo sizing */
.navbar-logo {
    height: 48px;
    margin-right: 1rem;
    display: block;
}


/* Nav + links */
nav {
    text-align: center;
    padding: 20px;
}

    nav a {
        margin: 0 15px;
        color: #ff6666;
        text-decoration: none;
        font-weight: bold;
    }

        nav a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

        nav a.active {
            border-bottom: 2px solid #FF6666;
            color: #FFFFFF;
        }

/* Footer look (no margin-top needed—scroll-container handles it) */
footer {
    font-size: 0.8em;
    color: #994444;
}

/* Buttons */
.button {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border: 2px solid #ff6666;
    color: #ff6666;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

    .button:hover {
        background: #ff6666;
        color: #1a0000;
    }

/* Logo */
.navbar-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive padding */
@media (max-width: 600px) {
    header, nav, main, footer {
        padding: 10px;
    }
}

/* wwwroot/css/Styles.css */
.thumb {
    display:block;
    width: 100%;
    max-width:100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: .75rem;
}

.pregen-text {
    display: block;
    width: 100%;
    max-width: 100%;
    font-family: 'Orbitron', sans-serif;
    font-size: large;
    text-align: center;
}

/* Use with pregen-text */
.pregen-background {
    text-align: left;
}

#pregen-description {
    height: 120px; /* Set your desired fixed height */
    overflow-y: auto; /* Adds a vertical scrollbar if content is too tall */
    box-sizing: border-box;
}

.pregen-info-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    table-layout: auto;
}

.pregen-info-table th,
.pregen-info-table td {
    border: 1px solid #ff3333;
    padding: 8px;
    text-align: center;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.psa-info-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    table-layout: fixed;
}

    .psa-info-table th,
    .psa-info-table td {
        border: 1px solid #ff3333;
        padding: 8px;
        text-align: left;
        height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .psa-info-table td:nth-child(2),
    .psa-info-table th:nth-child(2) {
        text-align: center;
    }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.resource-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    border-radius: 1rem;
    background: #181a1f;
    border: 1px solid #2f3238;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

    .resource-tile:hover,
    .resource-tile:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
        border-color: #4aa3ff;
        outline: none;
    }

.resource-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 0.75rem;
}

.resource-label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f5f5f5;
}


/* Set fixed widths for the first three columns */
.pregen-info-table th:nth-child(1),
.pregen-info-table td:nth-child(1) { width: 200px; }
.pregen-info-table th:nth-child(2),
.pregen-info-table td:nth-child(2) { width: 50px; }
.pregen-info-table th:nth-child(3),
.pregen-info-table td:nth-child(3) { width: 200px; }
.pregen-info-table th:nth-child(4),
.pregen-info-table td:nth-child(4) { width: 80px; }

/* The last column will take up the remaining space */
    .pregen-info-table th:last-child,
    .pregen-info-table td:last-child {
        width: auto;
        text-align: left;
    }


/* Cell containing the download icon */
.pregen-info-table .download-cell {
    text-align: center;
    padding: 4px 0;
    vertical-align: middle;
    width: 48px; /* keeps the column compact */
}

/* The download icon itself */
.download-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.12s ease-out, opacity 0.12s ease-out;
    opacity: 0.85;
}

    .download-icon:hover {
        transform: scale(1.12);
        opacity: 1;
    }

/* vertical stack */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* card */
.stack-card {
    border: 1px solid #2f3238;
    border-radius: 14px;
    background: #181a1f;
    overflow: hidden; /* keeps header bar corners clean */
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* top bar */
.stack-card__header {
    padding: 0.75rem 1rem;
    background: #111318;
    border-bottom: 1px solid #2f3238;
}

.stack-card__title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* body */
.stack-card__body {
    padding: 1rem;
}

.stack-card__text {
    margin: 0 0 0.9rem 0;
    opacity: 0.9;
    line-height: 1.35;
}

/* 4 evenly spaced buttons */
.stack-card__actions {
    display: flex;
    justify-content: space-evenly; /* or space-between */
    gap: 0.75rem;
}

/* button style (link or button) */
.btn-hud {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #2f3238;
    background: #101217;
    color: #f5f5f5;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

    .btn-hud:hover,
    .btn-hud:focus-visible {
        transform: translateY(-2px);
        border-color: #4aa3ff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.35);
        outline: none;
    }

.icon-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* square button */
.icon-button__btn {
    width: 75px;
    height: 75px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #2f3238;
    background: #101217;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

    .icon-button__btn img {
        width: 50px;
        height: 50px;
    }

    /* hover / focus */
    .icon-button__btn:hover,
    .icon-button__btn:focus-visible {
        transform: translateY(-2px);
        border-color: #4aa3ff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
        outline: none;
    }

/* label */
.icon-button__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    text-align: center;
    white-space: nowrap;
}

.segmented {
    display: inline-flex;
    border: 1px solid #2f3238;
    border-radius: 12px;
    overflow: hidden;
}

.seg-btn {
    padding: 0.55rem 0.9rem;
    background: #101217;
    color: #f5f5f5;
    border: 0;
    cursor: pointer;
}

    .seg-btn + .seg-btn {
        border-left: 1px solid #2f3238;
    }

    .seg-btn.active {
        background: #1b2330;
        outline: 1px solid #4aa3ff;
    }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .data-table th, .data-table td {
        border: 1px solid #2f3238;
        padding: 8px;
    }

