@import url('/shared/css/artist-portal.css');

.portal-shell--launcher {
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28%),
        radial-gradient(circle at right 20%, rgba(15, 118, 110, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
}

.portal-page--launcher {
    max-width: var(--portal-page-max-width);
    padding-bottom: 56px;
}

.portal-header--launcher {
    align-items: stretch;
}

.launcher-site-meta {
    min-width: 200px;
    align-self: center;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.launcher-site-meta__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launcher-site-meta__value {
    margin-top: 10px;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.launcher-section {
    margin-top: 24px;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.launcher-grid--sites {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.launcher-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 42%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition), border-color 0.2s var(--transition);
}

.launcher-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%);
}

.launcher-card:hover,
.launcher-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.10);
    border-color: rgba(14, 165, 233, 0.22);
    outline: none;
}

.launcher-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 2px;
    border-radius: 14px;
    flex-shrink: 0;
}

.launcher-card__icon svg {
    display: block;
}

.launcher-card__login-hint {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: var(--text-muted, #64748b);
    background: rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.launcher-card__login-hint svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.95;
}

.launcher-card--client .launcher-card__login-hint {
    color: rgb(15, 100, 90);
    background: rgba(15, 118, 110, 0.12);
}

.launcher-card--intake .launcher-card__icon {
    background: rgba(37, 99, 235, 0.12);
    color: rgb(37, 99, 235);
}

.launcher-card--client .launcher-card__icon {
    background: rgba(15, 118, 110, 0.14);
    color: rgb(15, 118, 110);
}

.launcher-card--artist .launcher-card__icon {
    background: rgba(109, 40, 217, 0.12);
    color: rgb(109, 40, 217);
}

.launcher-card--production .launcher-card__icon {
    background: rgba(234, 88, 12, 0.12);
    color: rgb(234, 88, 12);
}

.launcher-card--receiving .launcher-card__icon {
    background: rgba(220, 38, 38, 0.12);
    color: rgb(220, 38, 38);
}

.launcher-card__eyebrow {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launcher-card__title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.launcher-card__description {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.launcher-card__cta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-strong);
}

.launcher-card__cta::after {
    content: '→';
    font-size: 14px;
}

.launcher-card--intake {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 46%);
}

.launcher-card--client {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.95)),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 46%);
}

.launcher-card--artist {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.95)),
        radial-gradient(circle at top right, rgba(109, 40, 217, 0.16), transparent 46%);
}

.launcher-card--production {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.95)),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.15), transparent 46%);
}

.launcher-card--receiving {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.95)),
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.13), transparent 46%);
}

.launcher-card--site {
    min-height: 190px;
}

.launcher-card--site-has-preview {
    overflow: visible;
}

.launcher-card--site-has-preview::after {
    z-index: 0;
}

.launcher-card__site-front {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
    outline: none;
}

.launcher-card__site-front:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

.launcher-card__site-front .launcher-card__title {
    text-decoration: none;
}

.launcher-card--site .launcher-card__icon {
    background: rgba(14, 165, 233, 0.12);
    color: rgb(14, 118, 168);
}

.launcher-card__site-preview {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 14px;
    border-radius: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(241, 245, 249, 0.98));
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 22px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.985);
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.34s,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.launcher-card--site-has-preview:hover .launcher-card__site-preview,
.launcher-card--site-has-preview:focus-within .launcher-card__site-preview {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.launcher-card__site-preview-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 0;
}

.launcher-card__site-preview-label {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launcher-site-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 420px) {
    .launcher-site-portal-grid {
        grid-template-columns: 1fr;
    }
}

.launcher-site-portal-link {
    --portal-i: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s var(--transition),
        box-shadow 0.2s var(--transition),
        background 0.2s var(--transition);
    transition-delay: calc(var(--portal-i) * 42ms);
}

.launcher-card--site-has-preview:hover .launcher-site-portal-link,
.launcher-card--site-has-preview:focus-within .launcher-site-portal-link {
    opacity: 1;
    transform: translateY(0);
}

.launcher-site-portal-link:hover,
.launcher-site-portal-link:focus-visible {
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
    outline: none;
}

.launcher-site-portal-link__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.launcher-site-portal-link--intake .launcher-site-portal-link__icon {
    background: rgba(37, 99, 235, 0.12);
    color: rgb(37, 99, 235);
}

.launcher-site-portal-link--client .launcher-site-portal-link__icon {
    background: rgba(15, 118, 110, 0.14);
    color: rgb(15, 118, 110);
}

.launcher-site-portal-link--artist .launcher-site-portal-link__icon {
    background: rgba(109, 40, 217, 0.12);
    color: rgb(109, 40, 217);
}

.launcher-site-portal-link--production .launcher-site-portal-link__icon {
    background: rgba(234, 88, 12, 0.12);
    color: rgb(234, 88, 12);
}

.launcher-site-portal-link--receiving .launcher-site-portal-link__icon {
    background: rgba(220, 38, 38, 0.12);
    color: rgb(220, 38, 38);
}

.launcher-site-portal-link__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.launcher-site-portal-link__eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launcher-site-portal-link__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Sixth tile — same light treatment as other shortcuts; warm amber tint + subtle pulse */
.launcher-site-portal-link--full-launcher {
    border-color: rgba(245, 158, 11, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.94)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 52%);
    color: inherit;
    animation: launcher-full-launcher-glow 2.75s ease-in-out infinite;
}

.launcher-site-portal-link--full-launcher .launcher-site-portal-link__icon {
    background: rgba(245, 158, 11, 0.14);
    color: rgb(180, 83, 9);
}

.launcher-site-portal-link--full-launcher:hover,
.launcher-site-portal-link--full-launcher:focus-visible {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.12);
    outline: none;
}

.launcher-site-portal-link--full-launcher .launcher-site-portal-link__text {
    flex: 1;
    min-width: 0;
}

.launcher-site-portal-link--full-launcher::after {
    content: '→';
    flex-shrink: 0;
    align-self: center;
    margin-left: 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-strong);
    animation: launcher-full-launcher-arrow 1.35s ease-in-out infinite;
}

@keyframes launcher-full-launcher-glow {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    }

    50% {
        box-shadow:
            0 6px 20px rgba(15, 23, 42, 0.07),
            0 0 0 2px rgba(245, 158, 11, 0.2);
    }
}

@keyframes launcher-full-launcher-arrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.88;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

@media (hover: none), (pointer: coarse) {
    .launcher-card__site-preview {
        position: relative;
        inset: auto;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .launcher-card--site-has-preview:hover .launcher-card__site-preview {
        transform: none;
    }

    .launcher-site-portal-link {
        opacity: 1;
        transform: none;
        transition: border-color 0.2s var(--transition), box-shadow 0.2s var(--transition);
        transition-delay: 0ms !important;
    }

    .launcher-card__site-front .launcher-card__description {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .launcher-card__site-preview {
        transition: opacity 0.15s ease, visibility 0.15s;
        transform: none !important;
    }

    .launcher-card--site-has-preview:hover .launcher-card__site-preview,
    .launcher-card--site-has-preview:focus-within .launcher-card__site-preview {
        transform: none;
    }

    .launcher-site-portal-link {
        opacity: 1;
        transform: none;
        transition-delay: 0ms !important;
        transition-duration: 0.01ms;
    }

    .launcher-card--site-has-preview:not(:hover):not(:focus-within) .launcher-site-portal-link {
        opacity: 0;
    }

    @media (hover: none), (pointer: coarse) {
        .launcher-card--site-has-preview:not(:hover):not(:focus-within) .launcher-site-portal-link {
            opacity: 1;
        }
    }

    .launcher-site-portal-link--full-launcher {
        animation: none;
    }

    .launcher-site-portal-link--full-launcher::after {
        animation: none;
    }
}

.launcher-card__host {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-word;
}

@media (max-width: 840px) {
    .portal-header--launcher {
        gap: 18px;
    }

    .launcher-site-meta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .launcher-card {
        transition: none;
    }

    .launcher-card:hover,
    .launcher-card:focus-visible {
        transform: none;
    }
}
