/* ============================================================
   Lloyd Promo Layer — subtle links from the 808 to lloydstellar.nl
   Additive only: does not touch core drum machine styles.
   LLOYDOS look: dark blue CRT panels with cyan glow.
   ============================================================ */

:root {
    --lp-bg:        #04102a;
    --lp-panel:     #082040;
    --lp-cyan:      #4DE0FF;
    --lp-cyan-soft: rgba(77, 224, 255, 0.25);
    --lp-cyan-dim:  #2a7898;
    --lp-amber:     #FFB000;
    --lp-mono:      'Share Tech Mono', 'Courier New', monospace;
}

/* ---------- 1. Export toast ---------- */
.lp-toast {
    position: fixed;
    right: 16px;
    bottom: 84px;
    max-width: 340px;
    background: linear-gradient(180deg, var(--lp-panel), var(--lp-bg));
    border: 1px solid var(--lp-cyan-soft);
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(77, 224, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.5);
    font-family: var(--lp-mono);
    color: #d8f6ff;
    padding: 14px 16px;
    z-index: 9000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.lp-toast.lp-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lp-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--lp-cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.lp-toast-close {
    background: none;
    border: none;
    color: var(--lp-cyan-dim);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}
.lp-toast-close:hover { color: var(--lp-cyan); }
.lp-toast-body {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 10px;
}
.lp-toast a.lp-toast-link {
    display: inline-block;
    color: var(--lp-amber);
    text-decoration: none;
    border: 1px solid rgba(255, 176, 0, 0.4);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.lp-toast a.lp-toast-link:hover {
    background: rgba(255, 176, 0, 0.12);
    box-shadow: 0 0 12px rgba(255, 176, 0, 0.35);
}

/* ---------- 2. Preset info releases link ---------- */
.lp-preset-link {
    display: inline-block;
    margin-left: 6px;
    color: var(--lp-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lp-preset-link:hover { color: #fff; }

/* ---------- 3. Floating LLOYDOS uplink button + panel ---------- */
.lp-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--lp-panel), var(--lp-bg));
    border: 1px solid var(--lp-cyan-soft);
    color: var(--lp-cyan);
    font-family: var(--lp-mono);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9001;
    box-shadow: 0 0 14px rgba(77, 224, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.lp-fab:hover {
    box-shadow: 0 0 22px rgba(77, 224, 255, 0.45);
    transform: translateY(-2px);
}
/* touch devices: hidden until the user scrolls past the sequencer */
.lp-fab.lp-scrollgate {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lp-fab.lp-scrollgate.lp-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lp-fab .lp-fab-cursor {
    animation: lp-blink 1.1s steps(1) infinite;
}
@keyframes lp-blink { 50% { opacity: 0; } }

.lp-term-wrap {
    position: fixed;
    inset: 0;
    z-index: 9500;
}
.lp-term-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

/* ---------- 4. Electro Toolbox cards strip ----------
   Styled to match the other 808 page sections (recording,
   stems, MIDI export): dark translucent panel, Arial,
   #f0f0f0 headings, #ccc copy, red/orange accents. */
.lp-toolbox-section {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.lp-toolbox-section h3 {
    color: #f0f0f0;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}
.lp-toolbox-section > p {
    color: #ccc;
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 20px 0;
}
.lp-toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}
a.lp-card {
    display: block;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
a.lp-card:hover {
    border-color: #ff5252;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.lp-card-icon {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.5rem;
    margin-bottom: 8px;
    color: #ff9800;
    white-space: nowrap;
}
/* classic arcade attract-mode blink */
.lp-card-icon.lp-blink {
    animation: lp-coin-blink 1.6s steps(1) infinite;
}
@keyframes lp-coin-blink { 50% { opacity: 0.3; } }
.lp-card-title {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 6px;
}
.lp-card-desc {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .lp-toast { right: 10px; bottom: 74px; max-width: calc(100vw - 20px); }
    .lp-fab { right: 10px; bottom: 10px; width: 42px; height: 42px; }
}
