/* ==========================================================================
   GOONS · Ultra Sample Library preview
   The static "app window" mockup shown on the homepage. Extracted from the
   legacy marketing.css so the homepage can run on the /play design system.
   Section chrome (eyebrow, title, stats, CTA) comes from play.css.
   ========================================================================== */

.usl-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.usl-window {
    display: block;
    text-align: left;
    text-decoration: none;
    color: inherit;
    position: relative;
    max-width: 1080px;
    margin: 0 auto 45px;
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.96), rgba(0, 0, 0, 0.92));
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.75), 0 0 70px rgba(0, 255, 136, 0.07);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.usl-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, #00d4ff, #ff0080, transparent);
    background-size: 200% 100%;
    animation: gradient-shift 6s ease infinite;
    z-index: 3;
}

.usl-window:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.8), 0 0 90px rgba(0, 255, 136, 0.16);
}

.usl-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 32, 0.9));
    border-bottom: 1px solid rgba(0, 255, 136, 0.18);
}

.usl-dots {
    display: flex;
    gap: 7px;
}

.usl-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.usl-dots span:nth-child(1) { background: #ff5f56; }
.usl-dots span:nth-child(2) { background: #ffbd2e; }
.usl-dots span:nth-child(3) { background: #27c93f; }

.usl-window-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #ff0080);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.usl-view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.usl-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
}

.usl-view-btn.active {
    background: #00ff88;
    border-color: #00ff88;
    color: #000;
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.45);
}

.usl-body {
    display: grid;
    grid-template-columns: 240px 1fr;
}

/* Sidebar */
.usl-sidebar {
    padding: 24px 20px;
    border-right: 1px solid rgba(0, 255, 136, 0.14);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(10, 10, 20, 0.75));
}

.usl-filter-section {
    margin-bottom: 28px;
}

.usl-filter-section:last-child {
    margin-bottom: 0;
}

.usl-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff88;
}

.usl-filter-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, transparent);
}

.usl-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.usl-search .usl-icon {
    font-size: 14px;
    color: #00ff88;
}

.usl-window:hover .usl-search {
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.12);
}

.usl-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    margin-bottom: 5px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s ease;
}

.usl-folder .usl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c, #00ff88);
    box-shadow: 0 0 8px var(--c, #00ff88);
}

.usl-folder .usl-folder-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

.usl-folder.active,
.usl-folder:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.28);
    color: #fff;
}

.usl-folder.active .usl-folder-count {
    color: #00ff88;
}

.usl-stats-panel {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.09), rgba(0, 0, 0, 0.8));
    overflow: hidden;
}

.usl-stats-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.12), transparent);
    transform: translateX(-100%);
    animation: usl-shimmer 3.5s ease-in-out infinite;
}

@keyframes usl-shimmer {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

.usl-stat-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 11.5px;
}

.usl-stat-row:last-child {
    margin-bottom: 0;
}

.usl-stat-row span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.5);
}

.usl-stat-row .usl-icon {
    font-size: 12px;
    color: #00ff88;
}

.usl-stat-row b {
    font-weight: 700;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Sample cards */
.usl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    padding: 24px;
}

.usl-card {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(12, 12, 22, 0.9) 50%, rgba(0, 0, 0, 0.8));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.usl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--c), transparent, var(--c));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.usl-card:hover {
    transform: translateY(-6px);
    border-color: var(--c);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(var(--c-rgb), 0.22);
}

.usl-card:hover::before {
    opacity: 1;
}

.usl-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.usl-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}

.usl-card-cat {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--c);
}

.usl-card-actions {
    display: flex;
    gap: 7px;
    margin-left: auto;
}

.usl-act {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.usl-card:hover .usl-act {
    border-color: rgba(var(--c-rgb), 0.4);
    color: var(--c);
}

.usl-act.is-fav {
    border-color: rgba(255, 0, 128, 0.45);
    background: rgba(255, 0, 128, 0.12);
    color: #ff0080;
}

/* Waveform */
.usl-wave {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    height: 58px;
    padding: 0 10px;
    border: 1px solid rgba(var(--c-rgb), 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.usl-wave i {
    flex: 1;
    min-width: 2px;
    height: var(--h, 40%);
    border-radius: 2px;
    background: linear-gradient(180deg, var(--c), rgba(var(--c-rgb), 0.35));
    opacity: 0.75;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.usl-card:hover .usl-wave i {
    opacity: 1;
    transform: scaleY(1.08);
}

.usl-wave-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(var(--c-rgb), 0.18), rgba(var(--c-rgb), 0.02));
    border-right: 2px solid var(--c);
    box-shadow: 0 0 14px rgba(var(--c-rgb), 0.7);
    animation: usl-playhead 4.5s linear infinite;
    pointer-events: none;
}

@keyframes usl-playhead {
    0% { width: 0; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* Card meta + tags */
.usl-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 16px;
    margin: 14px 0;
    font-size: 11.5px;
}

.usl-meta div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.usl-meta span {
    color: rgba(255, 255, 255, 0.4);
}

.usl-meta b {
    color: #fff;
    font-weight: 600;
}

.usl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.usl-tag {
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(var(--c-rgb), 0.3);
    background: rgba(var(--c-rgb), 0.13);
    color: var(--c);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.usl-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usl-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 9px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c), rgba(var(--c-rgb), 0.6));
    color: #000;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.usl-card:hover .usl-play {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--c-rgb), 0.35);
}

.usl-time {
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
}

/* Playing state */
.usl-card.is-playing {
    border-color: transparent;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 32px rgba(var(--c-rgb), 0.35);
}

.usl-card.is-playing::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(45deg, #ff006e, #ff4081, #00d4ff, #00ff88, #ffbe0b, #ff006e);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
    opacity: 0.75;
}

.usl-card.is-playing .usl-play {
    animation: usl-play-pulse 1.6s ease-in-out infinite;
}

@keyframes usl-play-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(var(--c-rgb), 0); }
    50% { box-shadow: 0 0 26px rgba(var(--c-rgb), 0.6); }
}

/* --- Feature pills --- */
.usl-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 45px;
}

.usl-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 25px;
    background: rgba(0, 255, 136, 0.07);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.usl-pill .usl-icon {
    font-size: 14px;
    color: #00ff88;
}

.usl-pill:hover {
    background: rgba(0, 255, 136, 0.16);
    border-color: #00ff88;
    color: #fff;
    transform: translateY(-3px);
}

/* --- CTA --- */
.samples-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 42px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.35);
    transition: all 0.3s ease;
}

.samples-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 55px rgba(0, 255, 136, 0.55);
}

.cta-arrow {
    font-size: 22px;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.samples-cta:hover .cta-arrow {
    transform: translateX(5px);
}

@media (max-width: 980px) {
    .usl-body {
        grid-template-columns: 1fr;
    }

    .usl-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 136, 0.14);
    }

    .usl-sidebar .usl-filter-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
        .usl-sidebar {
            grid-template-columns: 1fr;
            padding: 18px;
        }
    
        .usl-grid {
            grid-template-columns: 1fr;
            padding: 18px;
            gap: 14px;
        }
    
        .usl-window-title {
            font-size: 12px;
        }
    
        .usl-features {
            gap: 8px;
        }
    
        .usl-pill {
            padding: 8px 14px;
            font-size: 12px;
        }
}
