/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Header */
header {
    background: url("images/hero_background.jpg") no-repeat center center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Navigation */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    z-index: 1000;
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    cursor: pointer;
    z-index: 10;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background: #d4a017;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #d4a017;
}

/* Hero Section */
.hero {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

h1 {
    font-size: 3.5rem;
    color: #d4a017;
    text-shadow: 2px 2px 4px #000;
}

.tagline {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.platforms a {
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.platforms a:hover {
    color: #d4a017;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    color: #d4a017;
    margin-bottom: 2rem;
    text-align: center;
}

/* About */
#about p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.feature img {
    width: 300px;
    height: 225px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.feature p {
    font-size: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    text-align: center;
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.gallery-grid img {
    width: 400px;
    height: 300px;
    border-radius: 5px;
    transition: transform 0.3s;
}

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

/* Updates */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.update {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.update h3 {
    font-size: 1.8rem;
    color: #d4a017;
    margin-bottom: 0.5rem;
}

.update .date {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.update p {
    font-size: 1.2rem;
}

.update .media {
    margin-top: 1rem;
    text-align: center;
}

.update .media img {
    max-width: 100%;
    border-radius: 5px;
}

/* Documents */
.document-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.document {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.document h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: #d4a017;
    margin-bottom: 1rem;
}

.doc-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #d4a017;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 160, 23, 0.7),
        inset 0 0 5px rgba(212, 160, 23, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.document h3 a:hover .doc-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 160, 23, 1),
        inset 0 0 8px rgba(212, 160, 23, 0.8);
}

.document p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.doc-link {
    display: inline-block;
    color: #d4a017;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.doc-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Characters and Locations (New Additions) */
.character-grid,
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.character,
.location {
    text-align: center;
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.character img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.location img {
    width: 150px;
    height: 100px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.character h3,
.location h3 {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.character a,
.location a {
    text-decoration: none;
    color: inherit;
}

.character p,
.location p {
    font-size: 0.9rem;
}

.character-images,
.location-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.character-images img {
    width: 300px;
    height: 400px;
    border-radius: 5px;
    object-fit: cover;
}

.location-images img {
    width: 400px;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
}

.character-info h3,
#location-detail h3 {
    font-size: 1.8rem;
    color: #d4a017;
    margin: 1rem 0 0.5rem;
}

.character-info p,
#location-detail p {
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #0f0f0f;
    font-size: 1rem;
}

footer a {
    color: #d4a017;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Desktop Nav (Ensure Horizontal) */
@media (min-width: 768px) {
    .nav-toggle-label {
        display: none !important;
    }
    nav ul {
        display: flex !important;
    }
}

/* Responsive Design for Mobile */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .platforms a {
        display: block;
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Collapsible Nav */
    .nav-toggle-label {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 3rem;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        text-align: center;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Stack grids to one column */
    .feature-grid,
    .gallery-grid,
    .document-list,
    .character-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .feature img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .gallery-grid img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    .character img {
        width: 80px;
        height: 80px;
    }

    .location img {
        width: 100%;
        height: auto;
        max-width: 150px;
    }

    .character-images img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .location-images img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    .update h3 {
        font-size: 1.4rem;
    }

    .update p {
        font-size: 1rem;
    }

    .document h3 {
        flex-direction: column;
        text-align: center;
    }

    .doc-icon {
        width: 80px;
        height: 80px;
    }

    .feature,
    .gallery-item,
    .document,
    .character,
    .location {
        padding: 1.5rem;
    }

    section {
        padding: 2rem 1rem;
    }
}
.weapon-grid,
.armor-grid,
.magic-grid,
.item-grid,
.enemy-grid,
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.weapon,
.armor,
.magic,
.item,
.enemy,
.gameplay {
    text-align: center;
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.weapon img,
.armor img,
.magic img,
.item img,
.enemy img,
.gameplay img {
    width: 150px;
    height: 100px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .weapon-grid,
    .armor-grid,
    .magic-grid,
    .item-grid,
    .enemy-grid,
    .gameplay-grid {
        grid-template-columns: 1fr;
    }
}
