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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #313338;
    color: #F2F3F5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* --- HEADER & TYPOGRAPHY --- */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-pic {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5865F2;
}

.page-title {
    font-weight: normal;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.info-lines {
    text-align: center;
    font-size: 0.95rem;
    color: #B5BAC1;
    line-height: 1.5;
}

.section-divider {
    font-weight: normal;
    font-size: 1.2rem;
    margin: 50px 0 30px 0;
}

/* --- SHARED BUTTON STYLES --- */
.box-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1E1F22;
    border-radius: 8px;
    text-decoration: none;
    background-color: #F2F3F5;
    color: #111214;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.box-link:hover {
    border-color: #5865F2;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

/* --- TOP SECTION (Social Grid) --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.grid-item {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-item[style*="background-image"]::before {
    opacity: 1;
}

.grid-item:hover::before {
    background: rgba(255, 255, 255, 0.5);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* --- BOTTOM SECTION (Resource List) --- */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.list-item {
    height: 85px;
    width: 100%;
    padding: 0 30px;
    text-align: center;
}

.list-item:hover {
    background-color: #ffffff;
    transform: scale(1.02);
}

/* --- FOOTER --- */
.site-footer {
    height: 50px;
    background-color: #1E1F22;
    border-top: 4px solid #5865F2;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding-top: 12px;
    color: #B5BAC1;
    line-height: 1.5;
}

/* --- CONTACT FORM --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background-color: #1E1F22;
    border: 2px solid #1E1F22;
    border-radius: 8px;
    color: #F2F3F5;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input::placeholder {
    color: #80848E;
}

.form-input:focus {
    border-color: #5865F2;
}

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

.form-submit {
    cursor: pointer;
    padding: 15px;
    margin-top: 10px;
}

/* --- FORM POPUP MESSAGE --- */
.form-result {
    display: none;
    text-align: center;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-result.success {
    background-color: #23A559;
    color: #ffffff;
}

.form-result.error {
    background-color: #DA373C;
    color: #ffffff;
}

/* --- DROPDOWN MENU --- */
.custom-dropdown {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.dropdown-toggle {
    cursor: pointer;
    list-style: none;
    text-align: center;
    transition: color 0.2s ease;
    user-select: none;
}

.dropdown-toggle::-webkit-details-marker {
    display: none;
}

.dropdown-toggle:hover {
    color: #F2F3F5;
}

.dropdown-toggle::after {
    content: ' ▼';
    display: inline-block;
    font-size: 0.8em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

details[open] .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-content {
    margin-top: 25px;
    animation: dropFade 0.3s ease-in-out;
    width: 100%;
}

:root {
    --game-color: 102, 192, 244;
}

/* --- STEAM STATUS BOX --- */
.steam-status-container {
    background-color: rgba(var(--game-color), 0.15);
    border: 2px solid rgb(var(--game-color));
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px;
    transition: all 0.8s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-label {
    font-size: 0.7rem;
    color: rgb(var(--game-color));
    letter-spacing: 1.5px;
    font-weight: bold;
    transition: color 0.8s ease;
}

.steam-status-container:hover {
    box-shadow: 0 0 20px rgba(var(--game-color), 0.3);
}

.steam-status-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.steam-game-img {
    width: 120px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    border: 1px solid #313338;
}

.steam-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#steam-game-text {
font-size: 1.1rem;
color: #ffffff;
font-weight: bold;
}

.steam-hours {
    font-size: 0.75rem;
    color: #8f98a0;
    font-family: inherit;
    margin-top: 2px;
}

/* --- TOP NAVIGATION --- */
.top-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #B5BAC1;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.nav-link:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #4E5058;
    font-weight: normal;
    pointer-events: none;
}

.nav-link:hover {
    color: #F2F3F5;
}

.nav-link.active {
    color: #5865F2;
    font-weight: bold;
}

/* Adjustments for the non-dropdown form */
.contact-form {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .top-nav {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-top: 20px;
        order: -1;
    }
}

/* Optional: Adds a smooth fade-in effect when opening */
@keyframes dropFade {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

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