/**
 * Quelld Hub Dashboard — Module grid landing page
 */

#quelld-hub-dashboard {
    max-width: 640px;
    margin: 0 auto;
    background: #FFFFFF;
}

.qhd-inner {
    padding: 20px 20px 40px;
}

/* ─── Greeting ────────────────────────────────── */

.qhd-greeting {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--quelld-purple-light, #EDE5FF), var(--quelld-teal-light, #E5F6F6));
    border-radius: 20px;
}

.qhd-greeting__q {
    width: 72px;
    height: auto;
    flex-shrink: 0;
}

.qhd-greeting__hey {
    font-size: 22px;
    font-weight: 700;
    color: #2D2D3A;
    line-height: 1.2;
}

.qhd-greeting__sub {
    font-size: 14px;
    color: #7A7A8A;
    margin-top: 4px;
}

/* ─── Module Grid ─────────────────────────────── */

.qhd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ─── Card ────────────────────────────────────── */

.qhd-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px 18px;
    border-radius: 18px;
    border: 1px solid #EAEAEF;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none !important;
    color: inherit !important;
    -webkit-tap-highlight-color: transparent;
}

.qhd-card:hover,
.qhd-card:active {
    border-color: var(--quelld-purple, #954FE0);
    box-shadow: 0 4px 16px rgba(149, 79, 224, 0.12);
    transform: translateY(-2px);
}

.qhd-card__icon-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.qhd-card__q {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.qhd-card__emoji {
    font-size: 36px;
}

.qhd-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #2D2D3A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.qhd-card__desc {
    font-size: 11px;
    color: #7A7A8A;
    line-height: 1.4;
}

/* ─── Badge ───────────────────────────────────── */

.qhd-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.qhd-card__badge--new {
    background: var(--quelld-purple-light, #EDE5FF);
    color: var(--quelld-purple, #954FE0);
}

.qhd-card__badge--warning {
    background: #FEF3EC;
    color: #E8834A;
}

.qhd-card__badge--info {
    background: var(--quelld-teal-light, #E5F6F6);
    color: #2CB8B8;
}

/* ─── Footer ──────────────────────────────────── */

.qhd-footer {
    text-align: center;
    font-size: 12px;
    color: #B0B0BE;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #EAEAEF;
}

/* ─── Mobile ──────────────────────────────────── */

@media (max-width: 380px) {
    .qhd-grid {
        gap: 8px;
    }

    .qhd-card {
        padding: 16px 10px 14px;
    }

    .qhd-card__icon-wrap {
        width: 80px;
        height: 80px;
    }

    .qhd-card__q {
        height: 80px;
    }

    .qhd-card__name {
        font-size: 13px;
    }

    .qhd-greeting__q {
        width: 56px;
    }

    .qhd-greeting__hey {
        font-size: 18px;
    }
}

/* ─── Tile Reaction Counts (read-only) ───── */

.qhd-card__reactions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    font-size: 12px;
    color: #B0B0BE;
}
.qhd-card__react {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ─── Fix stuck highlight on long press ──── */

.qhd-card {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    outline: none !important;
}
.qhd-card:active,
.qhd-card:focus,
.qhd-card:focus-visible {
    outline: none !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}
.qhd-card__q {
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none !important;
}
