/* ═══════════════════════════════════════════════════════════════════════════
   TY'S BLOG - AUTHENTIC OLD INTERNET AESTHETIC
   Best viewed at 800x600 in Netscape Navigator 4.0
   ═══════════════════════════════════════════════════════════════════════════ */

/* Import some gloriously retro fonts */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* ═══════════════ ROOT VARIABLES ═══════════════ */
:root {
    /* The most OBNOXIOUS color palette */
    --bg-main: #000080;
    /* Classic navy blue */
    --bg-sidebar: #FF00FF;
    /* Hot magenta */
    --bg-content: #FFFF00;
    /* Eye-searing yellow */
    --bg-header: #00FF00;
    /* Lime green */
    --text-main: #000000;
    --text-light: #FFFFFF;
    --text-link: #0000FF;
    --text-link-visited: #800080;
    --text-link-hover: #FF0000;
    --accent-pink: #FF69B4;
    --accent-cyan: #00FFFF;
    --accent-red: #FF0000;
    --accent-orange: #FF6600;
    --border-groove: #808080;
}

/* ═══════════════ RESET & BASE ═══════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
    /* Old internet didn't have smooth scroll! */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background-color: var(--bg-main);
    /* Authentic tiled star background */
    background-image:
        radial-gradient(circle at 20% 30%, #FF00FF22 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, #00FFFF22 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, #FFFF0022 1px, transparent 1px),
        repeating-linear-gradient(45deg,
            #000066 0px,
            #000066 10px,
            #000080 10px,
            #000080 20px);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.4;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="24" font-size="24">👆</text></svg>'), auto;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #FFF;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ═══════════════ TOP BANNER ═══════════════ */
.top-banner {
    background: linear-gradient(90deg,
            #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #8F00FF,
            #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #8F00FF);
    background-size: 200% 100%;
    animation: rainbow-scroll 3s linear infinite;
    padding: 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 0 #000000, -1px -1px 0 #000000;
    border-bottom: 4px ridge #C0C0C0;
}

@keyframes rainbow-scroll {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.top-banner marquee {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inline-gif {
    height: 16px;
    width: 16px;
    vertical-align: middle;
}

/* ═══════════════ RAINBOW TEXT ═══════════════ */
.rainbow-text {
    background: linear-gradient(90deg,
            #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #8F00FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-shift 2s linear infinite;
    background-size: 200% 100%;
    font-weight: bold;
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* ═══════════════ BLINK ANIMATION ═══════════════ */
.blink {
    animation: blink-text 1s steps(2, start) infinite;
}

@keyframes blink-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ═══════════════ PAGE LAYOUT ═══════════════ */
.page-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    gap: 16px;
}

@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
        order: 1;
    }

    .main-content {
        order: 0;
    }
}

/* ═══════════════ SIDEBARS ═══════════════ */
.sidebar {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-left {
    order: -1;
}

.sidebar-right {
    order: 1;
}

.sidebar-box {
    background: linear-gradient(135deg, #FF00FF, #FF69B4);
    border: 4px outset #FF69B4;
    padding: 8px;
    box-shadow: 4px 4px 0 #000000;
}

.sidebar-title {
    margin: 0 0 8px 0;
    padding: 4px;
    background: #000080;
    color: #FFFF00;
    font-size: 0.9rem;
    text-align: center;
    border: 2px inset #C0C0C0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation list */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 4px 0;
}

.nav-list a {
    color: #FFFF00;
    text-decoration: none;
    display: block;
    padding: 4px;
    background: #000080;
    border: 2px outset #808080;
    font-size: 0.85rem;
    text-align: center;
    transition: none;
    /* No smooth transitions in the 90s! */
}

.nav-list a:hover {
    background: #0000FF;
    color: #000000;
    border-style: inset;
}

/* Hit counter */
.hit-counter {
    background: #000000;
    padding: 8px;
    border: 2px inset #808080;
    text-align: center;
    margin-bottom: 4px;
}

.counter-label {
    display: block;
    color: #00FF00;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.counter-digits {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.digit {
    background: #001100;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 2px 6px;
    border: 1px solid #00FF00;
}

.tiny-text {
    font-size: 0.7rem;
    color: #000000;
}

.personal-visitor-info {
    margin-top: 8px;
    padding: 6px;
    background: #ffff00;
    color: #000080;
    border: 2px dashed #000080;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

/* Award badges */
.award-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px;
    text-align: center;
    border: 2px ridge #C0C0C0;
    text-shadow: 1px 1px 0 #FFFFFF;
}

/* Webring */
.webring-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
}

.webring-nav a {
    color: #FFFF00;
    text-decoration: underline;
}

.webring-nav span {
    color: #000000;
}

/* Updates list */
.updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: #000000;
}

.updates-list li {
    margin: 4px 0;
    padding-left: 12px;
    position: relative;
}

.updates-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #FFFF00;
}

.new-badge {
    background: #FF0000;
    color: #000000;
    font-size: 0.6rem;
    padding: 1px 4px;
    margin-right: 4px;
    font-weight: bold;
}

/* Mood display */
.mood-display {
    text-align: center;
    color: #000000;
}

.mood-emoji {
    font-size: 2rem;
    display: block;
}

.mood-text {
    font-weight: bold;
    color: #FFFF00;
}

/* Now playing */
.now-playing {
    background: #000000;
    padding: 4px;
    border: 2px inset #808080;
}

.song-scroll {
    color: #00FF00;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

/* Friend buttons */
.friend-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.friend-btn {
    background: linear-gradient(135deg, #00FFFF, #0080FF);
    color: #000000;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 2px outset #00FFFF;
    text-align: center;
    font-weight: bold;
}

.friend-btn:hover {
    border-style: inset;
    background: linear-gradient(135deg, #0080FF, #00FFFF);
}

/* Mini calendar */
.mini-calendar {
    background: #FFFFFF;
    border: 2px inset #808080;
    font-size: 0.7rem;
}

.cal-header {
    background: #000080;
    color: #000000;
    text-align: center;
    padding: 4px;
    font-weight: bold;
}

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    padding: 4px;
    text-align: center;
    color: #000000;
}

/* Disclaimer */
.disclaimer-text {
    color: #FFFF00 !important;
    line-height: 1.3;
}

/* ═══════════════ MAIN CONTENT ═══════════════ */
.main-content {
    flex: 1;
    min-width: 0;
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6600, #FF0000);
    color: #000000;
    text-decoration: none;
    padding: 8px 16px;
    border: 3px outset #FF6600;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-shadow: 1px 1px 0 #000000;
    animation: wiggle 0.5s ease-in-out infinite;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

.back-button:hover {
    border-style: inset;
    animation: none;
}

.back-arrow {
    animation: arrow-bounce 0.3s ease-in-out infinite;
    display: inline-block;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

/* Blog header */
.blog-header {
    position: relative;
    background: linear-gradient(135deg, #00FF00, #00CC00, #009900);
    border: 6px ridge #C0C0C0;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 8px 8px 0 #000000;
}

.blog-admin-link-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
}

.blog-admin-link {
    display: inline-block;
    padding: 6px 12px;
    background: #000000;
    color: #ffff00;
    border: 2px outset #808080;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.blog-admin-link:hover {
    border-style: inset;
    color: #000000;
}

.blog-title {
    margin: 0;
    font-size: 2.5rem;
    color: #000000;
    text-shadow:
        3px 3px 0 #FF0000,
        -1px -1px 0 #0000FF,
        1px -1px 0 #FF00FF,
        -1px 1px 0 #00FFFF;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .blog-title {
        font-size: 1.5rem;
    }

    .blog-admin-link-wrap {
        position: static;
        margin-bottom: 8px;
    }
}

.sparkle {
    color: #FFFF00;
    display: inline-block;
    animation: none;
    transform: none;
}

@keyframes sparkle-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.5);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.blog-subtitle {
    margin: 12px 0;
    font-size: 1.2rem;
}

.under-construction {
    background: #FFFF00;
    color: #000000;
    padding: 8px 16px;
    display: inline-block;
    border: 3px dashed #FF0000;
    font-weight: bold;
    margin-top: 8px;
}

.construction-icon {
    animation: construction-bounce 0.5s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes construction-bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

/* Content boxes */
.content-box {
    background: var(--bg-content);
    border: 4px ridge #C0C0C0;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 6px 6px 0 #000000;
}

.section-title {
    margin: 0 0 16px 0;
    padding: 8px;
    background: linear-gradient(90deg, #FF00FF, #0000FF);
    color: #FFFF00;
    text-align: center;
    border: 3px outset #FF00FF;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000000;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-title:focus-visible {
    outline: 3px dotted #000000;
    outline-offset: 2px;
}

.section-toggle-indicator {
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.section-status.is-warning {
    color: #FF0000 !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    background: #FFFF00;
    padding: 10px;
    border: 3px double #FF0000;
    display: block;
    margin: 10px 0;
    text-align: center;
    animation: blink-text 0.5s steps(2, start) infinite;
}

.collapsible-content {
    overflow: hidden;
    max-height: none;
    opacity: 1;
    transition: max-height 0.18s ease, opacity 0.18s ease;
}

.content-box.is-collapsed .collapsible-content {
    max-height: 0;
    opacity: 0;
}

.title-decoration {
    color: #000000;
}

/* About section */
.about-content {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 200px;
}

.first-letter {
    font-size: 3rem;
    float: left;
    line-height: 1;
    padding-right: 8px;
    color: #FF0000;
    text-shadow: 2px 2px 0 #000000;
}

.highlight-name {
    background: #FF00FF;
    color: #000000;
    padding: 2px 8px;
    font-weight: bold;
}

.emphasis-text {
    color: #FF0000;
    font-weight: bold;
    text-transform: uppercase;
}

.interests {
    background: #FFFFFF;
    border: 2px solid #000000;
    padding: 8px;
    margin-top: 12px;
}

.interest-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.interest-list li::marker {
    color: #FF00FF;
}

/* Blog posts */
.blog-post {
    background: #FFFFFF;
    border: 3px double #000000;
    margin-bottom: 16px;
    overflow: hidden;
}

.post-header {
    background: linear-gradient(90deg, #0000FF, #000080);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-date {
    color: #00FFFF;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.post-title {
    margin: 0;
    color: #FFFF00;
    font-size: 1.1rem;
    text-shadow: 1px 1px 0 #000000;
}

.post-body {
    padding: 12px;
}

.post-body p {
    margin: 0 0 12px 0;
}

.post-signature {
    text-align: right;
    font-style: italic;
    color: #FF00FF;
}

.post-footer {
    background: #E0E0E0;
    padding: 8px 12px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 2px groove #C0C0C0;
}

.post-mood {
    color: #FF0000;
    font-weight: bold;
}

.post-music {
    color: #0000FF;
    font-style: italic;
}

/* Guestbook */
.guestbook-intro {
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
}

.guestbook-entries {
    background: #FFFFFF;
    border: 2px inset #808080;
    padding: 12px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.guestbook-entry {
    padding: 8px;
    border-bottom: 1px dashed #C0C0C0;
    font-size: 0.9rem;
}

.guestbook-entry:last-child {
    border-bottom: none;
}

.entry-name {
    color: #0000FF;
    font-weight: bold;
}

.entry-title {
    color: #FF00FF;
    font-weight: bold;
}

.entry-text {
    font-style: italic;
    color: #333333;
}

.guestbook-form {
    background: #E0E0E0;
    border: 2px outset #C0C0C0;
    padding: 12px;
}

.guestbook-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 2px inset #808080;
    font-family: inherit;
    font-size: 1rem;
    background: #FFFFFF;
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.submit-btn {
    background: linear-gradient(135deg, #00FF00, #008800);
    color: #000000;
    border: 3px outset #00FF00;
    padding: 8px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000000;
    animation: pulse-btn 0.8s ease-in-out infinite;
    flex: 1;
}

@keyframes pulse-btn {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.submit-btn:hover {
    border-style: inset;
    animation: none;
}

.submit-btn:active {
    background: linear-gradient(135deg, #008800, #00FF00);
}

.delete-btn {
    background: linear-gradient(135deg, #FF0000, #880000);
    color: #FFFFFF;
    border: 3px outset #FF0000;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000000;
    text-transform: uppercase;
}

.delete-btn:hover {
    border-style: inset;
    background: linear-gradient(135deg, #FF3333, #AA0000);
}

.delete-btn:active {
    background: linear-gradient(135deg, #880000, #FF0000);
}

/* Links section */
.links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.links-list li {
    padding: 8px;
    background: #FFFFFF;
    border: 2px solid #C0C0C0;
    margin-bottom: 4px;
}

.links-list li::before {
    content: '>>>';
    color: #FF00FF;
    margin-right: 8px;
}

.links-list a {
    color: var(--text-link);
    text-decoration: underline;
    font-weight: bold;
}

.links-list a:visited {
    color: var(--text-link-visited);
}

.links-list a:hover {
    color: var(--text-link-hover);
    background: #FFFF00;
}

/* Blog footer */
.blog-footer {
    background: linear-gradient(135deg, #000080, #0000FF);
    border: 4px ridge #C0C0C0;
    padding: 16px;
    text-align: center;
    color: #000000;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.made-with {
    background: #C0C0C0;
    color: #000000;
    padding: 4px 12px;
    border: 2px outset #C0C0C0;
    font-size: 0.75rem;
    font-weight: bold;
}

.copyright {
    margin: 12px 0;
}

.email-link a {
    color: #00FFFF;
}

.footer-decoration {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 4px;
    animation: footer-rainbow 2s linear infinite;
}

.footer-decoration span:nth-child(odd) {
    color: #FF00FF;
}

.footer-decoration span:nth-child(even) {
    color: #00FFFF;
}

@keyframes footer-rainbow {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .collapsible-content {
        transition: none;
    }
}

/* ═══════════════ BOTTOM BANNER ═══════════════ */
.bottom-banner {
    background: #000000;
    color: #00FF00;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-top: 4px groove #C0C0C0;
}

/* ═══════════════ SCROLLBAR STYLING ═══════════════ */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 2px inset #808080;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #808080, #C0C0C0);
    border: 2px outset #C0C0C0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #A0A0A0, #E0E0E0);
}

/* ═══════════════ SELECTION STYLING ═══════════════ */
::selection {
    background: #FF00FF;
    color: #000000;
}

::-moz-selection {
    background: #FF00FF;
    color: #000000;
}

/* ═══════════════ FUN EXTRAS ═══════════════ */

/* Glowing cursor trail effect hint */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 0, 255, 0.1) 0%,
            transparent 10%);
    z-index: -1;
}

/* Dynamic post and guestbook controls */
.section-status {
    margin-top: 0;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.like-btn {
    border: 2px outset #808080;
    background: #000080;
    color: #ffff00;
    font-family: inherit;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
}

.like-btn:active {
    border-style: inset;
}

.like-btn.is-liked {
    background: #006600;
    color: #000000;
}

.like-count {
    margin-left: 8px;
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 1px 4px;
    font-family: 'Courier New', monospace;
}

.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    color: #000000;
}

.admin-page *,
#admin-main * {
    color: #000000 !important;
    text-shadow: none !important;
}

#admin-main .section-title {
    background: #ffd84d;
    border: 3px outset #c0a000;
}

#admin-main .submit-btn {
    color: #000000 !important;
    text-shadow: none !important;
}

#admin-main .back-button {
    color: #000000 !important;
    text-shadow: none !important;
}

.admin-form {
    display: grid;
    gap: 8px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    font: inherit;
    padding: 6px;
    border: 2px inset #c0c0c0;
}

.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-entry {
    margin-bottom: 12px;
}

.admin-audit-entry {
    margin-bottom: 8px;
    padding: 8px;
    background: #ffffff;
    border: 2px solid #c0c0c0;
}

@media (max-width: 640px) {
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}