
/* Container for boxes - use flexbox */

.boxes-container {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    margin-top : 20px;
}

/* 1:3 ratio box */
.box-1-3 {
    flex: 1;
    background-color: rgba(19,0,27,0.75);
    padding: 16px;
    border-radius: 6px;
    border: 1px ridge var(--Penumbra);
    box-shadow: 3px 3px black;
    color: var(--Moonlight);
    box-sizing: border-box;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.box-1-3 > h2 {
    flex-shrink: 0;
}

/* Currents section styling - each section takes equal space */
.currentHead {
    background-color: rgba(170, 147, 220, 0.4);
    padding: 6px 10px;
    font-family: 'Kulture', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--BabyPur);
    border-radius: 4px 4px 0 0;
    margin-top: 8px;
    flex-shrink: 0;
}

.currentHead:first-of-type {
    margin-top: 0;
}

.currentBody {
    background-color: rgba(12, 0, 18, 0.5);
    padding: 10px;
    font-family: 'SourceCode', monospace;
    font-size: 14px;
    color: var(--Moonlight);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 4px 4px;
    margin-bottom: 8px;
    line-height: 1.5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.currentBody a {
    color: var(--LinkLight);
    text-decoration: none;
    transition: color 180ms ease;
    cursor: url(https://www.rw-designer.com/cursor-view/144662.png), url(https://www.rw-designer.com/cursor-view/144662.png), auto;
}

.currentBody a:hover {
    color: var(--BabyPur);
}

.currentBody small {
    font-size: 11px;
    opacity: 0.7;
}

.currentBody small a {
    font-size: 11px;
}

/* 2:3 ratio box (main) */
main {
    flex: 2;
    background-color: rgba(19,0,27,0.75);

    padding: 16px;
    border-radius: 6px;
    border: 1px ridge var(--Penumbra);
    box-shadow: 3px 3px black;
    color: var(--Moonlight);
    box-sizing: border-box;
    min-height: 240px;
}

/* Logbook styling inside the 2:3 box */
.logmenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logmenu h2 {
    margin: 0;
    font-family: 'Kulture';
    letter-spacing: 4px;
    font-size: 20px;
    color: var(--LinkLight);
}

.logbox {
    background: rgba(12, 0, 18, 0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.logbox ul {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'FairFax';
    font-size: 14px;
    color: var(--Moonlight);
}

.logbox li {
    line-height: 1.35;
    font-size: 16px;
    font-family: 'SourceCode';
    margin-bottom: 6px; /* extra spacing without touching line-height */
}

.logbox li:last-child {
    margin-bottom: 0;
}

/* subtle dotted separators between log items (transparent-ish) */
.logbox li + li {
    border-top: 1px dotted rgba(255,255,255,0.14);
    padding-top: 6px;
}

/* Separator as an li; hide its bullet and draw a dotted line */
.logbox .log-separator {
    list-style: none;
    border: none;
    border-top: 1px dotted rgba(255,255,255,0.25);
    margin: 6px 0 4px 0;
    padding: 0;
}

.logbox a {
    color: var(--LinkLight);
    text-decoration: none;
}

.logbox a:hover {
    text-decoration: underline dotted;
}

.log-separator {
    width: 100%;
    border: none;
    border-top: 1px dotted rgba(255,255,255,0.25);
    margin: 6px 0 4px 0;
}

/* Right sidebar styling (What's New) */
.Right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 530px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 900;
    pointer-events: auto;
    overflow: hidden;
}

.ContentBox {
    background-color: rgba(19,0,27,0.82);
    border: 1px ridge var(--Penumbra);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 3px 3px black;
    color: var(--Moonlight);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ContentBox .title-bar {
    background-color: rgba(48, 38, 72, 0.643);
    border: 1px ridge rgba(92, 52, 157, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.ContentBox .title-bar-text p {
    letter-spacing: 6px;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Kulture';
    font-size: 30px;
    color: var(--Moonlight);
}

.CurrentBody.New {
    background-color: rgba(12, 0, 18, 0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 2px dotted rgba(170, 147, 220, 0.3);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.CurrentBody.New:hover {
    background-color: rgba(170, 147, 220, 0.15);
    border-bottom-color: var(--BabyPur);
}

.CurrentBody.New:last-child {
    border-bottom: 1px dotted var(--Moonlight);
}

.CurrentBody.New img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px ridge rgba(0,0,0,0.4);
    display: block;
}

.CurrentBody.New p {
    margin: 0;
    font-family: 'SourceCode', monospace;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.CurrentBody.New a {
    color: var(--LinkLight);
    text-decoration: none;
    transition: color 160ms ease;
}

.CurrentBody.New a:hover {
    color: var(--BabyPur);
    text-decoration: underline;
}

.CurrentBody.New {
    margin-left: 0px;
    margin-top: 20px;
    font-family: 'SourceCode';
    font-size: 14px;
    border-bottom: 1px dotted var(--Moonlight);
    text-align: center;
}

.currentBody.new img {
    width: 100%;
    border-radius: 4px;
    border: 1px ridge black;
}

/* Mobile-friendly layout for the right sidebar */
@media (max-width: 1300px) {
    .Right {
        position: static;
        top: auto;
        right: auto;
        width: min(1100px, calc(100vw - 32px));
        height: auto;
        margin: 20px auto 0 auto;
        padding: 0;
    }

    .ContentBox {
        height: auto;
        max-height: none;
        overflow: visible;
        max-width: 1100px;
        margin: 0 auto;
    }

    .ContentBox .title-bar-text p {
        font-size: 22px;
        letter-spacing: 6px;
    }

    .CurrentBody.New {
        align-items: stretch;
    }
}

@media (max-width: 700px) {
    .boxes-container {
        flex-direction: column;
    }

    .ContentBox {
        padding: 12px;
    }

    .ContentBox .title-bar-text p {
        font-size: 18px;
        letter-spacing: 4px;
    }
}
