@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

/* NAVBAR --------------------------------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.navbar-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-link {
    color: #ccc;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.2s;
}

.nav-link:hover {
    color: white;
}

.nav-link-active {
    color: white;
    text-shadow: 0 0 6px white;
}

/* ============================================================
   ⬛ FANART GRID — FIXED-SIZE THUMBNAILS
   ============================================================ */
.fanart-container {
    margin: 40px auto;
    padding: 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 40px;

    justify-content: center;
    align-items: flex-start;
}

.fanart-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    /* FIX: each item same size */
    width: 350px;   /* << change if you want bigger/smaller */
}

.fanart-frame {
    width: 350px;
    height: 350px;
    padding: 0;

    background: #000;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* FIX: make images fit uniformly */
.fanart-thumb {
    width: 100%;
    height: 100%;

    object-fit: cover; /* crop to fill — best look */
    object-position: center;

    border-radius: 16px;
}

.fanart-credit {
    margin-top: 10px;
    text-align: center;
    color: #aaa;
}

/* Hover outline */
.fanart-frame:hover {
    outline-style: solid;
    outline-width: 2px;
    outline-color: #fff;
}



/* ============================================================
   MODAL OVERLAY
   ============================================================ */
#fanart-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    z-index: 999;
}

/* ============================================================
   POPUP CARD
   ============================================================ */
.fanart-modal-card {
    display: flex;
    background: transparent;
    border-radius: 22px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
    overflow: hidden;

    max-width: 90vw;
    max-height: 90vh;

    animation: fadeIn 0.25s ease;
}

/* POPUP IMAGE ---------------------------------------------- */
.fanart-modal-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

.fanart-modal-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* DETAILS PANEL -------------------------------------------- */
.fanart-modal-details {
    flex: 0.6;
    padding: 30px;
    color: white;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);

    overflow-y: auto;
    max-height: 90vh;
}

.fanart-modal-details h2 {
    margin-top: 0;
}

/* ANIMATION ------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   FANART PAGE HEADER
   ============================================================ */

.fanart-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #e7e7e7;
    padding: 0 20px;
}

.fanart-title {
    font-size: 2.8rem;
    margin: 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.fanart-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 300;
    opacity: 0.8;
}

.fanart-subtitle-2 {
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: 300;
    opacity: 0.8;
}

/* Divider with fading sides */
.fanart-divider {
    width: 100%;
    margin: 35px auto 0 auto;
}

.fanart-divider hr {
    border: none;
    height: 2px;
    width: 60%;
    margin: 0 auto;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    border-radius: 20px;
}



/* MOBILE ---------------------------------------------------- */
@media (max-width: 800px) {

    html, body {
        overflow-x: hidden !important;
        max-width: 100%;
    }

    body.modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }


    .fanart-item {
        width: 280px;
    }

    .fanart-frame {
        width: 280px;
        height: 280px;
    }

    .fanart-modal-card {
        flex-direction: column;
        max-height: 95vh;
    }
}
