/* ======================================================
   SIXSTATS HOMEPAGE REFRESH
   Load after styling2.1.css.

   This stylesheet keeps the existing homepage layout:
   - featured article and story list on the left
   - recent events on the right
====================================================== */

.homeProfilePage {
    --home-surface: rgba(255,255,255,0.025);
    --home-card: #1b202c;
    --home-card-deep: #151922;
    --home-card-hover: #202736;
    --home-line: rgba(255,255,255,0.09);
    --home-accent-line: rgba(135,206,250,0.30);
    --home-glow: rgba(135,206,250,0.10);
}

/* ======================================================
   PAGE SHELL — EXISTING TWO-COLUMN LAYOUT
====================================================== */

.homeProfilePage #indexMainContent {
    width: 100%;
    padding: 0.3vw 0 2vw;
}

.homeProfilePage #indexMainDiv {
    width: 70vw;
    max-width: 70vw;
    margin: 1.7vw auto 3vw;
    padding: 1.35vw;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 22vw;
    gap: 1.35vw;
    align-items: start;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(135,206,250,0.09),
            transparent 24vw
        ),
        var(--home-surface);

    border: 0.052vw solid rgba(255,255,255,0.10);
    border-radius: 1vw;
    box-shadow: 0 0.8vw 2.2vw rgba(0,0,0,0.30);
}

.homeProfilePage #mainarticleDisplayDiv {
    min-width: 0;
}

/* ======================================================
   SECTION HEADINGS
====================================================== */

.homeProfilePage .heading {
    display: flex;
    align-items: center;
    min-height: 2.2vw;
    margin: 0 0 0.8vw;
}

.homeProfilePage .heading h2 {
    position: relative;
    margin: 0;
    padding-left: 0.75vw;

    color: var(--text-main);
    font-size: 1.25vw;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.035vw;
}

.homeProfilePage .heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 0.18vw;
    height: 76%;

    background: var(--accent);
    border-radius: 50vw;
    box-shadow: 0 0 0.7vw rgba(135,206,250,0.25);
}

/* ======================================================
   FEATURED STORY
====================================================== */

.homeProfilePage #mainarticleDisplayDiv > a {
    display: block;
}

.homeProfilePage .mainarticleDiv {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.012)
        ),
        var(--home-card);

    border: 0.052vw solid var(--home-line);
    border-radius: 0.85vw;
    box-shadow: 0 0.55vw 1.5vw rgba(0,0,0,0.27);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.homeProfilePage #mainarticleDisplayDiv > a:hover .mainarticleDiv {
    transform: translateY(-0.18vw);
    border-color: var(--home-accent-line);
    box-shadow:
        0 0.8vw 1.8vw rgba(0,0,0,0.34),
        0 0 1.2vw rgba(135,206,250,0.055);
}

.homeProfilePage .mainarticleImage {
    width: 100%;
    height: 18vw;
    object-fit: cover;
    border-bottom: 0.052vw solid var(--home-line);
}

.homeProfilePage .mainarticleTitle {
    margin: 0;
    padding: 0.9vw 1vw 0.35vw;

    color: var(--text-main);
    font-size: 1.35vw;
    font-weight: 600;
    line-height: 1.2;
}

.homeProfilePage #mainarticleDate {
    margin: 0;
    padding: 0 1vw 0.9vw;

    color: var(--text-muted);
    font-size: 0.7vw;
    letter-spacing: 0.025vw;
}

/* ======================================================
   COMPACT STORY LIST
====================================================== */

.homeProfilePage #otherArticlesDiv {
    display: flex;
    flex-direction: column;
    gap: 0.62vw;
    margin-top: 0.75vw;
}

.homeProfilePage #otherArticlesDiv > a {
    display: block;
}

.homeProfilePage .articleDiv {
    display: grid;
    grid-template-columns: 6.2vw minmax(0, 1fr);
    align-items: center;
    gap: 0.8vw;
    min-height: 4.4vw;
    padding: 0.55vw;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.008)
        ),
        var(--home-card-deep);

    border: 0.052vw solid var(--home-line);
    border-radius: 0.65vw;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.homeProfilePage #otherArticlesDiv > a:hover .articleDiv {
    transform: translateX(0.16vw);
    background:
        linear-gradient(
            145deg,
            rgba(135,206,250,0.085),
            rgba(135,206,250,0.015)
        ),
        var(--home-card-hover);
    border-color: rgba(135,206,250,0.27);
}

.homeProfilePage .articleImage {
    width: 6.2vw;
    height: 4.1vw;
    object-fit: cover;
    border: 0.052vw solid rgba(255,255,255,0.07);
    border-radius: 0.48vw;
}

.homeProfilePage .articleinfodiv {
    min-width: 0;
}

.homeProfilePage .articleTitle {
    margin: 0 0 0.28vw;
    color: var(--text-main);
    font-size: 0.9vw;
    font-weight: 500;
    line-height: 1.25;
}

.homeProfilePage .articleindexDate {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.64vw;
}

.homeProfilePage #seeAllNewsLink {
    display: inline-flex;
    align-items: center;
    gap: 0.42vw;
    margin: 0.8vw 0 0;
    padding: 0.5vw 0.75vw;

    color: var(--accent);
    background: rgba(135,206,250,0.08);
    border: 0.052vw solid rgba(135,206,250,0.20);
    border-radius: 50vw;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.homeProfilePage #seeAllNewsLink:hover {
    transform: translateY(-0.1vw);
    background: rgba(135,206,250,0.14);
    border-color: rgba(135,206,250,0.36);
}

.homeProfilePage #seeAllNewsText {
    font-size: 0.72vw;
    line-height: 1;
}

.homeProfilePage #seeAllNewsLink .fa {
    font-size: 0.6vw;
}

/* ======================================================
   RECENT EVENTS SIDEBAR
====================================================== */

.homeProfilePage #recentEventsDiv {
    width: 100%;
    margin: 0;
    padding: 0.9vw;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.008)
        ),
        var(--home-card-deep);

    border: 0.052vw solid var(--home-line);
    border-radius: 0.85vw;
    box-shadow: none;
}

.homeProfilePage #recentEventsDiv .heading {
    margin-bottom: 0.68vw;
}

.homeProfilePage .recentEventTileLink {
    display: block;
}

.homeProfilePage .recentEventTile {
    position: relative;
    display: grid;
    grid-template-columns: 4vw minmax(0, 1fr) auto;
    column-gap: 0.72vw;
    row-gap: 0.24vw;
    align-items: center;
    min-height: 5.35vw;
    margin: 0 0 0.68vw;
    padding: 0.78vw;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.012)
        ),
        var(--home-card);

    border: 0.052vw solid var(--home-line);
    border-radius: 0.62vw;
    box-shadow: none;

    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.homeProfilePage .recentEventTileLink:last-child .recentEventTile {
    margin-bottom: 0;
}

.homeProfilePage .recentEventTileLink:hover .recentEventTile {
    transform: translateX(0.14vw);
    background:
        linear-gradient(
            145deg,
            rgba(135,206,250,0.09),
            rgba(135,206,250,0.018)
        ),
        var(--home-card-hover);
    border-color: rgba(135,206,250,0.28);
}

.homeProfilePage .recentEventTileImage {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 4vw;
    height: 4vw;
    margin: 0;
    padding: 0.38vw;
    object-fit: contain;

    background: rgba(255,255,255,0.035);
    border: 0.052vw solid rgba(255,255,255,0.07);
    border-radius: 0.55vw;
}

.homeProfilePage .recentEventTitle {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    margin: 0;
    color: var(--text-main);
    font-size: 0.86vw;
    font-weight: 600;
    line-height: 1.2;
}

.homeProfilePage .recentEventDate {
    grid-column: 2 / 4;
    grid-row: 2;
    align-self: start;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.6vw;
    line-height: 1.35;
}

.homeProfilePage #recentEventDateSpan {
    color: var(--accent);
}

.homeProfilePage .recentEventStatus {
    grid-column: 3;
    grid-row: 1;
    align-self: start;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28vw;
    padding: 0.22vw 0.42vw;

    border: 0.052vw solid transparent;
    border-radius: 50vw;

    font-size: 0.5vw;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.025vw;
    text-transform: uppercase;
    white-space: nowrap;
}

.homeProfilePage .recentEventStatusDot {
    width: 0.34vw;
    height: 0.34vw;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.homeProfilePage .recentEventStatus--live {
    color: #63e68c;
    background: rgba(63,207,105,0.10);
    border-color: rgba(99,230,140,0.28);
}

.homeProfilePage .recentEventStatus--live .recentEventStatusDot {
    box-shadow: 0 0 0.45vw rgba(99,230,140,0.65);
    animation: recentEventLivePulse 1.8s ease-in-out infinite;
}

.homeProfilePage .recentEventStatus--upcoming {
    color: var(--accent);
    background: rgba(135,206,250,0.09);
    border-color: rgba(135,206,250,0.25);
}

.homeProfilePage .recentEventStatus--complete {
    color: #aab3c0;
    background: rgba(170,179,192,0.08);
    border-color: rgba(170,179,192,0.20);
}

@keyframes recentEventLivePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.78);
    }
}

@media (prefers-reduced-motion: reduce) {
    .homeProfilePage .recentEventStatus--live .recentEventStatusDot {
        animation: none;
    }
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {
    .homeProfilePage #indexMainDiv {
        width: 92vw;
        max-width: 92vw;
        grid-template-columns: minmax(0, 1fr) 30vw;
    }

    .homeProfilePage .heading h2 {
        font-size: 1.7vw;
    }

    .homeProfilePage .articleTitle {
        font-size: 1.15vw;
    }

    .homeProfilePage .articleindexDate,
    .homeProfilePage #mainarticleDate {
        font-size: 0.9vw;
    }

    .homeProfilePage .recentEventTitle {
        font-size: 1.05vw;
    }

    .homeProfilePage .recentEventDate {
        font-size: 0.78vw;
    }

    .homeProfilePage .recentEventStatus {
        font-size: 0.68vw;
    }
}

/* ======================================================
   MOBILE — SAME CONTENT ORDER, SINGLE COLUMN
====================================================== */

@media (max-width: 768px) {
    .homeProfilePage #indexMainContent {
        padding: 0;
    }

    .homeProfilePage #indexMainDiv {
        width: 94vw;
        max-width: 94vw;
        margin: 14px auto 24px;
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 14px;

        border-width: 1px;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    }

    .homeProfilePage .heading {
        min-height: 32px;
        margin-bottom: 9px;
    }

    .homeProfilePage .heading h2 {
        padding-left: 11px;
        font-size: 19px;
        letter-spacing: 0.3px;
    }

    .homeProfilePage .heading h2::before {
        width: 3px;
        border-radius: 999px;
    }

    .homeProfilePage .mainarticleDiv {
        border-width: 1px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .homeProfilePage #mainarticleDisplayDiv > a:hover .mainarticleDiv {
        transform: none;
    }

    .homeProfilePage .mainarticleImage {
        height: 205px;
        border-bottom-width: 1px;
    }

    .homeProfilePage .mainarticleTitle {
        padding: 12px 12px 5px;
        font-size: 18px;
    }

    .homeProfilePage #mainarticleDate {
        padding: 0 12px 12px;
        font-size: 12px;
    }

    .homeProfilePage #otherArticlesDiv {
        gap: 8px;
        margin-top: 10px;
    }

    .homeProfilePage .articleDiv {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        min-height: 72px;
        padding: 8px;
        border-width: 1px;
        border-radius: 10px;
    }

    .homeProfilePage #otherArticlesDiv > a:hover .articleDiv {
        transform: none;
    }

    .homeProfilePage .articleImage {
        width: 92px;
        height: 62px;
        border-width: 1px;
        border-radius: 8px;
    }

    .homeProfilePage .articleTitle {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .homeProfilePage .articleindexDate {
        font-size: 11px;
    }

    .homeProfilePage #seeAllNewsLink {
        gap: 7px;
        margin-top: 10px;
        padding: 8px 12px;
        border-width: 1px;
        border-radius: 999px;
    }

    .homeProfilePage #seeAllNewsText {
        font-size: 13px;
    }

    .homeProfilePage #seeAllNewsLink .fa {
        font-size: 10px;
    }

    .homeProfilePage #recentEventsDiv {
        padding: 10px;
        border-width: 1px;
        border-radius: 12px;
    }

    .homeProfilePage #recentEventsDiv .heading {
        margin-bottom: 8px;
    }

    .homeProfilePage .recentEventTile {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        column-gap: 10px;
        row-gap: 5px;
        min-height: 88px;
        margin-bottom: 8px;
        padding: 10px;
        border-width: 1px;
        border-radius: 10px;
    }

    .homeProfilePage .recentEventTileLink:hover .recentEventTile {
        transform: none;
    }

    .homeProfilePage .recentEventTileImage {
        width: 64px;
        height: 64px;
        padding: 5px;
        border-width: 1px;
        border-radius: 9px;
    }

    .homeProfilePage .recentEventTitle {
        font-size: 14px;
    }

    .homeProfilePage .recentEventDate {
        font-size: 11px;
    }

    .homeProfilePage .recentEventStatus {
        gap: 5px;
        padding: 5px 7px;
        border-width: 1px;
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .homeProfilePage .recentEventStatusDot {
        width: 6px;
        height: 6px;
    }
}