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

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #0a0f1f, #000);
    color: white;
}

/* HEADER */
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.logo img {
    height: 60px;
}
nav {
    justify-self: center;
}

/* PROFILE */
.profile {
    position: relative;
    justify-self: end;
}

/* PROFILE IMAGE */
.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #00ccff;
    transition: 0.3s;
}

.profile-pic:hover {
    box-shadow: 0 0 10px #00ccff;
}

/* DROPDOWN */
.dropdown {
    position: fixed; /* 🔥 KEY CHANGE */
    top: 80px;       /* distance from top of screen */
    right: 40px;     /* align with header padding */

    width: 240px;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(0,150,255,0.3);
    border-radius: 12px;

    display: none;
    flex-direction: column;

    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0,150,255,0.2);

    z-index: 9999; /* stays above everything */
}

.dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* HEADER INSIDE DROPDOWN */
.dropdown-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(0,150,255,0.2);
}

.dropdown-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.name {
    font-weight: bold;
}

.email {
    font-size: 12px;
    color: #aaa;
}

/* LINKS */
.dropdown a {
    padding: 10px;
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.dropdown a:hover {
    background: rgba(0,150,255,0.2);
    color: #00ccff;
}

/* LOGOUT STYLE */
.logout {
    color: #ff4d4d;
}

/* SHOW CLASS */
.dropdown.show {
    display: flex;
}
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
    justify-self: center;
}
.header-right {
    justify-self: end;
}

nav a:hover {
    color: #00ccff;
    text-shadow: 0 0 8px #00ccff;
}

/* HERO */
.hero {
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 48px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px #00ccff;
}

.hero p {
    margin-top: 10px;
    color: #aaa;
}

.hero button {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    background: linear-gradient(45deg, #0077ff, #00ccff);
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.hero button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ccff;
}

/* CONTENT */
.content {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

/* reuse your login box but improve it */
.login-box {
    width: 320px;
    padding: 25px;
    background: rgba(10, 15, 30, 0.95);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,150,255,0.3);
}

.login-box input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

.login-box button {
    padding: 10px 20px;
    cursor: pointer;
}

/* hidden state */
.overlay.hidden {
    display: none;
}

.info-buttons {
    margin-top: 20px;
}
/* NAV DROPDOWN (Game Info) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropbtn {
    background: none;
    color: #ccc;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
}

.nav-dropbtn:hover {
    color: #00ccff;
    text-shadow: 0 0 8px #00ccff;
}

/* Dropdown menu */
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background-color: rgba(10, 15, 30, 0.95);
    min-width: 180px;
    border: 1px solid rgba(0,150,255,0.3);
    border-radius: 8px;

    z-index: 5000;
}

/* Links */
.nav-dropdown-content a {
    color: #ccc;
    padding: 10px;
    display: block;
    text-decoration: none;
}

.nav-dropdown-content a:hover {
    background: rgba(0,150,255,0.2);
    color: #00ccff;
}

/* Show on hover */
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}
.info-buttons button {
    display: block;
    margin: 10px 0;
    padding: 12px;
    width: 200px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
}

.info-buttons button:hover {
    background-color: #333;
}
/* GAME INFO PAGE */
.game-info-container {
    text-align: center;
    padding: 80px 20px;
}

/* TITLE */
.game-title {
    font-size: 42px;
    text-shadow: 0 0 15px #00ccff;
    margin-bottom: 10px;
}

.game-subtitle {
    color: #aaa;
    margin-bottom: 40px;
}

/* GRID LAYOUT */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

/* CARD STYLE */
.info-card {
    text-decoration: none;
    color: white;

    padding: 25px;
    border-radius: 12px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,150,255,0.2);

    transition: 0.3s;
    backdrop-filter: blur(10px);
}

/* HOVER EFFECT */
.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 25px rgba(0,150,255,0.4);
    border-color: #00ccff;
}

/* TEXT INSIDE CARDS */
.info-card h2 {
    margin-bottom: 10px;
}

.info-card p {
    color: #bbb;
    font-size: 14px;
}
/* TIMELINE PAGE */
.timeline-container {
    padding: 80px 20px;
    text-align: center;
}

/* TIMELINE STRUCTURE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding-left: 20px;
    border-left: 2px solid #00ccff;
}

/* ITEM */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    text-align: left;
}

/* DOT */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -18px; /* ← increased space */
    top: 5px;
    width: 16px;
    height: 16px;
    background: #00ccff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ccff;
}

/* DATE */
.timeline-date {
    font-weight: bold;
    color: #00ccff;
    margin-bottom: 5px;
}

/* CONTENT BOX */
.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0,150,255,0.2);
}

/* HOVER EFFECT */
.timeline-content:hover {
    box-shadow: 0 0 15px rgba(0,150,255,0.3);
}

/* WARNING (yellow-ish glow) */
.timeline-item.warning::before {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

/* DANGER (red glow) */
.timeline-item.danger::before {
    background: #ff3b3b;
    box-shadow: 0 0 10px #ff3b3b;
}
/* TIMELINE BREAK */
.timeline-break {
    text-align: center;
    margin: 60px 0 20px;
    position: relative;
}

.timeline-break span {
    color: #ff3b3b;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px red;
}

/* line effect */
.timeline-break::before {
    content: "";
    display: block;
    height: 2px;
    background: red;
    margin-bottom: 10px;
    box-shadow: 0 0 10px red;
}

.timeline-break-sub {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-break-sub span {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 2px;
}
/* CHARACTERS PAGE */
.characters-container {
    padding: 80px 20px;
    text-align: center;
}

/* GRID */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

/* CARD */
.character-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,150,255,0.2);
    border-radius: 12px;
    padding: 20px;

    transition: 0.3s;
    backdrop-filter: blur(10px);
}

/* IMAGE */
.character-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* TEXT */
.character-card h2 {
    margin-bottom: 10px;
}

.character-card p {
    font-size: 14px;
    color: #bbb;
}

/* HOVER */
.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(0,150,255,0.3);
}

/* MONSTER STYLE */
.character-card.danger {
    border-color: rgba(255,0,0,0.3);
}

.character-card.danger:hover {
    box-shadow: 0 0 25px rgba(255,0,0,0.4);
}
.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.team-card {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 150px;
}

.team-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
/* TAG BADGES */
.tags {
    margin-top: 6px;
}

.tag-badge {
    display: inline-block;
    background: #222;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 6px;
    font-size: 11px;
}

/* ROLE GLOWS */
.glow-owner {
    box-shadow: 0 0 8px gold;
    border: 1px solid gold;
}

.glow-artist {
    box-shadow: 0 0 8px violet;
    border: 1px solid violet;
}

.glow-voice {
    box-shadow: 0 0 8px cyan;
    border: 1px solid cyan;
}
