/* ==========================================
   SANTO'S RETRO BIRTHDAY WEBSITE STYLING
   Theme: Cats + early 2000s cyber-space
   ========================================== */

/* Root Custom Colors */
:root {
    --bg-dark: #120524;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-yellow: #ffff00;
    --neon-green: #39ff14;
    --border-gray: #808080;
    --win95-light: #d6d6d6;
    --win95-dark: #404040;
    --text-color: #ffffff;
}

/* Base Body Styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    /* Tiled Starry Cat Background via SVG Data-URI */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><rect width="80" height="80" fill="%23120524"/><circle cx="15" cy="15" r="1.5" fill="%2300ffff" opacity="0.6"/><circle cx="55" cy="45" r="1.5" fill="%23ff00ff" opacity="0.6"/><circle cx="35" cy="70" r="1" fill="%23ffffff" opacity="0.4"/><circle cx="70" cy="10" r="1" fill="%23ffffff" opacity="0.3"/><path d="M25 45c0-1.5 1-2.5 2-2.5s2 1 2 2.5" stroke="%23ff00ff" stroke-width="1" fill="none" opacity="0.4"/><path d="M65 25c0-1 1-2 2-2s2 1 2 2" stroke="%2300ffff" stroke-width="1" fill="none" opacity="0.4"/><path d="M45 35l1 1-1 1-1-1zm-30 25l1 1-1 1-1-1z" fill="%23ffff00" opacity="0.5"/></svg>');
    background-repeat: repeat;
    color: var(--text-color);
    font-family: 'Courier Prime', Courier, monospace;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size:24px'><text y='24'>🐾</text></svg>") 12 12, auto;
    overflow-x: hidden;
}

/* Custom Scrollbars (Retro Neon Style!) */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: #20083c;
    border-left: 2px solid var(--neon-pink);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border: 2px solid #20083c;
    box-shadow: inset 1px 1px 0px var(--neon-cyan);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Helper Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); }
    50% { text-shadow: 0 0 10px #fff, 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan); }
    100% { text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); }
}

@keyframes visualizer-bounce {
    0%, 100% { height: 5px; }
    50% { height: 30px; }
}

.blink {
    animation: blink 1s infinite;
}

.blink-fast {
    animation: blink 0.5s infinite;
    font-weight: bold;
}

/* Main Container Wrapper */
.web-wrapper {
    max-width: 960px;
    margin: 10px auto;
    padding: 10px;
    background: rgba(18, 5, 36, 0.85);
    border: 4px ridge var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Marquee Header */
.marquee-wrapper {
    background: #000;
    border: 2px outset var(--neon-cyan);
    margin-bottom: 15px;
    padding: 4px;
}

.retro-marquee {
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    text-shadow: 2px 2px 0px #ff0000;
}

/* Table-based structural layouts */
.main-layout-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px;
}

.header-td {
    width: 100%;
}

.sidebar-td {
    width: 250px;
    vertical-align: top;
}

.main-content-td {
    vertical-align: top;
}

/* OS Window Look (Classic Web Frame) */
.header-window {
    background: #000033;
    border: 3px outset var(--neon-cyan);
}

.title-bar {
    background: linear-gradient(90deg, #000080, #0080ff);
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-weight: bold;
    border-bottom: 2px solid #000033;
}

.title-text {
    font-family: 'Courier Prime', Courier, sans-serif;
    font-size: 13px;
    text-shadow: 1px 1px 0px #000;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.win-btn {
    background: var(--win95-light);
    border-top: 1.5px solid #fff;
    border-left: 1.5px solid #fff;
    border-right: 1.5px solid var(--win95-dark);
    border-bottom: 1.5px solid var(--win95-dark);
    font-family: monospace;
    font-size: 10px;
    padding: 1px 5px;
    cursor: pointer;
    color: black;
}

.win-btn:active {
    border-top: 1.5px solid var(--win95-dark);
    border-left: 1.5px solid var(--win95-dark);
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
}

.win-btn.X {
    background: #ff4545;
    color: white;
}

.header-content {
    padding: 20px;
    text-align: center;
}

/* WordArt styles */
.wordart-neon {
    font-family: 'Press Start 2P', cursive;
    font-size: 26px;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0;
    letter-spacing: 2px;
    animation: neon-glow 3s ease-in-out infinite;
    -webkit-text-stroke: 1.5px #000;
}

.subtitle {
    color: var(--neon-cyan);
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 1.5px;
    margin: 5px 0 0;
    text-shadow: 1px 1px 0px #000;
}

/* Winamp Music Player Widget */
.winamp-player {
    background: #2c2c2c;
    border: 3px inset #555;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    color: #fff;
}

.winamp-title {
    background: #111;
    font-family: monospace;
    font-size: 10px;
    padding: 2px 4px;
    border-bottom: 1px solid #444;
    color: #888;
}

.winamp-display {
    background: #051405;
    border: 2px inset #111;
    padding: 8px;
    margin: 6px 0;
    position: relative;
    overflow: hidden;
}

.winamp-track-info {
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    font-size: 14px;
    border-bottom: 1px dashed rgba(57, 255, 20, 0.3);
    padding-bottom: 2px;
    height: 18px;
}

.winamp-time {
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-align: right;
    margin-top: 4px;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.7);
}

.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    position: absolute;
    bottom: 4px;
    left: 8px;
}

.bar {
    width: 4px;
    background: var(--neon-green);
    height: 5px;
    opacity: 0.8;
}

.winamp-player.playing .bar {
    animation: visualizer-bounce 0.6s infinite ease-in-out;
}

.winamp-player.playing .bar-1 { animation-delay: 0.1s; }
.winamp-player.playing .bar-2 { animation-delay: 0.3s; }
.winamp-player.playing .bar-3 { animation-delay: 0.0s; }
.winamp-player.playing .bar-4 { animation-delay: 0.4s; }
.winamp-player.playing .bar-5 { animation-delay: 0.2s; }

.winamp-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.winamp-btn {
    background: #444;
    color: #ddd;
    border: 1.5px outset #666;
    font-family: monospace;
    font-size: 10px;
    padding: 4px 6px;
    cursor: pointer;
    font-weight: bold;
    flex-grow: 1;
    margin: 0 2px;
    text-align: center;
}

.winamp-btn:hover {
    background: #555;
    color: white;
}

.winamp-btn:active {
    border-style: inset;
    background: #333;
}

.winamp-volume-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 8px;
    color: #aaa;
}

#winamp-volume {
    width: 150px;
    accent-color: var(--neon-green);
    cursor: pointer;
}

/* GeoCities Layout Boxes */
.retro-box {
    border: 2px outset var(--neon-pink);
    background: rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
}

.box-title {
    background: var(--neon-pink);
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 4px 8px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
    text-align: center;
}

.box-content {
    padding: 10px;
}

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

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

.nav-list a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: block;
    padding: 4px;
    border: 1px dashed transparent;
}

.nav-list a:hover {
    color: var(--neon-yellow);
    border: 1px dashed var(--neon-yellow);
    background: rgba(255, 255, 0, 0.1);
    padding-left: 8px;
}

/* Hit Counter Styles */
.hit-counter {
    background: #000;
    border: 2px inset #555;
    padding: 4px;
    display: inline-flex;
    gap: 2px;
    margin: 8px 0;
}

.hit-counter span {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    background: #222;
    color: var(--neon-green);
    padding: 4px 6px;
    border: 1px solid #444;
    text-shadow: 0 0 3px var(--neon-green);
}

.counter-label {
    font-size: 10px;
    color: #888;
    margin: 0;
}

/* Spin image container */
.spin-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pixel-cat-avatar {
    font-size: 48px;
    user-select: none;
    animation: spin 6s linear infinite;
    cursor: pointer;
}

.pixel-cat-avatar:hover {
    animation-duration: 1.5s;
}

.retro-caption {
    font-size: 11px;
    color: var(--neon-cyan);
    margin: 0;
}

.retro-clicker-btn {
    background: var(--neon-cyan);
    color: #000;
    border: 2px outset #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: bold;
}

.retro-clicker-btn:hover {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px var(--neon-yellow);
}

.retro-clicker-btn:active {
    border-style: inset;
}

/* Content Panel Cards */
.retro-card {
    border: 3px double var(--neon-cyan);
    background: rgba(10, 0, 30, 0.85);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.card-header {
    background: linear-gradient(90deg, #003366, #008080);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    padding: 8px 12px;
    border-bottom: 3px double var(--neon-cyan);
    text-shadow: 1px 1px 0px #000;
}

.card-body {
    padding: 15px;
}

/* Birthday Intro Card layout */
.birthday-card-layout {
    display: flex;
    gap: 20px;
    align-items: center;
}

.birthday-image-wrapper {
    flex-shrink: 0;
    border: 3px inset var(--neon-pink);
    padding: 4px;
    background: #000;
}

.birthday-cat-img {
    width: 220px;
    height: 220px;
    display: block;
    image-rendering: pixelated;
    border: 1px solid #333;
}

.birthday-intro-text h2 {
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    margin: 0 0 12px 0;
    text-shadow: 2px 2px 0 #000;
}

.birthday-intro-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
    color: #e0e0e0;
}

.flashing-warning {
    background: rgba(255, 0, 0, 0.2);
    border: 2px dashed #ff4545;
    color: #ff9999;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    margin-top: 15px;
    animation: blink 1.2s infinite;
}

/* Retro Data Table for favorite things */
.table-border-wrapper {
    border: 2px inset #444;
    background: #000;
}

.retro-data-table {
    width: 100%;
    border-collapse: collapse;
}

.retro-data-table th {
    background: #111;
    color: var(--neon-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid var(--neon-cyan);
}

.retro-data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #222;
    font-size: 13px;
    line-height: 1.4;
}

.retro-data-table tr:hover {
    background: rgba(0, 255, 255, 0.08);
}

.rank-col {
    color: var(--neon-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    font-weight: bold;
}

.cat-col {
    color: var(--neon-pink);
    font-weight: bold;
}

/* Interactive Cat Piano */
.cat-piano-container {
    background: #111;
    border: 3px inset #444;
    padding: 15px;
    margin: 15px auto;
    max-width: 450px;
}

.piano-keyboard {
    display: flex;
    position: relative;
    height: 120px;
    background: #000;
}

.white-key {
    flex-grow: 1;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: inset 0 -5px 0 #ddd, 0 2px 3px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.white-key span {
    color: #444;
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
}

.white-key:hover {
    background: #f0f0f0;
}

.white-key.active, .white-key:active {
    background: var(--neon-cyan);
    box-shadow: inset 0 -2px 0 var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

.black-key {
    width: 20px;
    height: 70px;
    background: #000;
    border: 1px solid #333;
    position: absolute;
    z-index: 2;
    cursor: pointer;
    transform: translateX(-50%);
    box-shadow: inset 0 -4px 0 #222;
}

.black-key:hover {
    background: #151515;
}

.black-key.active, .black-key:active {
    background: var(--neon-pink);
    box-shadow: inset 0 -2px 0 var(--neon-pink), 0 0 10px var(--neon-pink);
}

/* Hardcoded placement offsets for 5 black keys */
.black-key:nth-of-type(1) { left: 14.28%; }
.black-key:nth-of-type(2) { left: 28.56%; }
.black-key:nth-of-type(3) { left: 57.12%; }
.black-key:nth-of-type(4) { left: 71.40%; }
.black-key:nth-of-type(5) { left: 85.68%; }

/* FX Buttons grid */
.fx-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.fx-btn {
    background: #2a1145;
    color: var(--neon-yellow);
    border: 2px outset var(--neon-pink);
    padding: 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.fx-btn:hover {
    background: #3c1962;
    box-shadow: 0 0 8px var(--neon-pink);
}

.fx-btn:active {
    border-style: inset;
    background: #1c0b30;
}

/* Guestbook Form Styling */
.retro-form {
    border: 2px dashed var(--neon-pink);
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--neon-cyan);
    margin-bottom: 6px;
    text-shadow: 1px 1px 0 #000;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 2px inset var(--neon-pink);
    background: #000;
    color: #fff;
    font-family: 'Courier Prime', Courier, monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.submit-btn {
    background: var(--neon-pink);
    color: #000;
    border: 2px outset #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 0 #fff;
    margin-top: 5px;
}

.submit-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    text-shadow: 1px 1px 0 #fff;
    box-shadow: 0 0 10px var(--neon-cyan);
}

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

.retro-hr {
    border: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--neon-pink), var(--neon-pink) 10px, var(--neon-cyan) 10px, var(--neon-cyan) 20px);
    margin: 20px 0;
}

/* Guestbook entry rendering */
.guestbook-entries-container h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    color: var(--neon-yellow);
    margin-bottom: 15px;
    text-align: center;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.entry-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 10px;
    border-left: 4px solid var(--neon-cyan);
    font-size: 13px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--neon-yellow);
    margin-bottom: 4px;
    font-weight: bold;
}

.entry-avatar {
    margin-right: 6px;
}

.entry-message {
    color: #e0e0e0;
    line-height: 1.4;
    word-break: break-word;
}

/* Footer & Badge Styles */
.retro-footer {
    border-top: 3px double var(--neon-pink);
    padding-top: 15px;
    margin-top: 15px;
    text-align: center;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Win95 Badges Styles */
.retro-badge {
    padding: 3px 6px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    border: 2px outset #eee;
    background: #ccc;
    color: #000;
    font-weight: bold;
    user-select: none;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);
}

.badge-notepad {
    background: #ffffe0;
    border-color: #ffd8a8;
    color: #a0522d;
}

.badge-netscape {
    background: #000080;
    border-color: #0000ff;
    color: #ffffff;
}

.badge-ie {
    background: #f0f8ff;
    border-color: #87ceeb;
    color: #0000ff;
}

.badge-cat {
    background: #ffe4e1;
    border-color: #ffb6c1;
    color: #db7093;
}

.badge-anybrowser {
    background: #000000;
    border-color: #333333;
    color: #39ff14;
    text-shadow: 0 0 2px #39ff14;
}

.copyright {
    font-size: 11px;
    color: #888;
    margin: 8px 0;
}

.webring-banner {
    border: 2px inset var(--neon-pink);
    background: #000;
    padding: 8px;
    font-size: 11px;
    color: #ccc;
    display: inline-block;
    margin-top: 10px;
    line-height: 1.6;
}

.ring-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
}

.ring-link:hover {
    color: var(--neon-yellow);
    text-decoration: underline;
}

/* Text Center Helper */
.text-center {
    text-align: center;
}

/* Red Text Warning */
.red-text {
    color: #ff0055;
    text-shadow: 0 0 2px #ff0055;
}

/* Sparkle Canvas cursor trail overlay */
#sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sparkle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: fade-out 0.8s forwards linear;
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px) scale(0.2);
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .main-layout-table, .main-layout-table tbody, .main-layout-table tr {
        display: block;
        width: 100%;
    }
    .sidebar-td, .main-content-td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .sidebar-td {
        margin-bottom: 20px;
    }
    .birthday-card-layout {
        flex-direction: column;
        text-align: center;
    }
    .birthday-cat-img {
        margin: 0 auto;
    }
    .fx-buttons-grid {
        grid-template-columns: 1fr;
    }
}
