/* =============================== */
/*       GLOBAL / GRUNDLAYOUT      */
/* =============================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 24px;
    background: linear-gradient(180deg,#0f172a 0%, #071028 100%);
    color: #e6eef8;
    min-height: 100vh;
}

.windows-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 0;
}


/* =============================== */
/*            WINDOW BOX           */
/* =============================== */

.window {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(2,6,23,0.6);
    height: 220px;
    display: flex;
    flex-direction: column;
}

.titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.title {
    font-weight: 600;
    font-size: 14px;
    color: #dbeafe;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
}

.btn.close {
    background: linear-gradient(180deg,#ff7b7b,#ff4b4b);
}

.content {
    padding: 12px;
    font-size: 14px;
    color: rgba(230,238,248,0.95);
    line-height: 1.4;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =============================== */
/*           THUMBNAILS            */
/* =============================== */

.thumb {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 4px 12px rgba(2,6,23,0.45);
    text-indent: -9999px;
}

.thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(2,6,23,0.6);
}


/* =============================== */
/*            RESPONSIVE           */
/* =============================== */

@media (max-width:520px) {
    body { padding: 12px; }
    .title { font-size: 13px; }
    .window { height: 180px; }
}


/* =============================== */
/*         CSS–ONLY MODAL          */
/*           via :target           */
/* =============================== */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal:target {
    display: block;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,0.7);
}

.modal__box {
    position: relative;
    max-width: 720px;
    width: 90%;
    margin: 80px auto;
    padding: 20px;
    background: linear-gradient(180deg,#071025,#0b1220);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.7);
    color: #e6eef8;
    z-index: 2100;
}

.modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #e6eef8;
    font-size: 26px;
    text-decoration: none;
    cursor: pointer;
}

.modal__content {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
}


/* =============================== */
/*       THEMES FOR LS WINDOWS     */
/* =============================== */

.window--minecraft .titlebar {
    background: linear-gradient(180deg,#1e3a0a,#0b2610);
    border-bottom-color: rgba(0,0,0,0.2);
}

.window--minecraft .title {
    color: #e6f7d9;
}

.window--minecraft .thumb {
    box-shadow: 0 6px 20px rgba(6,30,10,0.5);
}
