/* Sirmax Recent Beats Advertiser – Front-end popup styles */

#sirmax-beat-advertiser-root {
    z-index: 99999;
    position: fixed;
    pointer-events: none;
}

.sirmax-beat-wrapper {
    will-change: transform, opacity;
    transition: transform .35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity .35s ease-out;
}

.sirmax-anim-base {
    transform: translateY(20px);
    opacity: 0;
}

.sirmax-anim-enter {
    transform: translateY(0);
    opacity: 1;
}

.sirmax-anim-leave {
    transform: translateY(15px);
    opacity: 0;
}

.sirmax-beat-card {
    pointer-events: auto;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 18px 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.sirmax-beat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.15), transparent 60%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.sirmax-beat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

.sirmax-beat-card > * {
    position: relative;
    z-index: 2;
}

.sirmax-beat-card .thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background-color: #334155;
}

.sirmax-beat-card .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), transparent 65%);
    border-radius: inherit;
}

.sirmax-beat-card .info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.sirmax-beat-card .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sirmax-beat-card .title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sirmax-beat-card .subtitle {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 400;
}

.sirmax-beat-card .meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.sirmax-beat-card .controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sirmax-beat-card button {
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sirmax-beat-card button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sirmax-beat-card button:hover::before {
    opacity: 1;
}

.sirmax-beat-card button.primary {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sirmax-beat-card button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sirmax-beat-card button.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.sirmax-beat-card button.secondary {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sirmax-beat-card button.secondary:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(203, 213, 225, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sirmax-beat-card button.secondary:active {
    transform: translateY(0);
}

.sirmax-beat-card .sirmax-price-pill {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

.sirmax-beat-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border: 2px solid rgba(30, 41, 59, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.sirmax-beat-close:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.sirmax-beat-close:active {
    transform: scale(0.95);
}

.sirmax-bottom-right {
    position: fixed;
    right: 20px;
    bottom: 20px;
}

.sirmax-center {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .sirmax-beat-card {
        max-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
        padding: 16px;
        gap: 12px;
        border-radius: 20px;
    }

    .sirmax-beat-card .thumb {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
        border-radius: 12px;
    }

    .sirmax-beat-card .title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .sirmax-beat-card .subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .sirmax-beat-card .meta {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .sirmax-beat-card .controls {
        gap: 8px;
        width: 100%;
    }

    .sirmax-beat-card button {
        padding: 12px 18px;
        font-size: 14px;
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 12px;
    }

    .sirmax-beat-card button.primary {
        flex: 1.2 1 auto;
    }

    .sirmax-beat-card .eyebrow {
        font-size: 9px;
        padding: 3px 8px;
    }

    .sirmax-beat-close {
        width: 36px;
        height: 36px;
        top: -10px;
        right: -10px;
        font-size: 20px;
    }

    .sirmax-bottom-right {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .sirmax-center {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 32px);
        max-width: 400px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .sirmax-beat-card {
        padding: 14px;
        gap: 10px;
    }

    .sirmax-beat-card .thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .sirmax-beat-card .title {
        font-size: 14px;
    }

    .sirmax-beat-card .subtitle {
        font-size: 10px;
    }

    .sirmax-beat-card button {
        padding: 11px 16px;
        font-size: 13px;
    }

    .sirmax-bottom-right {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .sirmax-beat-card button {
        min-height: 44px;
        padding: 12px 20px;
    }

    .sirmax-beat-close {
        min-width: 44px;
        min-height: 44px;
    }
}
