/* ============================================================
   Riptide Application Manager — Launch Page
   Post-login application tile grid.
   Uses design tokens from site.css.
   ============================================================ */

.launch-container {
    max-width: 800px;
    margin: 0 auto;
}

.launch-header {
    text-align: center;
    margin-bottom: 2rem;
}

.launch-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-bold);
    margin: 0.5rem 0 0;
}

.launch-header .text-muted {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
}

.launch-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.launch-empty p {
    margin: 0.5rem 0;
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.launch-tile {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.launch-tile:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--riptide-blue-light);
}

.launch-tile-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launch-tile-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.launch-tile-icon-fallback {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--riptide-blue);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launch-tile-body {
    flex: 1;
}

.launch-tile-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-bold);
}

.launch-tile-body .text-muted {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.launch-tile-footer {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.launch-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.launch-badge-trial {
    background: #fef3c7;
    color: #92400e;
}

.launch-badge-production {
    background: #d1fae5;
    color: #065f46;
}

.launch-badge-admin {
    background: var(--riptide-blue-light);
    color: var(--riptide-blue-dark);
}

.launch-badge-status {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.launch-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.launch-logout-form {
    margin-bottom: 0.5rem;
}

.launch-footer .text-muted {
    font-size: 0.8125rem;
    margin: 0;
}
