@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1b2838;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #c7d5e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 20px;
    background-color: rgb(31, 31, 31);
}

.header_a {
    display: inline-block;
    list-style-type: none;
    text-decoration: none;
    padding: 15px 30px;
    color: white;
    font-size: 25px;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.header_a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(0, 104, 249);
    transition: width 0.4s ease-in-out, left 0.4s ease-in-out;
}

.header_a:hover::after {
    width: 100%;
    left: 0;
}

.header_a:hover {
    color: rgb(55, 104, 239);
}

.header_ul {
    display: flex;
    padding: 10px;
    flex-direction: row;
}

.header_name {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.first_name {
    color: white;
    font-size: 28px;
    font-weight: 800;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
}

.second_name {
    color: rgb(55, 104, 239);
    font-size: 28px;
    font-weight: 800;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
}

.header_info {
    display: flex;
    width: fit-content;
    justify-content: flex-end;
}

.install_button {
    background-color: rgb(0, 205, 0);
    height: 30px;
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.install_button:hover {
    cursor: pointer;
    background-color: rgb(0, 177, 0);
}
/* --- SUB-NAV AND SEARCHBAR --- */
.steam-sub-nav {
    background: linear-gradient(to right, #3d4450, #22252b);
    padding: 8px 0;
    border-bottom: 1px solid #121418;
}

.steam-sub-nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: 13px;
}

.sub-menu__link {
    color: #d6d6d6;
    text-decoration: none;
}

.sub-menu__link:hover {
    color: #66c0f4;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #16202d;
    border: 1px solid #316282;
    border-radius: 3px;
    padding: 3px 8px;
}

.search-box__input {
    background: none;
    border: none;
    color: #fff;
    outline: none;
    font-size: 13px;
    width: 180px;
}

.search-box__btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #66c0f4;
}

/* --- STORE GRID AND GAME CARDS --- */
.store-content {
    margin-top: 40px;
    margin-bottom: 40px;
}

.store-title {
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: #16202d;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #233246;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #316282;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.game-card__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.game-card__image-placeholder {
    width: 100%;
    height: 280px;
    background-color: #2a3f5a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #859bb4;
    font-size: 14px;
    position: relative;
}

.game-card__image-placeholder::before {
    content: '✕';
    font-size: 40px;
    opacity: 0.15;
    position: absolute;
}

.game-card__footer {
    padding: 15px;
    background-color: #16202d;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card__title {
    font-size: 15px;
    color: #c7d5e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

.game-card__discount {
    background-color: #a3cf06;
    color: #1b2838;
    font-weight: bold;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 2px;
}

.game-card__price {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

/* --- RESPONSIVENESS MEDIA QUERIES --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .header_ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .header_a {
        font-size: 16px;
        padding: 8px 12px;
    }

    .first_name, .second_name {
        font-size: 22px;
    }

    .steam-sub-nav__container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }

    .sub-menu {
        justify-content: center;
    }

    .search-box {
        width: 100%;
        justify-content: space-between;
    }

    .search-box__input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER STYLES --- */
.steam-footer {
    background-color: #171a21;
    color: #8f98a0;
    padding: 30px 0 40px 0;
    font-size: 12px;
    margin-top: 50px;
}

.footer-separator {
    border: none;
    border-top: 1px solid #363c47;
    margin-bottom: 25px;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-logos {
    flex-shrink: 0;
}

.footer-logo-steam {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.footer-logo-steam sup {
    color: rgb(55, 104, 239);
    font-size: 10px;
    font-weight: bold;
    margin-left: 3px;
}

.footer-text {
    line-height: 1.6;
}

.footer-text p {
    margin-bottom: 8px;
}

.footer-links a {
    color: #8f98a0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* --- SUPPORT & INFO PAGE STYLES --- */
.info-page {
    margin-top: 40px;
    margin-bottom: 60px;
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-section {
    background-color: #16202d;
    border: 1px solid #233246;
    border-radius: 4px;
    padding: 30px;
}

.info-section__title {
    font-size: 20px;
    color: #fff;
    border-bottom: 1px solid #316282;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text {
    font-size: 14px;
    line-height: 1.7;
    color: #acb2b8;
}

.info-text p {
    margin-bottom: 15px;
}

.info-text strong {
    color: #fff;
}

/* EULA Scroll Box */
.eula-scroll-box {
    background-color: #0c121a;
    border: 1px solid #1a2533;
    border-radius: 4px;
    padding: 15px;
    height: 250px;
    overflow-y: scroll;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #8fa0b0;
    line-height: 1.5;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Scrollbar customization for EULA scroll box */
.eula-scroll-box::-webkit-scrollbar {
    width: 8px;
}
.eula-scroll-box::-webkit-scrollbar-track {
    background: #0c121a;
}
.eula-scroll-box::-webkit-scrollbar-thumb {
    background: #2a3f5a;
    border-radius: 4px;
}
.eula-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #3d5a80;
}

/* Mock Support Form */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    color: #c7d5e0;
    font-weight: 500;
}

.form-input, .form-textarea {
    background-color: #172030;
    border: 1px solid #2d4263;
    border-radius: 3px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    border-color: #66c0f4;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.support-form__submit {
    background-color: #66c0f4;
    color: #1b2838;
    border: none;
    padding: 12px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s, transform 0.1s;
}

.support-form__submit:hover {
    background-color: #8ed1f7;
}

.support-form__submit:active {
    transform: scale(0.98);
}

/* --- LOGIN BUTTON & SESSION STATE STYLES --- */
.login_button {
    background-color: #212c3d;
    color: #66c0f4;
    border: 1px solid #3d5a80;
    height: 30px;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.login_button:hover {
    background-color: #2a3f5a;
    color: #fff;
}

.user-display {
    color: #a3cf06;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-display::before {
    content: '👤';
    font-size: 14px;
}

.logout_button {
    background: none;
    border: none;
    color: #ff4a4a;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s;
}

.logout_button:hover {
    color: #ff6b6b;
}

/* --- AUTH MODAL OVERLAY --- */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- AUTH DIALOG BOX --- */
.auth-modal {
    background: linear-gradient(135deg, #18202c 0%, #0f141c 100%);
    border: 1px solid #233246;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    width: 720px;
    max-width: 90%;
    padding: 40px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-overlay.show .auth-modal {
    transform: translateY(0);
}

.auth-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #8f98a0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-modal__close:hover {
    color: #fff;
}

/* Modal double-column layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

@media (max-width: 680px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .auth-qr-column {
        display: none; /* Hide QR column on mobile */
    }
}

.auth-form-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-modal__title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-submit-btn {
    background: linear-gradient(90deg, #06b2ff 0%, #0076e5 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    filter: brightness(1.1);
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-toggle-link {
    color: #66c0f4;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
    margin-top: 15px;
}

.auth-toggle-link:hover {
    color: #8ed1f7;
}

/* QR Code Section */
.auth-qr-column {
    border-left: 1px solid #233246;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-qr-title {
    font-size: 14px;
    font-weight: bold;
    color: #66c0f4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.auth-qr-image-wrapper {
    background-color: #0c121a;
    border: 1px solid #233246;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.auth-qr-image-wrapper:hover {
    border-color: #06b2ff;
}

.auth-qr-img {
    width: 180px;
    height: 180px;
    display: block;
    object-fit: cover;
}

.auth-qr-subtext {
    font-size: 12px;
    color: #8f98a0;
    line-height: 1.5;
    max-width: 200px;
}