/* ═══════════════════════════════════════════════════
   ThE SuMmErViLLe NeIgHbOrHoOd - PORTAL STYLES
   GeoCities-inspired retro madness since 2025
   ═══════════════════════════════════════════════════ */

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

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 16px;
    background: #1a0a2e;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(100,0,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,0,100,0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: #00ffff; text-decoration: none; }
a:hover { color: #ffff00; text-decoration: underline; }

/* ═══ SCANLINES OVERLAY ═══ */
.scanlines {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 2px,
        rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ═══ CONTAINER ═══ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ═══ MARQUEE ═══ */
.marquee-wrap {
    background: linear-gradient(90deg, #000080, #4b0082, #000080);
    border-bottom: 3px solid #ffff00;
    overflow: hidden;
    padding: 8px 0;
}
.marquee-text {
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    font-size: 18px;
    color: #ffff00;
    font-weight: bold;
    letter-spacing: 1px;
}
@keyframes marquee-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ═══ PORTAL HEADER ═══ */
.portal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 10px 20px;
    text-align: center;
}
.header-center h1 { margin: 0 0 6px; font-size: 32px; }
.tagline { margin: 0; color: #aaa; font-size: 16px; }
.spin {
    font-size: 40px;
    animation: spin-star 4s linear infinite;
}
@keyframes spin-star {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ═══ RAINBOW TEXT ═══ */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0088);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 3s linear infinite;
}
@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ═══ RAINBOW HR ═══ */
.rainbow-hr {
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0088);
    background-size: 300% 100%;
    animation: rainbow-shift 3s linear infinite;
    border: none;
    margin: 24px 0;
    border-radius: 2px;
}

/* ═══ BLINK TEXT ═══ */
.blink-text {
    animation: blink-it 1s steps(2, start) infinite;
}
@keyframes blink-it {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

/* ═══ BADGE WALL ═══ */
.badge-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px outset;
    font-family: 'Comic Neue', 'Arial', sans-serif;
    cursor: default;
}
.badge-geo { background: #ffcc00; color: #333; border-color: #cc9900; }
.badge-nn  { background: #006600; color: #00ff00; border-color: #009900; }
.badge-ie  { background: #003399; color: #66ccff; border-color: #0055cc; }
.badge-js  { background: #333; color: #f0db4f; border-color: #555; }
.badge-new { background: #ff0000; color: #fff; border-color: #cc0000; animation: blink-it 1s steps(2, start) infinite; }

/* ═══ CTA SECTION ═══ */
.cta-section {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.cta-box {
    background: linear-gradient(135deg, #1a1a3e, #2a1a4e);
    border: 3px ridge #8888ff;
    border-radius: 0;
    padding: 28px 32px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.2);
}
.cta-icon { font-size: 48px; margin-bottom: 8px; }
.cta-box h2 {
    color: #ffff00;
    font-size: 24px;
    margin: 0 0 12px;
    font-family: 'VT323', monospace;
}
.cta-box p { margin: 8px 0; color: #ccc; font-size: 15px; line-height: 1.5; }
.cta-examples { color: #888 !important; font-size: 13px !important; }
.cta-examples code {
    background: #000;
    color: #0f0;
    padding: 2px 6px;
    font-family: 'VT323', monospace;
}

/* ═══ BUTTONS ═══ */
.btn-geo {
    display: inline-block;
    padding: 10px 24px;
    margin: 8px 6px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-decoration: none;
    border: 3px outset;
    cursor: pointer;
    transition: all 0.1s;
    letter-spacing: 1px;
}
.btn-geo:hover {
    border-style: inset;
    transform: translate(1px, 1px);
    text-decoration: none;
}
.btn-green {
    background: #009900;
    color: #ffffff;
    border-color: #00cc00;
}
.btn-green:hover { background: #00bb00; color: #fff; }
.btn-blue {
    background: #003399;
    color: #99ccff;
    border-color: #0055cc;
}
.btn-blue:hover { background: #0044bb; color: #fff; }

/* ═══ SECTION TITLES ═══ */
.section-title {
    text-align: center;
    font-size: 22px;
    color: #ff88ff;
    margin: 20px 0 16px;
    letter-spacing: 2px;
}

/* ═══ STEPS GRID ═══ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}
.step-card {
    background: linear-gradient(180deg, #1e1e3e, #12122e);
    border: 2px ridge #666;
    padding: 20px 14px;
    text-align: center;
    position: relative;
}
.step-num {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: #ff00ff;
    color: #fff;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 24px;
    font-weight: bold;
}
.step-icon { font-size: 32px; margin: 8px 0; }
.step-card h3 { color: #ffff00; margin: 8px 0 4px; font-size: 18px; }
.step-card p { color: #aaa; font-size: 14px; margin: 0; line-height: 1.4; }

/* ═══ WIDGET SHOWCASE ═══ */
.widgets-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}
.widget-preview {
    background: #0a0a2a;
    border: 2px inset #555;
    padding: 12px 8px;
    text-align: center;
    min-height: 80px;
}
.wp-name {
    font-size: 13px;
    color: #ff88ff;
    margin-bottom: 8px;
    font-weight: bold;
}
.wp-demo { font-size: 13px; }
.mini-marquee {
    display: inline-block;
    animation: marquee-scroll 5s linear infinite;
    white-space: nowrap;
    font-size: 12px;
    color: #0f0;
}

/* ═══ NEIGHBORS GRID ═══ */
.neighbors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}
.neighbor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #1a1a3e, #0e0e2e);
    border: 2px outset #6666cc;
    padding: 14px 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.neighbor-card:hover {
    border-color: #ffff00;
    background: linear-gradient(180deg, #2a1a5e, #1a1a3e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,0,0.15);
}
.neighbor-icon { font-size: 28px; margin-bottom: 4px; }
.neighbor-name {
    color: #00ffff;
    font-size: 15px;
    font-weight: bold;
    word-break: break-all;
}
.neighbor-card:hover .neighbor-name { color: #ffff00; }
.neighbor-date { color: #666; font-size: 12px; margin-top: 4px; }
.no-neighbors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #888;
}

/* ═══ WEBRING ═══ */
.webring-box {
    text-align: center;
    background: #0a0a2a;
    border: 2px ridge #888;
    padding: 16px;
    margin: 20px auto;
    max-width: 400px;
    line-height: 1.8;
}

/* ═══ FOOTER ═══ */
.portal-footer {
    text-align: center;
    padding: 30px 10px;
    border-top: 2px solid #333;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
.portal-footer a { color: #8888ff; }
.hit-counter-wrap {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.counter-box {
    background: #000;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 22px;
    padding: 4px 16px;
    border: 2px inset #333;
    letter-spacing: 3px;
}

/* ═══ SPARKLE CURSOR ═══ */
.sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 14px;
    z-index: 10000;
    animation: sparkle-fade 1s ease-out forwards;
}
@keyframes sparkle-fade {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* ═══ MOBILE ═══ */
@media (max-width: 600px) {
    .portal-header { flex-direction: column; gap: 8px; padding: 20px 10px 14px; }
    .spin { font-size: 28px; }
    .header-center h1 { font-size: 22px; }
    .steps-grid { grid-template-columns: 1fr; }
    .widgets-showcase { grid-template-columns: repeat(2, 1fr); }
    .cta-box { padding: 20px 16px; }
    .btn-geo { display: block; margin: 8px 0; text-align: center; }
    .badge-wall { gap: 4px; }
    .badge { font-size: 9px; padding: 3px 8px; }
}
