/* Declare cascade layers */
@layer reset, base, components, utilities;

/* ------------------------------ */
/* RESET LAYER (optional here)    */
/* ------------------------------ */
@layer reset {
    /* Forum page does not need resets because style.css already provides them */
}

/* ------------------------------ */
/* BASE LAYER                     */
/* ------------------------------ */
@layer base {
    /* Base forum layout container */
    .forum-page {
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
    }

    /* Category headers */
    .forum-category h2 {
        font-family: Tahoma, Verdana, sans-serif;
        font-size: 18px;
        font-weight: bold;
        margin: 30px 0 15px;
        color: #1a1a1a;
    }
}

/* XP TEXT */
    .xp-text,
    .xp-text-title,
    .xp-text-regular {
        font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
        color: #ffffff;
        text-shadow:
            1px 1px 2px rgba(0, 0, 0, 0.45),
            0 0 3px rgba(0, 0, 0, 0.25),
            -1px -1px 1px rgba(255, 255, 255, 0.18);
    }

    .xp-text-title { font-size: 2rem; font-weight: 600; }
    .xp-text-regular { font-weight: normal; }
/* ------------------------------ */
/* COMPONENTS LAYER               */
/* ------------------------------ */
@layer components {

    /* POST CARDS */
    .forum-post {
        background: rgba(255,255,255,0.45);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.45);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
        overflow: hidden;
        position: relative;
    }

    /* Gloss strip */
    .forum-post::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 30%;
        background: rgba(255,255,255,0.20);
        filter: blur(6px);
        border-radius: 10px 10px 0 0;
        pointer-events: none;
    }

    /* Post title */
    .forum-post h3 {
        font-family: Tahoma, Verdana, sans-serif;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 6px;
        color: #1a1a1a;
        text-shadow: 0 1px 0 rgba(255,255,255,0.7);
    }

    /* Post description */
    .forum-post p {
        font-family: Tahoma, Verdana, sans-serif;
        font-size: 14px;
        margin-bottom: 10px;
        color: #2a2a2a;
    }

    /* Date */
    .post-date {
        font-family: Tahoma, Verdana, sans-serif;
        font-size: 12px;
        color: #555;
    }
}

/* -------------------------------------------------- */
    /* FULL-WIDTH FOOTER (your working version)           */
    /* -------------------------------------------------- */
    footer {
        padding: 20px;
        text-align: center;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.5),
            0 -3px 6px rgba(0,0,0,0.08);
        margin-top: auto;

        /* DO NOT TOUCH THESE */
        margin-left: 0;
        margin-right: 0;
    }

    footer a {
        color: #4a90e2;
        text-decoration: none;
    }

    footer a:hover {
        text-decoration: underline;
    }
/* ------------------------------ */
/* UTILITIES LAYER                */
/* ------------------------------ */
@layer utilities {
    /* Add future forum utility classes here */
}
