/* =========================================================
   VICTOR ONOFRE — GEOCITIES / 90s PERSONAL HOMEPAGE THEME
   Pure CSS. Works with the existing HTML on every page.
   ========================================================= */

/* ---- Starfield background (no image asset needed) ---- */
body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    padding: 20px 0 40px;

    background-color: #000033; /* deep space navy */
    background-image:
        radial-gradient(#ffffff 1px, transparent 1px),
        radial-gradient(#ffffaa 1px, transparent 1px),
        radial-gradient(#aaccff 1px, transparent 1px);
    background-size: 90px 90px, 140px 140px, 60px 60px;
    background-position: 0 0, 45px 70px, 20px 35px;
}

/* ---- Header: big centered title ---- */
header {
    text-align: center;
    padding: 10px 0 20px;
    border: none;
}

h1 {
    font-family: 'Comic Sans MS', 'Times New Roman', cursive;
    font-size: 48px;
    color: #ffff00; /* bright yellow */
    text-shadow: 2px 2px 0 #ff00ff, 4px 4px 0 #000000; /* magenta + drop shadow */
    margin: 10px 0;
}

header p {
    color: #00ffff;
    font-weight: bold;
    font-size: 18px;
}

/* ---- Main column: classic centered fixed width ---- */
main {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Content boxes as beveled "silver" panels ---- */
section,
.hackathon-entry {
    max-width: 720px;
    margin: 18px auto;
    padding: 18px 22px;
    background-color: #c0c0c0; /* Windows 95 silver */
    color: #000000;
    border: 4px ridge #dfdfdf; /* beveled outset look */
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

section p,
.hackathon-entry p {
    color: #000000;
}

/* ---- Headings inside content ---- */
h2 {
    font-family: 'Comic Sans MS', 'Times New Roman', cursive;
    color: #cc0000;
    text-align: center;
    border-bottom: 2px dotted #000080;
    padding-bottom: 6px;
    margin-top: 0;
}

h3 {
    font-family: 'Times New Roman', Times, serif;
    color: #000080;
}

/* ---- Links: the iconic 90s blue / purple underlined ---- */
a {
    color: #0000ee;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #ff0000;
    background-color: #ffff00;
}

/* ---- Navigation: horizontal row of beveled buttons ---- */
nav {
    position: static;       /* kill the old fixed sidebar */
    width: auto;
    height: auto;
    box-shadow: none;
    background: transparent;
    text-align: center;
    margin: 0 auto 10px;
    padding: 8px 0;
}

nav a {
    display: inline-block;
    margin: 4px 3px;
    padding: 6px 16px;
    color: #000080;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    background-color: #c0c0c0;
    border: 3px outset #ffffff; /* classic raised button */
}

nav a:hover {
    color: #cc0000;
    background-color: #d8d8d8;
    border-style: inset; /* "pressed" on hover */
}

/* ---- "Read more" / button-style links inside sections ---- */
section a,
.download-btn {
    display: inline-block;
    padding: 4px 12px;
    background-color: #c0c0c0;
    color: #000080;
    border: 3px outset #ffffff;
    text-decoration: none;
    font-weight: bold;
}

section a:hover,
.download-btn:hover {
    border-style: inset;
    color: #cc0000;
    background-color: #d8d8d8;
}

/* Back-to-posts link at top of a post */
main > p > a {
    display: inline-block;
    margin-bottom: 20px;
}

/* ---- Horizontal rules ---- */
hr {
    border: none;
    border-top: 3px ridge #808080;
    margin: 16px 0;
}

/* ---- CV page ---- */
.job {
    border-bottom: 2px dashed #000080;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.job:last-child {
    border-bottom: none;
}

.job h3 {
    margin-bottom: 0;
    color: #000080;
}

.job p {
    margin-top: 4px;
    color: #333333;
}

.cv-skill-item {
    margin-bottom: 12px;
}

.cv-skill-item h3 {
    margin-bottom: 4px;
    color: #000080;
}

/* ---- Hackathon timeline entries ---- */
.hackathon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hackathon-title-group h3 {
    margin-top: 0;
    margin-bottom: 5px;
    display: inline-block;
    color: #000080;
}

.award-badge {
    background-color: #ffff00;
    color: #cc0000;
    padding: 2px 8px;
    border: 2px outset #ffffff;
    font-family: 'Comic Sans MS', sans-serif;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
}

.hackathon-meta {
    text-align: right;
    color: #333333;
    font-size: 0.9em;
    font-style: italic;
    min-width: 150px;
}

.hackathon-host {
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
    font-weight: bold;
}

/* ---- Paper reading-list cards (blog posts) ---- */
.paper-entry {
    background-color: #ffffcc; /* legal-pad yellow "note paper" */
    color: #000000;
    border: 3px ridge #dfdf9f;
    border-left: 6px solid #cc0000;
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.paper-entry h3 {
    margin-bottom: 10px;
    color: #cc0000;
    font-size: 1.2em;
}

.paper-entry ul {
    margin-top: 10px;
    padding-left: 25px;
}

.paper-entry li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #000000;
}

/* ---- Victor's personal comment callouts ---- */
.victor-comment {
    background-color: #ffffaa; /* sticky-note yellow */
    border: 2px dashed #cc0000;
    border-left: 6px solid #cc0000;
    padding: 12px 15px;
    margin-top: 15px;
    font-style: italic;
    color: #333333;
}

.victor-comment strong {
    color: #cc0000;
    font-style: normal;
}

/* ---- Book opinion cards ---- */
.genre-group {
    margin-top: 32px;
}

.book-genre {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 18px;
    background-color: #cc0000;
    color: #ffffff;
    font-size: 1.15em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px ridge #dfb0c0;
    border-left: 6px solid #800000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    list-style: none; /* hide default disclosure marker (Firefox) */
    user-select: none;
}

.book-genre::-webkit-details-marker {
    display: none; /* hide default disclosure marker (Safari/Chrome) */
}

.book-genre::before {
    content: "\25B6"; /* ▶ collapsed */
    display: inline-block;
    margin-right: 12px;
    color: #ffffff;
    font-size: 0.8em;
    transition: transform 0.15s ease;
}

.genre-group[open] > .book-genre::before {
    transform: rotate(90deg); /* ▼ expanded */
}

.book-genre:hover {
    background-color: #a30000;
}

.book-entry {
    background-color: #fff0f5; /* soft "paperback" pink-white */
    color: #000000;
    border: 3px ridge #dfb0c0;
    border-left: 6px solid #cc0000;
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.book-entry h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #cc0000;
    font-size: 1.2em;
}

.book-meta {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333333;
    font-style: italic;
}

.book-rating {
    --rating: 0; /* 0 to 5, halves allowed e.g. 3.5 */
    display: inline-block;
    position: relative;
    font-style: normal;
    line-height: 1;
    color: #b0b0b0; /* empty-star grey */
}

.book-rating::before {
    content: "★★★★★";
}

.book-rating::after {
    content: "★★★★★";
    color: #cc8800; /* filled-star gold */
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    width: calc(var(--rating) / 5 * 100%);
}

/* ---- Plain inline link (overrides the button styling) ---- */
a.plain-link {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #0000ee;
    font-weight: normal;
    text-decoration: underline;
}

a.plain-link:visited {
    color: #551a8b;
}

a.plain-link:hover {
    color: #ff0000;
    background-color: #ffff00;
}

/* ---- "Under Construction" barricade banner ---- */
.under-construction {
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto 18px;
    padding: 10px;
    font-family: 'Comic Sans MS', 'Times New Roman', cursive;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    background: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 18px,
        #000000 18px,
        #000000 36px
    );
    background-size: 51px 51px; /* sqrt(2) * 36px, so the loop is seamless */
    border: 4px ridge #ffcc00;
    animation: barricade-slide 2s linear infinite;
}

/* Stripes drift like a moving construction conveyor */
@keyframes barricade-slide {
    to {
        background-position: 51px 0;
    }
}

.under-construction > span {
    padding: 6px 14px;
    background-color: #ffcc00;
    border: 2px solid #000000;
}

/* ---- Hit counter (odometer look) ---- */
.visitor-counter {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.visitor-counter p {
    margin: 0 0 8px;
}

.visitor-counter img {
    background-color: #000000;
    border: 3px inset #888888;
    padding: 4px 6px;
    vertical-align: middle;
}

/* ---- Footer / disclaimer ---- */
footer {
    text-align: center;
    margin: 40px auto 0;
    padding: 16px;
    max-width: 720px;
    color: #aaaaaa;
    font-size: 0.85em;
    font-style: italic;
    border-top: 2px groove #808080;
}

/* ---- Mobile: stack the buttons, keep it readable ---- */
@media (max-width: 768px) {
    body {
        padding: 10px 0 30px;
    }

    h1 {
        font-size: 34px;
    }

    section,
    .hackathon-entry,
    main {
        max-width: 92%;
    }
}
