/* ============================================
   Laurence.Computer - Retro Cosmic Synth Theme
   ============================================ */

/* === CSS Custom Properties === */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: #151520;
    --bg-card-hover: #1a1a2a;
    --text-primary: #e8e0d4;
    --text-secondary: #a09882;
    --accent-gold: #d4a855;
    --accent-gold-dim: rgba(212, 168, 85, 0.3);
    --neon-pink: #ff2d95;
    --neon-blue: #00d4ff;
    --neon-green: #39ff14;
    --neon-purple: #b24dff;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(212, 168, 85, 0.2);
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === CRT Scanline Overlay === */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* === Perspective Neon Grid Background === */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background:
        linear-gradient(to top, rgba(10, 10, 15, 0) 0%, var(--bg-dark) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(178, 77, 255, 0.07) 0px,
            rgba(178, 77, 255, 0.07) 1px,
            transparent 1px,
            transparent 80px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 212, 255, 0.05) 0px,
            rgba(0, 212, 255, 0.05) 1px,
            transparent 1px,
            transparent 80px
        );
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom center;
    pointer-events: none;
    z-index: 0;
}

/* === Starfield Twinkle === */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite alternate;
    opacity: 0;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: var(--max-opacity, 0.7); transform: scale(1); }
}

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(212, 168, 85, 0.3),
                 0 0 40px rgba(212, 168, 85, 0.1);
}

h2 {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 45, 149, 0.3);
}

/* === Layout === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 60px 0;
}

/* === Neon Glow Heading === */
.neon-heading {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-shadow:
        0 0 10px rgba(212, 168, 85, 0.4),
        0 0 30px rgba(212, 168, 85, 0.2);
    margin-bottom: 30px;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    border-color: var(--accent-gold-dim);
    box-shadow: 0 0 20px rgba(212, 168, 85, 0.08);
}

/* === Status Badges === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 85.55px;
    text-align: center;
}

.badge-active {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.badge-building {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

/* Notify Me CTA for building projects */
.project-notify-cta {
    background: var(--bg-card);
    border: 1px solid rgba(255, 200, 0, 0.25);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}
.project-notify-cta h3 {
    font-family: var(--font-heading);
    color: #ffc800;
    margin: 0 0 8px;
    font-size: 1.1rem;
}
.project-notify-cta p {
    color: var(--text-secondary);
    margin: 0 0 16px;
    font-size: 0.9rem;
}
.release-date-badge {
    display: inline-block;
    background: rgba(255, 200, 0, 0.12);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}
.notify-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}
.notify-form input {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.notify-form input:focus {
    outline: none;
    border-color: #ffc800;
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.15);
}
.notify-form button {
    padding: 10px 20px;
    background: #ffc800;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.notify-form button:hover {
    background: #e6b400;
}
.notify-me-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #ffc800;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}
.notify-me-btn:hover {
    background: #e6b400;
    transform: translateY(-1px);
}
.release-countdown {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
    margin: 12px 0 16px;
    font-family: var(--font-heading);
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.cd-num {
    font-size: 1.5rem;
    color: #ffc800;
    line-height: 1;
}
.cd-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
.cd-sep {
    color: rgba(255, 200, 0, 0.4);
    font-size: 1.3rem;
    padding-bottom: 12px;
}

/* Notify Modal */
.notify-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notify-modal {
    background: var(--bg-card);
    border: 1px solid rgba(255, 200, 0, 0.25);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    text-align: center;
}
.notify-modal h3 {
    font-family: var(--font-heading);
    color: #ffc800;
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.notify-modal p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-size: 0.9rem;
}
.notify-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.notify-modal-close:hover {
    color: var(--text-primary);
}
.notify-modal .notify-form {
    flex-direction: column;
    max-width: 100%;
}
.notify-success {
    color: var(--neon-green);
    font-size: 0.9rem;
    margin-top: 12px;
}
.notify-error {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 12px;
}

.badge-paused {
    background: rgba(240, 180, 41, 0.15);
    color: #f0b429;
    border: 1px solid rgba(240, 180, 41, 0.3);
}

.badge-retired {
    background: rgba(255, 45, 45, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 45, 45, 0.3);
}

.badge-limited {
    background: rgba(178, 77, 255, 0.15);
    color: #b24dff;
    border: 1px solid rgba(178, 77, 255, 0.3);
}

.badge-one-off {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-experiment {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-academic {
    background: rgba(255, 140, 66, 0.15);
    color: #ff8c42;
    border: 1px solid rgba(255, 140, 66, 0.3);
}

.badge-coming-soon {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Legacy fallback */
.badge-inactive {
    background: rgba(255, 45, 45, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 45, 45, 0.3);
}

/* === Technology Pills === */
.tech-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin: 2px;
}

/* Tech pill category colours */
.tech-pill[data-cat="software"] {
    background: rgba(212, 168, 85, 0.15);
    color: var(--accent-gold);
    border-color: rgba(212, 168, 85, 0.3);
}
.tech-pill[data-cat="hardware"] {
    background: rgba(0, 150, 255, 0.15);
    color: #4a9eff;
    border-color: rgba(0, 150, 255, 0.3);
}
.tech-pill[data-cat="marketing"] {
    background: rgba(255, 160, 50, 0.15);
    color: #ffa032;
    border-color: rgba(255, 160, 50, 0.3);
}
.tech-pill[data-cat="clients"] {
    background: rgba(230, 80, 100, 0.15);
    color: #e65064;
    border-color: rgba(230, 80, 100, 0.3);
}
.tech-pill[data-cat="equipment"] {
    background: rgba(180, 180, 195, 0.15);
    color: #b4b4c3;
    border-color: rgba(180, 180, 195, 0.3);
}
.tech-pill[data-cat="logistics"] {
    background: rgba(46, 204, 64, 0.15);
    color: #2ecc40;
    border-color: rgba(46, 204, 64, 0.3);
}
.tech-pill[data-cat="services"] {
    background: rgba(26, 214, 186, 0.15);
    color: #1ad6ba;
    border-color: rgba(26, 214, 186, 0.3);
}
.tech-pill[data-cat="other"] {
    background: rgba(177, 100, 255, 0.15);
    color: #b164ff;
    border-color: rgba(177, 100, 255, 0.3);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-gold:hover {
    background: #e8bc6a;
    box-shadow: 0 0 20px rgba(212, 168, 85, 0.4);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 168, 85, 0.1);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.2);
    color: var(--accent-gold);
}

/* === Utility === */
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--accent-gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* === Social Share Bar === */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
}

.share-bar-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-right: 4px;
}

.share-bar a,
.share-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 0;
    font-size: 0;
}

.share-bar a:hover,
.share-bar button:hover {
    border-color: var(--accent-gold-dim);
    color: var(--text-primary);
    background: rgba(212, 168, 85, 0.08);
    text-shadow: none;
}

.share-bar svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-bar .share-native {
    display: none;
}

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--accent-gold-dim);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* === View Count === */
.views-cell {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.views-eye {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 3px;
    color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
}
