
/* =========================================
   MY RETRO LAB - STYLE SHEET
   ========================================= */

:root {
    --background: #11121b;
    --panel: #202333;
    --blue: #2447b7;
    --light-blue: #66d9ff;
    --green: #38d982;
    --yellow: #ffe45c;
    --red: #ff5964;
    --white: #f4f4ff;
    --muted: #b8bdd2;
    --border: #555d87;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 12px;
    background-color: var(--background);
    color: var(--white);
    font-family: "Courier New", monospace;
    font-size: 15px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: auto;
}

a {
    color: var(--light-blue);
    text-decoration: underline;
}

a:hover {
    color: var(--yellow);
    background-color: var(--blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px dashed var(--yellow);
    outline-offset: 3px;
}

/* Main page wrapper */

.site-wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */

.site-header {
    padding: 22px 12px;
    background-color: var(--blue);
    border: 4px ridge var(--light-blue);
}

.logo {
    margin: 0;
    color: var(--white);
    line-height: 1.15;
    text-shadow: 3px 3px 0 #11121b;
    overflow-wrap: anywhere;
}

.logo-index {
    font-size: 0.7rem;
    margin: 0;
    color: var(--white);
    line-height: 1.15;
    overflow-wrap: auto;
}

.tagline {
    color: var(--white);
    font-weight: bold;
    letter-spacing: 2px;
}

.pixel-divider {
    height: 8px;
    margin: 12px 0;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0 16px,
        var(--yellow) 16px 32px,
        var(--green) 32px 48px,
        var(--light-blue) 48px 64px
    );
}

/* Navigation */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    margin: 10px 0;
    background-color: #080910;
    border: 2px solid var(--border);
}

.main-nav a {
    flex: 1 1 140px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    background-color: var(--blue);
    border: 3px outset #8ca3ff;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: #11121b;
    background-color: var(--yellow);
    border-style: inset;
}

/* Full-width layout */

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 12px;
    align-items: start;
}

.content-column,
.sidebar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

/* Retro information panels */

.panel {
    min-width: 0;
    padding: 16px;
    background-color: var(--panel);
    border: 3px solid var(--border);
    box-shadow: 4px 4px 0 #080910;
}

.panel-blue {
    border-color: var(--light-blue);
}

.panel-green {
    border-color: var(--green);
}

.panel-yellow {
    border-color: var(--yellow);
}

.panel-red {
    border-color: var(--red);
}

.panel-title {
    margin: -16px -16px 14px;
    padding: 8px 12px;
    color: #11121b;
    background-color: var(--light-blue);
    font-size: 1.05rem;
    font-weight: bold;
}

.panel-green .panel-title {
    background-color: var(--green);
}

.panel-yellow .panel-title {
    background-color: var(--yellow);
}

.panel-red .panel-title {
    background-color: var(--red);
}

.panel-blue .panel-title {
    background-color: var(--light-blue);
}

.panel h2,
.panel h3 {
    line-height: 1.3;
}

.status {
    color: var(--green);
    font-weight: bold;
}

.small-text {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Project cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.project-card {
    min-width: 0;
    padding: 10px;
    background-color: #171a28;
    border: 2px solid var(--border);
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 2px solid var(--light-blue);
}

.project-card h3 {
    color: var(--yellow);
}

.project-card:hover {
    border-color: var(--yellow);
}

/* Photo gallery */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.photo-item {
    min-width: 0;
    margin: 0;
    padding: 8px;
    background-color: #171a28;
    border: 2px solid var(--border);
}

.photo-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid var(--green);
}

.photo-item figcaption {
    padding-top: 6px;
    color: var(--yellow);
    overflow-wrap: anywhere;
}

/* Project log */

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.project-hero img {
    width: 100%;
    border: 3px solid var(--green);
}

pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Lists */

ul,
ol {
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
}

dt {
    color: var(--yellow);
    font-weight: bold;
}

dd {
    margin-bottom: 10px;
}

/* Forms */

input,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    color: var(--white);
    background-color: #10121d;
    border: 2px solid var(--light-blue);
}

button,
.button-link {
    display: inline-block;
    padding: 10px 14px;
    color: #11121b;
    background-color: var(--yellow);
    border: 3px outset #fff0a0;
    font-weight: bold;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background-color: var(--green);
    color: #11121b;
}

/* Footer */

.site-footer  {
    margin-top: 14px;
    padding: 18px;
    text-align: center;
    background-color: #080910;
    border: 3px double var(--border);
    color: var(--muted);
}

.site-footer  p {
    text-align: center;
}

.panel pre {
    text-align: left;
    overflow-x: auto;
}

.center {
    text-align: center;
}
.left {
    text-align: left;
}

.right {
    text-align: right;
}

.lang-switch-en {
    display: inline-block;
    padding: 8px 12px;

    background-color: #FF2E2E;
    color: #ffffff;

    border: 2px solid #66d9ff;
    box-shadow: 3px 3px 0 #000000;

    font-family: inherit;
    font-weight: bold;
    text-decoration: none;

    transition: transform 0.1s, box-shadow 0.1s;
}

.lang-switch-en:hover {
    background-color: #FF5C5C;
    color: #11121b;

    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

.lang-switch-en:focus-visible {
    outline: 2px solid #ffe45c;
    outline-offset: 4px;
}

.lang-switch-el {
    display: inline-block;
    padding: 8px 12px;

    background-color: #0D5EAF;
    color: #ffffff;

    border: 2px solid #66d9ff;
    box-shadow: 3px 3px 0 #000000;

    font-family: inherit;
    font-weight: bold;
    text-decoration: none;

    transition: transform 0.1s, box-shadow 0.1s;
}

.lang-switch-el:hover {
    background-color: #0080FF;
    color: #11121b;

    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000000;
}

.lang-switch-el:focus-visible {
    outline: 2px solid #ffe45c;
    outline-offset: 4px;
}

.bold-big {
    font-weight: bold;
    font-size: 1.05rem;
}

.project-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ===== PROJECT FILES SECTION ===== */

.project-files {
    width: 100%;
    margin: 20px 0;
    border: 2px solid #66d9ff;
    background: #202333;
    box-sizing: border-box;
    box-shadow: 3px 3px 0 #000;
}

/* Section title */
.project-files h2 {
    margin: 0;
    padding: 12px 15px;
    background: #66d9ff;
    color: #11121b;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
}

/* Buttons container */
.file-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 15px;
}

/* View and download buttons */
.file-buttons button,
.download-button {
    display: inline-block;
    padding: 10px 14px;
    background: #2447b7;
    color: #66d9ff;
    border: 2px solid #66d9ff;
    box-shadow: 3px 3px 0 #000;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.file-buttons button:hover,
.download-button:hover {
    background: #38d982;
    color: #11121b;
}

.file-buttons button:focus-visible,
.download-button:focus-visible {
    outline: 3px solid #ffe45c;
    outline-offset: 3px;
}

/* Source code viewer */
#code-viewer {
    max-width: 100%;
    margin: 0 15px 15px;
    overflow-x: auto;
    background: #11121b;
    border: 2px solid #38d982;
    box-sizing: border-box;
}

#code-viewer[hidden] {
    display: none;
}

#code-viewer pre {
    margin: 0;
    padding: 15px;
    white-space: pre;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e0e6ff;
}

#code-viewer code {
    font-family: inherit;
}

.panel-border {
    min-width: 0;
    padding: 16px;
    background-color: var(--panel);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .file-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .file-buttons button,
    .download-button {
        width: 100%;
        text-align: center;
    }

    #code-viewer {
        margin-right: 10px;
        margin-left: 10px;
    }

    #code-viewer pre {
        padding: 10px;
        font-size: 12px;
    }
}

p {
    font-family: monospace;
    line-height: 1.8;
    text-align: left;
}


#status {
    font-family: monospace;
    font-weight: bold;
}

#status.online {
    color: #38d982;
}

#status.away {
    color: #ff5964;
}

.logo-mobile {
    display: none;
}

/* Responsive design */

@media (max-width: 950px) {
    .page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
        font-size: 14px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel {
        padding: 12px;
    }

    .panel-title {
        margin: -12px -12px 12px;
    }

}

@media (max-width: 600px) {
    .logo-index {
        display: none;
    }

    .logo-mobile {
        display: block;
        font-family: monospace;
        font-size: clamp(16px, 5vw, 24px);
        font-weight: bold;
        letter-spacing: 1px;
        text-align: center;
        white-space: nowrap;
        margin: 45px 0 25px;
    }
}