/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #FAFAFA;
    background-color: #050A0E;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
    width: 100%;
    z-index: 1000;
}

#wiki-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: auto;
    margin: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 240, 255, 0.55));
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
}

/* Menus de Navegação */
nav#main-nav {
    order: 1;
    width: 200px;
    background-color: #050A0E;
    color: #00F0FF;
    padding: 20px;
    box-shadow: 0 0 500px #FF003C;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 500;
}

nav#anchor-nav {
    order: 3;
    width: 200px;
    background-color: #050A0E;
    color: #00F0FF;
    padding: 20px;
    box-shadow: 0 0 500px #FF003C;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 500;
    margin-left: auto;
}

nav#main-nav ul,
nav#anchor-nav ul {
    list-style: none;
}

nav#main-nav ul li,
nav#anchor-nav ul li {
    margin-bottom: 10px;
}

nav#main-nav ul li a,
nav#anchor-nav ul li a {
    color: #00F0FF;
    text-decoration: none;
    transition: color 0.3s;
}

nav#main-nav ul li a:hover,
nav#anchor-nav ul li a:hover {
    color: #FF003C;
}

main {
    order: 2;
    flex-grow: 1;
    background-color: #050A0E;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 0 1000px #FF003C;
    border-radius: 8px;
}

main h1,
main h2 {
    color: #FCEE09;
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 10px;
}

h3, h4, h5, h6 {
    color: #FCEE09;
    padding-bottom: 6px;
}

main p {
    margin-bottom: 20px;
}

main a {
    color: #00F0FF;
    text-decoration: none;
    transition: color 0.3s;
}

main a:hover {
    color: #FF003C;
}

/* Grid de Personagens */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.grid figure {
    margin: 0;
    position: relative;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(252, 240, 9, 0.2);
}

.grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.grid img:hover {
    transform: scale(1.05);
}

.grid figcaption {
    padding: 5px;
    text-align: center;
    background-color: #050A0E;
    color: #FCEE09;
    border-radius: 0 0 8px 8px;
}

/* Visualização de Imagens Ampliadas */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 60, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    padding: 20px;
}

.lightbox:target {
    display: flex;
}

.lightbox figure {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.lightbox figcaption {
    color: #00F0FF;
    margin-top: 10px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 70px;
    right: 70px;
    font-size: 4em;
    color: #00F0FF;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin: 40px;
    font-size: 0.9em;
    color: #FCEE09;
    background-color: #050A0E;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        flex-direction: column;
    }

    nav#main-nav,
    nav#anchor-nav {
        width: 100%;
        margin-bottom: 20px;
    }

    main {
        margin: 0;
    }
}

.video-container {
    position: relative;
    padding-bottom: 46.25%;
    height: 0;
    overflow: hidden;
    max-width: 85%;
    margin: 0 auto;
    background: #FF003C;
    border-radius: 8px;
    box-shadow: 0 0 30px #1B1B1B;
}

.video-container iframe {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

section[aria-labelledby^="video"] {
    margin-bottom: 20px;
}

section[aria-labelledby^="video"] h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #FCEE09;
}

section[aria-labelledby^="video"] p {
    margin-bottom: 20px;
    color: #FAFAFA;
}

aside {
    background-color: #050A0E;
    border-left: 5px solid #FF003C;
    border-radius: 8px;
    box-shadow: 0 0 30px #1B1B1B;
    padding: 20px;
    margin-top: 60px;
    font-size: smaller;
    color: #FAFAFA;
}