/* ===== BODY & GLOBAL STYLES ===== */
body {
    background-color: #13141a;
    color: #ffffff;
    color-scheme: dark;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* ===== HEADER & NAVIGATION ===== */
header.header {
    background-color: #1f2028;
    border-bottom: 2px solid #333444;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-radius: 10px;
}

/* Ensure all nav items share the same baseline */
header.header .nav {
    display: flex;
    align-items: center;
    gap: 12px; /* consistent spacing between links */
}

/* Navigation links styling */
header.header .nav a {
    color: #ffffff;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

header.header .nav a:hover {
    background-color: #dda900;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.3);
}

.buy-coffee-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    transform: translateY(2px); /* adjust to visually match text baseline */
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Hero heading */
.hero h1 {
    font-size: 3.0em;
    margin-bottom: 10px;
}

/* Hero paragraph */
.hero p {
    font-size: 1.0em;
    color: #bbbbbb;
}

/* ===== SECTIONS ===== */
.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.hero > *,
.section > * {
    position: relative;
    z-index: 1; /* keep content above background */
}

/* Background layers for each section */
.hero::before,
#mods.section::before,
#socials.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18; /* subtle so text stays readable */
    z-index: 0;
}

.hero::before {
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
        url('assets/bg-hero.jpg');
}

/* Section titles */
.title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== GRID LAYOUT ===== */
/* Switch to horizontal scrollable row for mods */
.grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;           /* enable horizontal scroll */
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; /* smoother on mobile */
    scroll-snap-type: x proximity;     /* optional snap */
    padding-bottom: 8px;        /* room for scrollbar */
    scrollbar-width: thin;      /* Firefox: thinner bar */
    scrollbar-color: #333444 #1b1c22; /* Firefox: thumb and track */
}
/* Scrollbar styling (WebKit: Chrome, Edge) */
.grid::-webkit-scrollbar {
    height: 8px;                /* horizontal scrollbar height */
}

.grid::-webkit-scrollbar-track {
    background: #1b1c22;        /* track color */
    border-radius: 8px;
}

.grid::-webkit-scrollbar-thumb {
    background: #333444;        /* thumb color */
    border-radius: 8px;
    border: 2px solid #1b1c22;  /* inset look */
}

.grid::-webkit-scrollbar-thumb:hover {
    background: #dda900;        /* gold accent on hover */
}

/* Firefox hover accent (simulated): use :hover on container */
.grid:hover {
    scrollbar-color: #dda900 #1b1c22; /* gold thumb when hovered */
}

/* Each card should not shrink; keep fixed width */
.grid .mod-card {
    flex: 0 0 320px;            /* fixed card width */
    scroll-snap-align: start;   /* snap each card */
}

/* ===== MOD CARDS ===== */
/* Card container with flexbox for button alignment */
.mod-card {
    background-color: #1f2028;
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Card heading - accent green color */
.mod-card h3 {
    color: #dda900;
    margin-bottom: 10px;
}

/* Card description */
.mod-card p {
    color: #bbbbbb;
    font-size: 0.9em;
    flex-grow: 1;
}

.mod-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Mod image styling */
.mod-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-container {
    display: flex;
    align-items: center;            /* center content vertically */
    justify-content: space-between; /* button left, version right */
    gap: 16px;
    margin-top: auto;               /* push footer to bottom of card */
}

.download-container .download-button {
    background-color: #dda900;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Pixelify Sans", sans-serif;
    transition: all 0.3s ease;
    width: auto;
    /* no align-self, let flex center vertically */
}

.version-text {
    color: #bbbbbb;
    font-size: 0.9em;
    line-height: 1;                 /* tighter baseline for single-line */
}



/* Button hover effect */
.download-button:hover {
    background-color: #dda900;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.3);
}

/* Button active/click effect */
.download-button:active {
    transform: scale(0.98);
}

/* ===== SOCIAL LINKS ===== */
/* Paragraph text centering in social section */
#socials p {
    text-align: center;
}

/* Social links container */
.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Individual social link */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Social icon styling */
.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Social link hover effect */
.social-link:hover {
    transform: scale(1.1);
    color: #dda900;
}