:root {
    --bg-color: #010a05; 
    --text-color: #33ffb8; 
    --outline-color: #33ffb8;
    --glow: 0 0 8px rgba(51, 255, 184, 0.6);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    text-shadow: var(--glow);
    min-height: 100vh;
}

/* The CRT Scanline Effect */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none; 
    z-index: 99999; /* Scanlines over EVERYTHING */
}

/* --- UNIVERSAL NAVBAR & PROFILE MENU --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--outline-color);
    box-shadow: 0 4px 10px rgba(51, 255, 184, 0.2);
    position: relative;
    z-index: 10000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: text-shadow 0.2s;
}

.nav-links a:hover {
    text-shadow: 0 0 15px var(--text-color);
}

.outline-btn {
    background: none;
    color: var(--text-color);
    border: 2px solid var(--outline-color);
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-family: inherit;
    box-shadow: var(--glow);
    transition: all 0.2s ease-in-out;
}

.outline-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    text-shadow: none;
}

/* The Profile Dropdown Container */
.profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-pfp-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--outline-color);
    object-fit: cover;
    background: var(--bg-color);
    box-shadow: var(--glow);
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--bg-color);
    border: 2px solid var(--outline-color);
    min-width: 220px;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), var(--glow);
    z-index: 20000;
}

.profile-wrapper:hover .profile-dropdown {
    display: flex;
}

.profile-dropdown span {
    border-bottom: 1px dashed var(--outline-color);
    padding-bottom: 10px;
    margin-bottom: 5px;
    text-align: right;
    font-weight: bold;
    word-break: break-all;
}

.dropdown-link {
    color: var(--text-color);
    text-decoration: none;
    text-align: right;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 0.9em;
}

.dropdown-link:hover {
    color: var(--bg-color);
    background-color: var(--text-color);
    text-shadow: none;
}

/* --- LAYOUT CONTAINERS --- */
.hero, .page-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* --- THE PHYSICAL FILING CABINET --- */
.cabinet {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    padding-bottom: 50px;
}

.folder {
    position: relative;
    width: 100%;
    margin-top: -30px; /* Tighter stack */
    transition: transform 0.2s ease, z-index 0s;
}

/* Makes the hovered folder jump to the absolute front layer */
.folder:hover:not(.open) {
    z-index: 900 !important; 
    transform: translateY(-10px);
}

.folder-tab {
    width: max-content;
    min-width: 320px; 
    border: 2px solid var(--outline-color);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 15px 30px;
    background-color: var(--bg-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
}

.folder-body {
    border: 2px solid var(--outline-color);
    background-color: var(--bg-color);
    height: 430px; /* UPGRADED: Massive, chunky physical folder size */
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: height 0.4s ease-in-out, padding 0.4s ease-in-out;
    border-radius: 0 8px 8px 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.folder.open {
    position: fixed;
    top: 5vh;
    left: 5vw;
    width: 90vw;
    height: 90vh;
    z-index: 2000 !important;
    margin-top: 0;
    transform: none;
}

.folder.open .folder-body {
    height: calc(100% - 50px);
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 0 12px 12px 12px;
}

.folder.open .folder-tab {
    cursor: default;
}

.folder-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in;
    transition-delay: 0.2s;
    text-align: left; 
}

.folder.open .folder-content {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--outline-color);
    color: var(--text-color);
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    box-shadow: var(--glow);
    z-index: 3000;
}

.close-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.dossier-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    border: 1px dashed var(--outline-color);
    padding: 30px;
    background: rgba(51, 255, 184, 0.05);
    align-items: start;
    margin-top: 20px;
}

.dossier-pfp {
    width: 100%;
    aspect-ratio: 1; 
    border: 2px solid var(--outline-color);
    object-fit: cover;
}

.hater-pfp {
    width: 44px;
    height: 44px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid var(--outline-color);
    background: var(--bg-color);

    display: block;
    box-shadow: var(--glow);
}

/* --- CUSTOM NEON TOOLTIPS --- */
.has-tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.custom-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%; /* Position above the element */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--outline-color);
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 9999;
    box-shadow: var(--glow);
    pointer-events: none;
    transition: opacity 0.2s, bottom 0.2s;
}

.has-tooltip:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 130%; /* Slight slide up effect */
}

/* --- MEMBER ID CARDS (VALUED MEMBERS) --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.member-card {
    border: 2px solid var(--outline-color);
    background: rgba(51, 255, 184, 0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--glow);
    transition: transform 0.2s ease;
    text-align: left;
}

.member-card:hover {
    transform: translateY(-5px);
    background: rgba(51, 255, 184, 0.1);
}

.member-header {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px dashed var(--outline-color);
    padding-bottom: 20px;
}

.member-pfp {
    width: 90px;
    height: 90px;
    border: 2px solid var(--outline-color);
    object-fit: cover;
    border-radius: 4px;
}

.hates-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hate-tag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid red;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.hate-tag:hover {
    transform: scale(1.1);
}

/* Custom Red Tooltip specifically for Hated Enemies */
.has-tooltip.enemy-tooltip .custom-tooltip {
    border-color: red;
    color: red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
}
