/* ############################################################################################################################################################################ */
/* ############################################################################################################################################################################ */
/* Glyph Chronicles Public Website                                                                                                                                              */
/*  • Page:            	        Grimoire Nav Stylesheet (grimoirenav.css)                                                                                                       */
/*  • Description:              Styles for set listing, card grids, type/color filtering, and lightbox viewer                                                                   */
/*  • Location:               	/modules/grimoirenav/css/grimoirenav.css                                                                                                        */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  • Version:                  v0.0.05 α                                                                                                                                       */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  • Project Start Date:       2026-04-07                                                                                                                                      */
/*  • Creation Date:            2026-05-15                                                                                                                                      */
/*  • Last updated:             2026-05-15 @ 0845 EDT                                                                                                                           */
/* ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  • Author:                   by Conner Rhoads (Lighthammer)                                                                                                                  */
/*  • Official Site:            www.glyphchronicles.com                                                                                                                         */
/* ############################################################################################################################################################################ */
/* CHANGE LOG:                                                                                                                                                                  */
/*  • 2026-05-15:               Initial functional stylesheet with set cards, section styling, card grids, toggles, and lightbox support.                                       */
/*  • 2026-05-15:               FIXED magnify/zoom using dedicated .magnified class + full-viewport container (works with latest JS).                                            */
/* ############################################################################################################################################################################ */
/* ############################################################################################################################################################################ */

/* ============================================================================================================================================================================ */
/* [START] GRIMOIRE NAV STYLESHEET                                                                                                                                            */
/* ============================================================================================================================================================================ */

/* Set List Page */
.grimoire-set-list
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grimoire-set-card
{
    display: block;
    background: #1a1a1a;
    border: 3px solid #c9a04f;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.grimoire-set-card:hover
{
    border-color: #e8c070;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.grimoire-set-card h3
{
    margin: 0;
    color: #e0e0e0;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Individual Set Page */
.grimoire-set
{
    max-width: 1400px;
    margin: 0 auto;
}

.grimoire-section
{
    margin-bottom: 60px;
}

.section-header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid #3a2f1f;
    padding-bottom: 8px;
}

.section-header h2
{
    margin: 0;
}

.toggle-type
{
    background: #2a2a2a;
    color: #c9a04f;
    border: 2px solid #c9a04f;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.toggle-type:hover
{
    background: #c9a04f;
    color: #111;
}

/* Card Grid */
.card-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.card
{
    background: #111;
    border: 2px solid #3a2f1f;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover
{
    transform: scale(1.03);
    border-color: #c9a04f;
}

.card img
{
    width: 100%;
    height: auto;
    display: block;
}

/* Back to Top Links */
.back-to-top
{
    display: inline-block;
    margin-top: 12px;
    color: #c9a04f;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-to-top:hover
{
    text-decoration: underline;
}

/* ============================================================================================================================================================================ */
/* LIGHTBOX (FULLY FIXED FOR MAGNIFY/ZOOM)                                                                                                                                     */
/* ============================================================================================================================================================================ */

.lightbox
{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active
{
    display: flex;
}

.lightbox-content
{
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.lightbox-content img
{
    width: auto;
    height: auto;
    max-width: 88vw;
    max-height: 88vh;
    border: 4px solid #c9a04f;
    border-radius: 6px;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center center;
    cursor: zoom-in;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.75);
    display: block;
}

/* MAGNIFY CLASS — this is what makes the zoom actually appear */
.lightbox-content img.magnified
{
    transform: scale(2.8);
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

.lightbox-close
{
    position: absolute;
    top: -45px;
    right: 25px;
    background: none;
    border: none;
    color: #c9a04f;
    font-size: 2.3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover
{
    color: #fff;
}

/* ============================================================================================================================================================================ */
/* [END] GRIMOIRE NAV STYLESHEET                                                                                                                                                */
/* ============================================================================================================================================================================ */